cancel
Showing results for 
Search instead for 
Did you mean: 

Operation Mapping getting failed while testing end to end in PI7.31:Parsing Error

Former Member
0 Kudos


Hi All,

We have migrated one scenario from PI7.1 to PI7.31.

Scenario is : File to Idoc, Multimapping, where, from one xml  two Idocs are getting generated at Receiver end.

When we are testing a payload locally, 2 Idocs are getting generated successfully.

But when we are performng test end to end, Its faling in Operation mapping after picking the file ,  giving below error :

Mapping "http://XXXXX_OM" failed to execute: MappingException: Parsing of the multi-structure document failed. , javax.xml.stream.XMLStreamException: No element was found to write: java.lang.ArrayIndexOutOfBoundsException: -1, ArrayIndexOutOfBoundsException: -1

Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.service.mapping.MappingException: Parsing of the multi-structure document failed.

Please guide to resolve this issue .

Thanks & Regards,

Abhivyakti

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Hi Meenakshi -

Please see SAP Note 1774773 - AEX: Multi Mapping fails for multiple msgs for one interface

Also below thread will be helpful

http://scn.sap.com/thread/3333420

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Meenakshi,

I think this error occurred because there is no xml message in the input payload. please check that one or can you provide the xml example and the mapping screen shot, to know the  issue better.

Former Member
0 Kudos

Hi Pavan,

I have checked , there are xml messages available as input.Because when I am checking payload associated with the same error log in MDT, could find the entire xml payload there, which is running perfectly in esr.

Screen for Mapping attached.


Anything else , that can be checked.

Thanks,

Abhi

Former Member
0 Kudos

Hello,

I have also faced the similar issue on PI7.31 SP05 (even after applying the fixes mentioned in 1774773 note), and eventually upgraded PO box to SP09 to solve multimapping bug.

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi Amit,

Does this means 1:N scenario is not supportted below PI7.31 SP09 ?

As per note 1774773 (suggested above) : mapping failing giving below error :

Transmitting the message to endpoint <local> using connection

<YourConnection>_http://sap.com/xi/XI/System failed, due to:

com.sap.aii.af.service.mapping.MappingException: Unexpected exception

caught while executing mapping: java.lang.ArrayIndexOutOfBoundsException: 1

Catching java.lang.ArrayIndexOutOfBoundsException: 1

at com.sap.aii.adapter.xi.mapping.MappingService.splitMultisourceMessage

(MappingService.java:383)

While the error , I am getting is little different.

Mapping "http://XXXXX_OM" failed to execute: MappingException: Parsing of the multi-structure document failed. , javax.xml.stream.XMLStreamException: No element was found to write: java.lang.ArrayIndexOutOfBoundsException: -1, ArrayIndexOutOfBoundsException: -1

Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.service.mapping.MappingException: Parsing of the multi-structure document failed.

Are both these error messages logically same ?

Any help is much appreciated.

Thanks & Regards,

Abhi

Former Member
0 Kudos

Hello,

What's the SP of ur PI box? Try to create only one idoc message and check the message status?

>>Are both these error messages logically same ?

Precisely speaking, i was also not getting the exact error message but the main reason for the failure of message was "ArrayIndexOutOfBoundException" while using multimapping (i was getting this error when more than 1 idoc message was created at runtime).

>>Does this means 1:N scenario is not supported below PI7.31 SP09 ?

Earlier i was using PI7.31 SP05, but even after applying SAP note fixes the error persist, so SAP recommended us to upgrade our PO box to SP09. So, it's always better to go for a higher SP.

Thanks

Amit Srivastava