cancel
Showing results for 
Search instead for 
Did you mean: 

PI REST Adapter – Custom error handling

former_member201275
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member209703
Active Contributor
0 Kudos

Did you find a way to get the value back?