cancel
Showing results for 
Search instead for 
Did you mean: 

Custom error text to sender system for Mapping fail

jagesh_lakdawala
Active Participant
0 Kudos

Hello Experts,

I am using the synchronous SOAP to PI 7.1 to Proxy scenario.

Requirement:-

in cae of any failure in Message mapping step (Data Type mismatch, mising mandatory field, Data Overflow due to length mismatch), i want to provide the custom error message including the Field name to the sender system.

Issue:-

currently, in such a case, sender ytem receives the exception mesage from PI which neither contains the respetive Field name nor proper text.

Please help.

Thanks in advance,

Regards

Jagesh

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi ,

using stadard alert mechanism we can send an email whenever the exeception occured at mapping level(AE level or IE Level),but in your case we can send email whenever your mapping program fails but the only problem is we canot specify the fields in Payload like due to woring format of Date type like that.

other alternative is write java mapping program,at mapping level validate your payload using this JAVA Mapping,you have to write a logic (identify exceptions conditions) , based on the output of the JAVA Mapping execute message mapping or send an email using mail adapter , the attachment going to be in mail is java mapping out put.

Regards,

Raj

jagesh_lakdawala
Active Participant
0 Kudos

Hi Raj,

Can you provide sample Java mapping program or reference material in order to have more details for the same.

Thanks for your reply.

Regards

Jagesh

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jagesh,

> currently, in such a case, sender ytem receives the exception mesage from PI which neither contains the respetive Field name nor proper text.

Due to standard functionality its not possible.

If your scenario having few fields (like 4 or 5 or 6) then we have to write the UDF in the mapping.

If it is more fields then it is difficult to handle all those things and performance also bad, so at this time better to go for the Java mapping and by using regular expressions handle the error through Mail scenario we can send the exact error (what ever we want) to the client.

Regards

Ramesh