cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Error: /ns0:Messages/ns0:Message1/ns1

Former Member
0 Kudos

Dear All,

I am using N:1 Mapping in BPM Collect pattern payload dependant.

System: SAP PI 7.0 SR2, SP 10.

Error is as follows:

"com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1/ns1:Col_Receive_MT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start"

Input Payload:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns1:Col_Send_MT xmlns:ns1="http://RepeatCollectPattern">

<KeyNo>1</KeyNo>

<Name>ABC</Name>

</ns1:Col_Send_MT>

</ns0:Message1>

</ns0:Messages>

Can anybody will help me to solve this problem.?

-Gouri

Accepted Solutions (0)

Answers (1)

Answers (1)

justin_santhanam
Active Contributor
0 Kudos

Gouri,

Remove messgaes element and give the input payload.

<?xml version="1.0" encoding="UTF-8"?>

<ns1:Col_Send_MT xmlns:ns1="http://RepeatCollectPattern">

<KeyNo>1</KeyNo>

<Name>ABC</Name>

</ns1:Col_Send_MT>

Best regards,

raj.

Former Member
0 Kudos

Raj,

Still same error exists...

justin_santhanam
Active Contributor
0 Kudos

Gouri,

Could you tell us the mapping logic u defined for this interface.

Best regards,

raj.

Former Member
0 Kudos

I have followed Sample Collect pattern payload dependant pattern from SAPBASIS component.

In Interface Mapping,

Source Occourance: 0 to unbounded

Target occourance: 1

Mapping is 1: 1

Data Type:

Col_Send_MT Complex Type

KeyNo Occourance 1

Name Occourance 1

In Message mapping,

Source is : 0 to unbounded

Target is: 1

-Gouri