cancel
Showing results for 
Search instead for 
Did you mean: 

RuntimeException during mapping

Former Member
0 Kudos

Hi All,

I am getting a run time issue while testing a end to end scenario. I get this run time exception as below.

But If I use the same payload and test it through the mapping tool of Integration repository then I am able to generate the target without any error. During run time issue is intermittent so issue being of source xml or mapping is ruled out and seems to be more of server (XI) related. Has any one come across similar issue. Pl let me know your inputs.

RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_WSPurchaseOrderChangePushRequestMessage_2_Z_***BAPIPO_CHANGE_REQUEST_ Thrown: com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:XXXXXXXXXX. Queue does not have enough values in context. Target XSD requires a value for this element, but target-field mapping does not produce one. XML instance is probably not valid for source XSD, or target-field mapping does not fulfil requirements of target XSD. at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:423) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:134) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:142) at com.sap.aii.ib.server.mapping.execution.TransformationWrapper.transform(TransformationWrapper.java:39) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:92) at com.sap.aii.ib.server.mapping.execution.Mapping.execute(Mapping.java:60) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:87) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:71) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest

Thanks,

Lovein

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member742273
Discoverer

Hi,

The same issue in sap cpi. We could run mapping as locally on simulation screen, but at the runtime there is a mapping error. Did you have any opinion?

0 Kudos

Question :

I am calling a Table name in the FM and the Request Mapping Structure , we have one Mandatory Field and the others are Optional/?

How to get the content values in Request Mapping Strucurre.?

com.sap.xi.mapping.camel.XiMappingException: . Queue has not enough values in context.

Target xsd requires a value for this element, but target field mapping does not produce one.

Probably the xml-instance is not valid to the source xsd, or the target field mapping does not fulfill the requirement of the target xsd.

madhusudana_reddy2
Contributor
0 Kudos

Hi Kullar,

Queue does not have enough values in context. Target XSD requires a value for this element, but target-field mapping does not produce one.

the above statement in your error is clearly telling that some mandatory element is not generating at runtime. so put your payload mannually in mapping and debug(right click and display queue), check which element is not generating. If some target element is not mandatory then make it as 0..1 occurance or use mapwithdefault node function in Mapping.

thanks,

madhu

stefan_grube
Active Contributor
0 Kudos

If same mapping fails in runtime with same payload, but in test it is fine, then change somthing and activate again.

This might be a cache issue.

Shabarish_Nair
Active Contributor
0 Kudos

what is you server version?

It is advised to upgrade to the latest SP or EHP in case you feel these are server level issues.