cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exception response not being sent back to HTTPS Sender Adapter

0 Likes
2,075

I am using HTTPS Sender Adapter in my IFLOW.I want to handle the exceptions.

I have the parameter Return Exception To Sender checked. But I am still getting a generic message when an exception occurs and not the exception message.

Use Case: I am using a Splitter and exception occurs when processing of a record fails. I have Stop on Exception checked in the Splitter.

I have tried adding a Exception SubProcess with a Content Modifier. But this also does not send the exception message to the Sender.

How can I send the exception text back to HTTPS Sender?

View Entire Topic
former_member226
Employee
Employee
0 Likes

Hello,

In order to read the exception's message text and send it to external system, you need to read property "CamelExceptionCaught" and use

def ex = map.get("CamelExceptionCaught"); // Get exception caught
def messageCust = ex.getResponseBody(); // Read the message from exception

finally,send captured message text from "messageCust" to external system using setBody() method call.

For more details please check: https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/LATEST/en-US/a443efe1d5d2403fb95ee9def1...