cancel
Showing results for 
Search instead for 
Did you mean: 

'IF' standard function issue

Former Member
0 Kudos

Hello Experts,

IF function in message mapping is not working as expected at runtime. If I test it in ESR it is working fine.

logic :

at runtime, some times its passing 'def' to target field instead of 00000.

payload :

Any solution for this issue??

reg ,avinash M

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear All,

This issue was appearing due to missing data from source, mapping logic was sending 'def'.

reg, avinash

Answers (3)

Answers (3)

arrezende
Active Participant
0 Kudos

Avinash,

In some cases use the "MapWithDefault" works, but we need more information to help you ...

Could you pass the XML that you use and details of how you are using the IF? What error appears in SXI_MONITOR?

Former Member
0 Kudos

Thank you.

I didn't understand your logic. Why I have to user MapWithDefault for my logic?

former_member192851
Active Participant
0 Kudos

You can replace def to empty and use MapWithDefault

Former Member
0 Kudos

Thank you.

I didn't understand your logic. Why I have to user MapWithDefault for my logic?

former_member192851
Active Participant
0 Kudos

Maybe you have context issue with your payload. MapWithDefault it is another implementation of your logic. You don't have to use it

If you have in def field empty values, that should not be mapped, then MapWithDefault not help

former_member186851
Active Contributor
0 Kudos

Hello Avinash,

Get the payload from the monitoring and test the same in mapping.Might be else condition would have met.

Former Member
0 Kudos

Thank you.

ESR works fine, as per logic. but at runtime why its passing def instead of 00000.

reg ,aviansh