Hi Community
Currently I am seeing another issue related to the groovy script. In my exception sub-process, I am also using the groovy script to capture the exception and set this exception into the message body. But this is not working anymore from my side. Please kindly find my groovy script below and could you please kindly suggest are there is anything that I did wrong?


Exception Happens on the XML to JSON Converter:
com.sap.it.rt.adapter.http.api.exception.HttpResponseException: An internal server error occured: No type converter available to convert from type: null to the required type: javax.xml.stream.XMLEventReader with value null. The MPL ID for the failed message is : AGJnBRIlYED7i2GPtyCixNoaekVN
Request clarification before answering.
Hi Weikun,
This groovy script is for catching exception thrown by HTTP adapter. Can you check if the response body in the XML format for HTTP exception? As per the error, it seems it in not in XML format and that's why converter step is throwing error.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priyanka,
I just double-checked my exception message, which is stored in the attachment of HTTP_Receiver_Adapter_Response_Body, is in the XML format for sure.

And also since I get this script from our SAP Help Portal and trying to store the exception message in another new attachment called http.responseBody, but as you can see in the attachment list, there is no such attachment. But this script is working fine in my another I-FLOW. Could you please kindly suggest how should I resolve this issue ? My goal is to extract the entire exception message which stored in the HTTP_Receiver_Adapter_Response_Body
Best Regards,
Weikun Liu
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.