Skip to Content
0
Former Member
Nov 21, 2012 at 05:50 PM

EXCEPTION_DURING_EXECUTE - Cannot create target element

406 Views

Hi all,

I am working on file (EDI file) to IDOC scenario using SAP PI 7.11. I am getting the below error while posting the data.

I have taken the MONI data (payload) and executed in message mapping and Operational Mapping and it is working fine. But when i try in run time i am getting the below exception.

I am using the external definition for the target IDOC.

this is the messagge error in SXMB_MONI:

RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_EntrateASYNC_OUT_to_Entrate_ASYNC_IN_ Thrown: com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /MBGMCR02/IDOC. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:369) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:411) at com.sap.aii.mappingtool.tf7.AMappingProgram.start(AMappingProgram.java:504) at com.sap.aii.mappingtool.tf7.Transformer.start(Transformer.java:134) at com.sap.aii.mappingtool.tf7.AMappingProgram.transform(AMappingProgram.java:637) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep

The strange thing is that in the MM and OM the payload get right result, but in the runtime... no!!

I have to create many idoc as there are occurrences of tracciabilita

I don't have missing mandatory fields

Please help me in this problem.

Regards

Attachments

pastedImage_2.png (20.5 kB)