Skip to Content
0
Jun 15, 2018 at 12:11 PM

REST Sender Synchronous - HTML error response instead of JSON

647 Views Last edit Jun 15, 2018 at 12:14 PM 3 rev

Hi,

For REST sender synchronous scenario, I have maintained mandatory field in sender data type. but when mandatory fields are missing then I am not getting a response in JSON format rather getting a response in HTML format. Please suggest what needs to be updated.

<html><head><title>Error</title></head>
<body><h1>Error</h1><pre>
Error while sending message to module processor: Sender Channel 'I2_RESTAPISender' : Catching exception calling messaging system: com.sap.aii.af.sdk.xi.srt.BubbleException: System Error Received. HTTP Status Code = 200: However System Error received in payload ErrorCode = INCORRECT_PAYLOAD_DATA ErrorCategory = XIServer Parameter1 =  Parameter2 =  Parameter3 =  Parameter4 =  Additional text =  ErrorStack = Error while processing message payload

Element 'Unique_Id' missing
 [http://sap.com/xi/XI/Message/30^Error "INCORRECT_PAYLOAD_DATA"]
</pre></body></html>

Attached my REST Sender Channel Configuration.

Br,

Raj

Attachments

e1.jpg (62.3 kB)
e2.jpg (41.6 kB)
e3.jpg (21.7 kB)