Skip to Content
avatar image
Former Member

XSLT multiple mapping Exception

Hi everyone,

The Scenario is inbound. File to Proxy. I've been dealing with this error for the last couple of weeks and I've come to the end if ideas. PI version I have is PO 7.4. I've developed a multi mapping solution, where MM fills the data into 6 messages, based on field values. I can test the MM and OM (I've got a XSLT transform in there as well) and the test shows the result, I am looking for. No errors whatsoever. XML is well formatted. when I am doing end to end testing, it is showing error in Message monitoring but if i take the payload and test in OM, It gets successful.

I am getting the below error.

Mapping "urn:SBM.com:ERP:Parts:StarOrder:IN:Async/OM_PartsOrder_StarOrder_Async_Out" failed to execute: MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_PartsOrder_StarOrder_Async_Out_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:Messages/ns0:Message1. 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, ApplicationRuntimeException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_PartsOrder_StarOrder_Async_Out_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:Messages/ns0:Message1. 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, IllegalInstanceException: Cannot create target element /ns0:Messages/ns0:Message1. 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

The XSLT which I am using is -

http://www.w3.org/1999/XSL/Transform"> http://sap.com/xi/XI/SplitAndMerge">

The Inbound record looks like this

- SBM.com:ERP:Parts:StarOrder:IN:Async"> - - +00 +000000 +000000 +61207 A0 0000000 00 WERK 9 6 BATCH- RUN-NO.207 / 26.03.1 8 14 .47 . 38CLOC K

Please suggest.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Mar 29, 2018 at 03:03 PM

    Hi Pardeep!

    When you use multimapping, elements Message1..MessageN should always be created. I guess that your XSL transformation doesn't create one for particular message type(s).

    When you test your mapping in ESR - no mulimessage structure validation is performed. But during end-to-end processing Mapping runtime requires structure with all MessageN elements present even if no respective message root elements are in place.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 01, 2018 at 01:20 PM

    Hi Evgeniy,

    Thanks for the reply. There was issue with XSLT mapping. I have corrected it and it started working.

    Thanks again.!

    Pardeep

    Add comment
    10|10000 characters needed characters exceeded