on 05-04-2007 3:20 PM
In our project , we are converting Flat file to XML by adapter modules ...
File is like this :
HEADER 123 567
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
FOOTER
File has been succesfully converted to XML.HEADER, DETAIL and FOOTER are the key field
values.
Now in some scenario file is like this
HEADER 123 567
DETAIL1 UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
FOOTER
As there is one DETAIL1( different from DETAIL) we need to throw the error.
Client wants to do it in the Integration engine level not in Adpater engine.
Any suggestions will be great ....
Hi
We can raise an exception at integration engine level itself..
check for the receiving input if the input is not required one .. raise an exception
and throw runtime exception. or raise an alert .. do as per your client requirement.
i hope this will solve your problem
see the below links
/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
Triggering XI Alerts from a User Defined Function - /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
you can do it in the graphical mapping you check for that condition if true then pass else suppress the value
using udf:
for(int i=0;i<a.length;i++)
{
if(a<i>.equals("details1"))
{
result.addValue(ResultList.SUPPRESS")
}
else
{
result.addvalue("that you want to pass");
}
}
Thanks
Rinku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.