Skip to Content
Jan 17, 2021 at 10:59 PM

PI REST Adapter – Custom error handling


I have an RFC to REST Scenario and need to get the message back when the HTTP call fails.

The RFC has an Import parameter (Person ID), and an Export parameter (Name), i.e. the http call accepts the Person ID, and then returns a Name back.

When I send a Person ID number that doesn’t exist the HTTP call dumps and in the PI logs I can an HTTP error code 404, with the text “not found”.

I want to get this information back to my RFC.

I added an export parameter to my RFC called “Status”.

Then in the REST Receiver under the Error Handling tab I enter the attached.

This works and in my logs this value is mapped.

The issue is that in my message mapping I am unable to pass this value back to the field “Status” in the RFC. Actually I cannot pass any value back to the “Status” field of the RFC. It is only possible to pass a value back in the Name field. I assume this is because the Name field is part of the HTTP call?

All help greatly appreciated.


fault.png (7.9 kB)