SAP Knowledge Base Article - Preview

2523954 - IDOC_AEE adapter shows IDOC_ERROR_PARSE_FAILURE for attributes SEGMENT or BEGIN

Symptom

You have migrated a scenario from IDoc ABAP to JAVA based IDoc (IDoc_AAE) adapter with Migration Tool or you are working on a scenario using IDOC_AEE adapter and the message is failing to be mapped.

One of the following errors can be see in the logs or in the XPI traces:

com.sap.aii.af.idoc.exception.IDOCAdapterException: Error before sending due to idoc parsing error: (7) IDOC_ERROR_PARSE_FAILURE: Illegal value "" for attribute SEGMENT in <<tag> SEGMENT="1"> tag within IDoc-XML for type <<tag>>: state=READING_ATTRIBUTE_VALUE, charPosition=<position>, lineNumber=<position>, columnNumber=<position>

or

com.sap.aii.af.idoc.exception.IDOCAdapterException: Error before sending due to idoc parsing error: (7) IDOC_ERROR_PARSE_FAILURE: Illegal value "" for attribute BEGIN in <<tag> BEGIN="1"> tag within IDoc-XML for type <<tag>>: state=READING_ATTRIBUTE_VALUE, charPosition=<position>, lineNumber=<position>, columnNumber=<position>

where <tag> = tag name, <position> = number.

Also, it is possible to see in the XPI traces:

Document start
Start tag [ZFBT_PORDCR02]
Start tag [IDOC]
Add attribute: [BEGIN]=[1]
Start tag [Z1ZPORDCR_ASN1]
Add attribute: [SEGMENT]=[]
Start tag [E1BPMEPOHEADER]
Add attribute: [SEGMENT]=[1]
Start tag [COMP_CODE]
Put value [5000]
Close tag [COMP_CODE]
Start tag [CREAT_DATE]
Put value [20170823]

 or

Document start
Start tag [ZFBT_PORDCR02]
Start tag [IDOC]
Add attribute: [BEGIN]=[]
Start tag [Z1ZPORDCR_ASN1]
Add attribute: [SEGMENT]=[1]
Start tag [E1BPMEPOHEADER]
Add attribute: [SEGMENT]=[1]
Start tag [COMP_CODE]
Put value [5000]
Close tag [COMP_CODE]
Start tag [CREAT_DATE]
Put value [20170823]


Read more...

Environment

  • PI Release Independent
  • SAP NetWeaver
  • SAP Process Integration

Product

SAP NetWeaver all versions ; SAP Process Integration all versions

Keywords

Process Integration 7.0, PI 7.0, PI 7.01, PI 7.02, Process Integration 7.10, PI 7.10, Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.40, PI 7.40, PO 7.40, Process Orchestration 7.50, PI 7.50, PO 7.50, NetWeaver, XI, IDOC, IDOC_AAE, IDOC_AEE, Adapter, Error, Parse, Failure, Fail, Attributes, SEGMENT, BEGIN, Before, Sending, Illegal, Value, Constant, 1, Tag, IDOC-XML, XML, Type, Reading, Mapping , KBA , BC-XI-CON-IDO , Idoc Adapter J2EE , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.