cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC from DataHub to SAP: encoding UTF-8 is missing.

Former Member
0 Kudos

Hi,

we use hybris with datahub and a SAP system in China. Our orders are rejected because of error "409input_not_correct" in datahub log. Debugging SAP shows the error: "encoding UTF-8 is missing". The datahub uses UTF-8 because of wrapper.java.additional.11=-Dfile.encoding=UTF-8. We don't find something in datahub administrator to configure anthing with encoding. Does anyone has a similar problem or an idea how to solve? Thank's a lot.

Harry

Former Member
0 Kudos

we use hybris 6.1.

Former Member
0 Kudos

At SAP the handle looks for leadung BOM for UTF or for the string "encodung=UTF-8". So the question is how to include "encodung=UTF-8" in the SOAP message at the datahub. Harry

Former Member
0 Kudos

Hi, when comparing with hybris 5.7 we saw that datahub sends IDOC like that: EDI_DC4000014756737764900312EDI_DC40

former_member224482
Active Contributor
0 Kudos

According to Java documentation : SOAPMessage setProperty

The property CHARACTER_SET_ENCODING defaults to the value "utf-8" which causes the SOAP message to be encoded using UTF-8.

I am not familiar with an "in China" system. Is there an easy way to reproduce the issue ? Or to reproduce the correct and incorrect payload sent by datahub ?

former_member224482
Active Contributor
0 Kudos

Here is a sample payload captured with a dummy http server :

 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:idoc:soap:messages">
  <SOAP-ENV:Header/>
  <SOAP-ENV:Body>
   <SALESORDER_CREATEFROMDAT202/>
  </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>

Is your payload different from this one ? Is something missing ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Harry, I am getting same error were you able to fix it ? how did you get fix ?