cancel
Showing results for 
Search instead for 
Did you mean: 

mapping error

Former Member
0 Kudos

source side has three elements

Line 1..unboundeed

a 1

b 0..1

c 0..1

traget has same strcuture. testing is fine in IR (both messagemapping & interfcae mapping )

when i took the payload and tested in message mapping it is shwoing the below error.

but when i execute the scenario, iam getting mapping error, in moni it is showing as

com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:MT_R3_Inbound/Line. 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(AMappingProgram.java:406) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequestsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62) at

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you are using File content conversion and not defined recordset in the source datatype then use ignoreResultset = true in FCC

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

Check the occurances of the source and target.

it seems that your source field occurance is greater than the target field occurance.

Thanks,

Mahdu

Former Member
0 Kudos

Hi

You have defined Line as 1..unbounded in the source, are you sure you have defined the same in target. Double check your payload and see if the source payload has the Line element in it.

BR

Former Member
0 Kudos

Hi,

Please check the occurence of the target structure.If it is a mandatory occurence please map it with mapwithdefault.

Thanks,

Arijit

Former Member
0 Kudos

Hi Viswanath,

Copy the XML source from the interface mapping or message mapping test tab and use that XML to test your scenario end to end. Error could be due to incorrect namespace.

Regards,

Riyaz

Former Member
0 Kudos

Hi,

Your error states that the target element line cannot be produced.See if there is a value in the incoming file for the mandatory field that you have mapped.Maybe this value is missing and hence it is showing this error.

Thanks and Regards,

Induja

Former Member
0 Kudos

Check the namespace of the source xml.

There might be some mismatch in the namespace of messge type in xi and the source xml.

Take the payload from moni and test the message mapping withe same payload.

Thanks,

Beena.