on ‎2020 Dec 03 7:25 PM
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?
Request clarification before answering.
Hi shruthi.dhiraj,
In the Exception Subprocess while you use a content modifier where you can pass the exception in the body as ${exception.message}.
Copy down the same ${exception.message} in a content modifier before the end event of the main iflow you can send the response to the Sender back
You can test this in Postman and check.
Regards,
Vijender
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shruthi,
Have you tried using an exception end event in your exception subprocess?
Regards,
Robson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.