cancel
Showing results for 
Search instead for 
Did you mean: 

Handling fault messages in an Integration Process (bpm)

Former Member
0 Kudos

I have a bpm in PI 7.11 which performs a synch call to an external webservice. In addition to the request/response, that webservice can also generate two faults: ObjectNotFoundFault and generalfault. I am having trouble handling these faults - when a fault occurs my handler is not being invoked and thus the bpm process stops/errors. When I look at the underlying process (via txn swi1), I see the exact error text:

"No exception defined for fault message ObjectNotFoundFault http://www.companyb.com/services/olsa_v1_0/";

From what I understand within the bpm synch call step to the webservice I need to do the following to handle the exception/fault:

- put the synch call (to the webservice) into a block

- add an exception branch to that block named let's say A & set the exception handler of that block to be A

- in the exception setting of that synch step, select A

In my case, I don't care about the fault details other than to ensure it does not stop the whole Integration Process, so in my exception branch I don't do anything. I did try adding a control step within it too (as per SAP Press text book).

Is there anything else I need to do here? I am not mapping the returned fault - does the fault need to be mapped (not sure how I would do this given that the synch step uses an abstract interface and therefore to my knowledge no fault mapping can be done)?

There are 2 Notes that describe my issue exactly:

https://service.sap.com/sap/support/notes/1484903

https://service.sap.com/sap/support/notes/1158699 <-- this one refers more to me, but we already have in 7.11

Can anyone let me know exactly the steps I would perform to handle these faults - does the exception name / handler A above need to be named the actual exception / fault ObjectNotFoundFault?

Any help appreciated.

Thanks,

Keith)?

Any help appreciated.

Thanks,

Keith

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

/people/alessandro.guarneri/blog/2011/01/10/soap-fault-in-sap-pi-hijack-it

have a read thru this

Former Member
0 Kudos

Thanks - my scenario I guess is #2 of that blog. But is your take that even if I don't care what is in the fault message, i.e. I don't care about the contents of it but rather I just want to continue on from it, that I still need to perform this java coding? It's not clear to me from what he says - it seems to me he does the java coding to actually capture the contents of the message. I am in fact using the soap axis adapter too, as he is. The screen shot showing the exception branch is basically what I have.

Regards,

Keith

Former Member
0 Kudos

I have this working - marked thread as 'Answered'. The key is to use Block and Exception Branch, as I didn't understand that previously.

Thanks,

Keith

Answers (0)