cancel
Showing results for 
Search instead for 
Did you mean: 

Catching Mapping error at runtime using a udf

Former Member
0 Kudos

Hi AlL,

I read some blog where it was discussed.. we can catch runtime error ? Is it possible?

how will we be able to catch the runtime error say during the mapping we got an error and we want to catch that error and log it somewhere or throw user defined exception?

I guess at runtime all the runtime details are stored in SMPPMAP3 table. which is the field which contain the any runtime error?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you cannot do it using an UDF as a uDF will only work on fields that

are in the message

you can throw exceptions from UDF but not catch

to catch you can use an exception branch of a block stpe in an intgration process BPM

Regards,

michal

Answers (1)

Answers (1)

Former Member
0 Kudos

HI,

If you know the error then that time you can throw the Runtime exception

using the below code

throw new Runtimeexception(" write the error desc");

See the below links also.

/people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping

Regards

Chilla