cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc-XML conversion error.

vijay_b4
Active Contributor
0 Kudos

Hi,

I have got the following error:

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 IDocConversionException occurred while parsing IDoc-XML for type <MAS_BAPI01>:
state=READING_FIELD_VALUE_TAG, charPosition=5276, lineNumber=1, columnNumber=5277


For this i have download the idoc file from message payload and pasted it in notepad++, but when go the character 5276, it was all correct, I found the error somewhere in 7796, so here my question is how to find out the exact field where it failed, as it is production issue and today i struggled lot to find out the error(field by field i checked). So is there any easy way to point out error field.


Thanks,

Vijay.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Vijay,

Might be its because of notepad++ the alignment has been changed(tags might be included).

It should be @ 5277 only as PI has displayed such.

check in notepad or open the XML in browser and check

vijay_b4
Active Contributor
0 Kudos

Thanks Raghu, I am not sure, i did double check everything, but unfortunately notepad++ and browser not able to point out to the exact position. is there any other way.

Answers (1)

Answers (1)

nabendu_sen
Active Contributor
0 Kudos

Hi Vijay,

Are you receiving any DATE field from ECC IDoc? Check whether its blank or Date format is incorrect. IDoc Adapter also fails for empty strings. So make sure of that.

Check: OSS Note 1688780 - IDoc AAE Adapter fails to insert empty strings in database

Also:

Regards,

Nabendu.

vijay_b4
Active Contributor
0 Kudos

Hi Nabendu,

the error is due to data type, user specified string instead of numeric. I resolved the issue as specified earlier, but with lots of struggle checking field by field. So i want to know any easier way for the same.

Thank you,Vijay.

nabendu_sen
Active Contributor
0 Kudos

Hi Vijay,

Not sure any easy workaround is available or not.