cancel
Showing results for 
Search instead for 
Did you mean: 

Capture all mapping errors then raise exception

Former Member
0 Kudos

I have a global variable that collects various errors from my message map. So once the map is finished running I have a list of several errors in this global variable. What is the best method of raising an exception so the transformation fails but still outputs the errors stored in the variable.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If u are XI 3.0 SP14 and above use Clean up section of Global Java Sections. The code written there will get executed immaterial of whether ur mapping succeeds or fails. Write ur error throwing logic in that clean up section.

Try it out.

Regards,

Sudharshan

Former Member
0 Kudos

Thanks Sudharshan.

This is exactly what I was looking for.

Answers (0)