Skip to Content
0

SOAP Error in HCI PI Content is not allowed in trailing section

Feb 14, 2017 at 12:00 AM

208

avatar image

Dear Experts-

I have created a SOAP to SOAP scenario in HCI-PI. In which am receiving the data from SAP through consumer proxy and posting it to some web service. I have tested my mapping and it is all working fine, but when triggered from SAP am receiving the following error in HCI PI

"com.sap.xi.mapping.camel.XiMappingException: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Content is not allowed in trailing section., cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 738; Content is not allowed in trailing section."

I have tested the mapping stand alone in HCI PI with the same payload which I am receiving from SAP and it is executing all fine. I have checked my payload in W3 XML validators and no errors found. I have tried to find hidden characters using note pad++ encoding and show symbol features and nothing was found. Please find my XML payload below. I am not sure if there are any payload swap beans or module configuration available to handle this kind of exception in HCI PI.

It would be really appreciated if any valuable inputs are provided.

Regards

HS

sap.com:proxy:ECD:/1SAI/TAS8DE6A6C4D1486DC9A1A7:731"> 610014 1 Cream 2016-09-08 06:48:56 2016-09-08 06:51:03 00:00:00 2016-09-08 06:51:59 ST 4501159579 514 49680 44.2000 5.0000 0

10 |10000 characters needed characters left characters exceeded

m:Z_FM_1865_DDC_RECEIPT xmlns:nm="urn:sap-com:document:sap:rfc:functions" xmlns:prx="urn:sap.com:proxy:ECD:/1SAI/TAS8DE6A6C4D1486DC9A1A7:731"> 610014 1 Cream 2016-09-08 06:48:56 2016-09-08 06:51:03 00:00:00 2016-09-08 06:51:59 ST 4501159579 514 49680 44.2000 5.0000 0

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Hari Sonnenahalli Feb 15, 2017 at 03:06 AM
0

Issue is resolved. The above mentioned error was happening because I was using genral splitter to get a MPL while processing the data. Once the general splitter was removed everything is working as expected.

Share
10 |10000 characters needed characters left characters exceeded