on 12-10-2015 4:56 PM
hello everybody,
we are working with a SAP PO 7.4.
We designed a interface Idoc ->PO->FTP; the idoc is Z and we are following this document:
We want write a flat file starting from idoc so we decided to use IDOCXmlToFlatConvertor in the module processor.
After sending the idoc we have an error on Message Monitor:
Exception caught by adapter framework: (7) IDOC_ERROR_PARSE_FAILURE: An IDocConversionException occurred while parsing IDoc-XML for type <SHPMNT01>:
state=READING_FIELD_VALUE_TAG, charPosition=2506, lineNumber=1, columnNumber=2507
Transmitting the message to endpoint <local> using connection IDoc_AAE_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.conn.idoc.IDocParseException: (7) IDOC_ERROR_PARSE_FAILURE: An IDocConversionException occurred while parsing IDoc-XML for type <SHPMNT01>:
state=READING_FIELD_VALUE_TAG, charPosition=2506, lineNumber=1, columnNumber=2507
any suggestion?
why in second part of message PO wrote IDoc_AAE? the receiver FTP Communication Channel have a different name. IDoc_AAE is the inbound adapter.
thanks in advance
Alessandro
Hi Alessandro,
In Java-only scenarios, when you use Integrated Configuration, Messaging System steps of message processing are executed in sender adapter queue. Since you have a scenario IDoc to FTP (sender adapter is IDoc_AAE), you see evidence of message being handled by IDoc_AAE consumer thread in message audit log and error details.
Regards,
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alessandro, can you check erroneous IDoc: please find segment field that is located at an offset specified in the error (character offset 2506 from the beginning of an IDoc) and verify its content / value against its type. Is there any mismatch?
It is also possible to disable IDoc field types validation when using adapter modules IDOCFlatToXmlConvertor and IDOCXmlToFlatConvertor to avoid this error - see detains regarding this functionality in SAP Note 2094460. But when field type validation is disabled, it may potentially result in generation of IDoc with invalid field content, so it should be used with caution.
Regards,
Vadim
This is the most popular error in IDOC_AAE adapter
It normally comes, when you violate some field constraints as per your IDoc xsd. For example, field is defined as Date while you are trying to convert/take it as String.
And it is very difficult to pinpoint the exact erroneous field because chaPosition indicates the position after conversion which won't be visible anywhere. So check for such kind of fields in your payload.
IDoc field that caused error IDOC_ERROR_PARSE_FAILURE, can be figured out by checking IDoc XML and finding IDoc field located at a character position indicated in error details, within that IDoc XML. For IDoc receiver flow, this means, we need to check IDoc XML message which is a message after mapping - if it is not shown in Message Monitor already, you may check logging configuration and enable logging after mapping step in corresponding Integrated Configuration to see PI message payload after mapping execution.
Regards,
Vadim
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.