Skip to Content
author's profile photo Former Member
Former Member

C4C to ECC IDoc interface is failing with illegal parsing error

Dear All ,


I have configured an interface to send sales quote details from C4C system to ECC. Its standard SOAP to IDoc scenario. Here i'm encountering like below error.

Error before sending due to idoc parsing error: (7) IDOC_ERROR_PARSE_FAILURE: An IDocIllegalTypeException occurred while parsing IDoc-XML for type <SALESORDER_CREATEFROMDAT202>:
state=READING_FIELD_STARTTAG, charPosition=2186, lineNumber=1, columnNumber=2187


MP: exception caught with cause com.sap.aii.af.idoc.exception.IDOCAdapterException: Error before sending due to idoc parsing error: (7) IDOC_ERROR_PARSE_FAILURE: An IDocIllegalTypeException occurred while parsing IDoc-XML for type <SALESORDER_CREATEFROMDAT202>:
state=READING_FIELD_STARTTAG, charPosition=2186, lineNumber=1, columnNumber=2187


I have checked ICO and aslo checked for the char Position also. I tried with Message mapping testing also with the payload , Its successful . still i couldn't find any clue to identify the error . Kindly help on this.


Thanks

Vignesh

Capture1.PNG (55.0 kB)
Capture2.PNG (53.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on May 21, 2016 at 09:38 AM

    this is not a mapping error and hence you are able to run the mapping without any issue.

    the issue is data type and the value in the IDoc, as mentioned in the error you need to check the value at position 2186 to know the exact error.

    most likely there is an issue with some date field,

    you can check the IDoc schema definition for the data types other than string and try to check the corresponding values in your IDoc payload for the same.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2016 at 02:21 PM

    I'm having the same error with this standard scenario (but error points to a different char position). Anyway, I looked that character position of payload in a text editor and saw that is no data there, but the tag of a field.

    This is a standard mapping, for that reason I believe that there is not a mapping error, I think it is a data error, but the error does in Message Monitor not allow me to identify exactly the data is wrong.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 03, 2016 at 05:26 PM

    Hi.

    I found a temporary solution. In my case the char position in error leads me to a field (but really there was four fiels with similar mapping) that have some conditions and if no is fulfilled the mapping assigns a xsi:nil value.

    I tried by creating a custom mapping based on the standard mapping COD_ERP_CustomerQuoteFollowupBusinessTransactionDocumentReq and replaced xsi:nil value with an empty Constant and it's working now. The four fields I've modified in the mapping are:

    /SALESORDER_CREATEFROMDAT202/IDOC/E1SALESORDER_CREATEFROMDAT2/E1BPPARNR[3]/TELEPHONE2 /SALESORDER_CREATEFROMDAT202/IDOC/E1SALESORDER_CREATEFROMDAT2/E1BPPARNR[3]/ADDRESS /SALESORDER_CREATEFROMDAT202/IDOC/E1SALESORDER_CREATEFROMDAT2/E1BPPARNR[3]/ADDRESS_ORIG /SALESORDER_CREATEFROMDAT202/IDOC/E1SALESORDER_CREATEFROMDAT2/E1BPADR1/FAX_NUMBER

    I only changed the value xsi:nil with empty value constant in these 4 fields mapping and it's working fine now. We are in contact with SAP support and they are evaluating our solution, for now we are using this custom mapping while they give us an official solution.

    Regards.

    Alejandro


    Mapping.png (109.7 kB)
    Custom_Mapping.png (107.7 kB)
    Add a comment
    10|10000 characters needed characters exceeded

    • Manoj K Christoph Schmidt

      Hi Chris,

      Even i am using 7.5 currently SP3 and we had faced the same issue recently IDOC_ERROR_PARSE_FAILURE due to data issue however we solved it by changing the property FieldValidationEnabled to false globally in nwa . can you put the screenshot of the error you are facing.

      I am still wondering why isn't this working in your case 😔


      Br,

      Manoj

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.