cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling in file conversion

Former Member
0 Kudos

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 ....

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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