on 05-21-2016 8:36 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.