Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

(7) IDOC_ERROR_PARSE_FAILURE: Invalid XML 1.0 state = EXPECTING IMMEDIATE_TAG_END,

Hi I am have trouble figuring out how to solve this issue of Idoc error parse failure when sending a X12 850 file to be mapped as Orders05 Idoc.

The error message states:  Error before sending due to idoc parsing error (7) IDOC_ ERROR_ PARSE_FAILURE: Invalid XML 1.0 character encountered within Idoc XML for type <ns:ASC850_004010  state = EXPECTING IMMEDIATE_TAG_END, charPosition = 72, LineNumber =1, columnNumber =73, invalidChar = U_0078 sourceSnippet = UTF-8 standalone = "no"?><ns:ASC850_004010  xmlns:ns="un://CenterStone_Inbound_850_Orders"> <S_ISA>^  <D_DATAELEMENTS

The scenario is to pick up X12 file via SFTP and pass to EDI Separator> to slip ISA's, then pass to 997 EDI Separator to create the 997 > send 997 to Trading Partner via SFTP.

Pass 850 file to Service where map translation is to occur, then pass to SAP via Idoc_AAE via tRFC.

The issue occurs when the file is going to the map.  I have tested the map output by using the test send tool to send to SAP the idoc is created with no issues thru this process, but when I invoke the SFTP the file moves thru the process, creates and send back the 997 then fails when attempting to perform the map translation.

I have attached the source file, the converted xml file, and the Idoc output file generated via the map test tool.

Any help or direction someone can provide would be greatly appreciated.  the error message is confusing as it appears to be looking for an End tag, but it states that invalidChar = U_0078(which is a small x)  I did not see any small x's where an end tag should be.

If you have seen this issue or know how to resolve it I would love to hear from you.

Thanks,

Keith

Former Member
replied

Hi Keith

You are getting this error because the payload that is being processed by the IDoc_AAE receiver channel is not a valid IDoc payload.

Looking at your error, if you see the part in red, it is still the X12 payload.

The error message states:  Error before sending due to idoc parsing error (7) IDOC_ ERROR_ PARSE_FAILURE: Invalid XML 1.0 character encountered within Idoc XML for type <ns:ASC850_004010  state = EXPECTING IMMEDIATE_TAG_END, charPosition = 72, LineNumber =1, columnNumber =73, invalidChar = U_0078 sourceSnippet = UTF-8 standalone = "no"?><ns:ASC850_004010  xmlns:ns="un://CenterStone_Inbound_850_Orders"> <S_ISA>^  <D_DATAELEMENTS

You need to check whether your configuration is correctly done, check whether the Operation Mapping that should convert X12 to IDoc is properly configured.

Rgds

Eng Swee

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question