cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling in payload

Former Member
0 Kudos

Hi experts,

I have a maybe simple question.

In a mapping with async scenario

Header 1

Lines 99999

I have put a condition at header node. The condition is:

based on a certain header value create the message.

If condition false now system generate red flag in sxmb_moni

Is it possible to handle this condition? to generate a message?

What is the easiest way?

A red flag in moni would be ok, but with at least a simple error message.

Thanks

Fabio

Accepted Solutions (1)

Accepted Solutions (1)

azharshaikh
Active Contributor
0 Kudos

Hi Fabio,

Yes, you can throw an exception / fail the message in MONI using a UDF in your Message Mapping.

Please refer the following:

Regards,

Azhar

Former Member
0 Kudos

Hi,

I can't see images from link

fabio

azharshaikh
Active Contributor
0 Kudos

Hi,

Images are visible...can you try to open with some other browser - Chrome / Mozilla and check...

FYI the UDF code (update the conditions as per ur requirement)

Regards,

Azhar

Answers (1)

Answers (1)

former_member191435
Contributor
0 Kudos

Hi Fabio,

If you need to process the message without that header value you can handle that in your mapping...

Otherwise if you want to throw an error message if that condition is field then red flag in moni is ok...

still confusion elaborate your requirement little more...

Thanks,

Sreenivas

Former Member
0 Kudos

You're right,

that was not clear.

My need is to throw an error message if condition is failed.

Right now I've got red flag, but no chance to understand what error has come.

former_member191435
Contributor
0 Kudos

you need only error message or red flag in moni  let me know

Former Member
0 Kudos

if possible error message in moni with red flag

former_member191435
Contributor
0 Kudos

Please check Amit response for similar requirement...

Thanks,

Sreenivas