cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling in PI

Former Member
0 Kudos

Hi All,

I am implementing file(text file) to idoc scenario.There can be different steps where a message can be failed. So wanted to know different ways of tracking an error and sending an error notification to the sender?

1) Failure while doing FCC-> How to inform sender that the file is corrupt?

2) Failure at mapping level -> how to send a notification to the sender application that the message has been failed?

Regards!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Vasanth,

Please go through below SDN posts,it may be helpfull

http://scn.sap.com/thread/2096476

http://scn.sap.com/thread/1197860

Regards,

$HRI

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>Failure at mapping level -> how to send a notification to the sender application that the message has been failed?

Just curious. Why do you want to send mesg to the sender system if the error occurs at the mapping level? is that due to invalid data?

IMHO, the error occurs at the mapping level due to various reasons example like mapping logic errors or improper condition handling in the mapping or so. It's not really easy to distinguish between your mapping error vs data invalid issues. Instead you can set Schema validation which is first step in the pipeline step. You might want to use XSD for the equivalent XML sender message structure and validate. If the error happens due to constraints of size of the field or types etc, you can send alert mail to the sender system.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d026d253-3108-2c10-69a0-a5460fc1f...

Former Member
0 Kudos

Hi. Vasant.

For these requeriment you can try to set up Alerts.

Check below links.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2005/09/09/xi-alerts--step-by-step

http://scn.sap.com/docs/DOC-3804

Regards

Lucho.

Former Member
0 Kudos

Hi Luis,

Thanks for the reply.

I have seen these blogs but in my case:

a) I want to send alert notification to sender application system which is not a sap user.

b) and if i am correct alerting wont come into picture for any errors which occurs on sender channel?

Regards!!

iaki_vila
Active Contributor
0 Kudos

Hi Chandra,

a) I want to send alert notification to sender application system which is not a sap user.

You can send an email to the sender and to use the alert configuration: http://scn.sap.com/docs/DOC-3804

b) and if i am correct alerting wont come into picture for any errors which occurs on sender channel?

Check this thread, may be could help you: http://scn.sap.com/thread/3175552

Regards and good luck.

Former Member
0 Kudos

Hello!

- For the error during the java mapping, you can create the alerts based on the blog below:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2006/07/25/triggering-xi-alerts-from-a-user-...

You can send the alert e-mail to an external user.

- For an alert specific for FCC, like "FCC failed: Check structure", I don't think there is a direct way of doing it. Instead, you can force the message to go to the mapping program, and then you are able to handle it again with an UDF, like mentioned on the blog below:

http://scn.sap.com//people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graph...

Please let us know if any of the recommendations are useful!

BR,

Lucas Santos