Mapping Error in SXMB_MONI

Hi,
I am facing a mapping error in SXMB_MONI. When I test Message Mapping and Interface Mapping independently, the test executes successfully, displaying the expected output. However when I execute the scenario as a whole, I get an error in SXMB_MONI saying "Runtime Exception: Different length of queues in SortByKey"
Please help me regarding the same.
Thanks and Regards,
Tejal

Ref. to the help doc statement.
<i>sortByKey -
Like sort, but with two inbound parameters to sort (key/value) pairs. The sort process can be compared to that of a table with two columns.
Using the first parameter, you pass key values from the first column, which are used to sort the table. If you have classified the key values as numeric in the function properties, they must not be equal to the constant ResultList.SUPPRESS. See also: The ResultList Object
Using the second parameter, you pass the values from the second column of the table.</i>
<i><b>If there is a discrepancy between the number of keys and values, the mapping runtime triggers an exception. The function returns a queue with the values sorted according to the keys.</b></i>
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

Similar Messages

  • Mapping error : strange problem

    Hi all,
                I am getting the mapping error in runtime.
    I have tested in message mapping. It is successful there.
    But I got the strange thing. When I change from design to test page and upload my XML file(from SXMB_MONI),  all nodes in my structure are red! Now If I test the message mapping , I am getting the mapping error in SXMB_MONI.
    May someone has a idea what's going wrong...
    Thanks & Regards,
    Sekhar.

    Hi Sekhar,
    If you test using an XML message saved from the sxmb_moni, you have to add 2 namespace tags around the content of the message. Something like this:
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
      <ns0:Message1>
    ...message...
      </ns0:Message1>
    </ns0:Messages>
    This is usually done internally by SAP XI, but in the test tool it is not..
    Hope this helps!
    (additional hint: First click "create instance" in the test tool. Check out the first two namespaces, usually messages and message1, and copy these in your test file. That should do the trick.:-) )
    Regards,
    Yordy
    Message was edited by: Yordy Minderhoud

  • Mapping error MAPPING_DURING_EXECUTE

    HI
    I am getting a mapping error in sxmb_moni.
    My mapping object in IR is
    Source structure
    MT_INPUT_GL dt_gl
      doctype    o to unound
      docdate    o to unbound
    Destination structure
    MT_OUTPUT_GL DT_GL_OUTPUT 1 to 1
      doctype    o to unound
      docdate    o to unbound
    I mapped MT_INPUT_GL to MT_GL_OUTPUT
    and all the fields thereafter
    My file conversion parameters are
    document name MT_GL_INPUT
    document namespace http://FCE/FTM/GLInbound
    recordsetname DT_GL_INPUT
    recordsetnamspace http://FCE/FTM/GLInbound
    recordsetstructure DT_GL_INPUT,1
    recordsetsequence varible
    recordset per message *
    DT_GL_INPUT.fieldFixedLengths 2,10,10
    DT_GL_INPUT.fieldSeparator  ,
    DT_GL_INPUT.fieldNames      DocType,DocDate,PostingDate
    can anybody help me by providing me sugesstion
    Debraj

    HI
    Thanks for the so early reply.
    I have checked the xml which has been generated in SXM_MONI it is different from the source one.How can i change the xml of input structure so that it matches.
    My actual xml file of the input structure in IR design enviroment is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_GL_INPUT xmlns:ns0="http://FCE/FTM/GLInbound">
       <DocType>ccc</DocType>
       <DocDate>cc</DocDate>
       <PostingDate>tt</PostingDate>
       <Currency>y</Currency>
       <CompanyCode>yyu</CompanyCode>
       <Reference>u</Reference>
       <HeaderText/>
       <UserName/>
       <LedgerGroup/>
       <CDFlag/>
       <GLAcct/>
       <Amount/>
       <Text/>
       <ProfitCenter/>
       <CostCenter/>
       <WBS/>
       <InternalOrder/>
       <TPartner/>
       <Network/>
       <TranType/>
       <Class/>
       <ID/>
       <SUB/>
    </ns0:MT_GL_INPUT>
    but in sxmb_moni it is
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_GL_INPUT xmlns:ns="http://FCE/FTM/GLInbound">
    - <ns:DT_GL_INPUT xmlns:ns="http://FCE/FTM/GLInbound">
    - <DT_GL_INPUT>
      <DocType>KR</DocType>
      <DocDate>12 12 2005</DocDate>
      <PostingDate>12 12 2005</PostingDate>
      </DT_GL_INPUT>
      </ns:DT_GL_INPUT>
    - <ns:DT_GL_INPUT xmlns:ns="http://FCE/FTM/GLInbound">
    - <DT_GL_INPUT>
      <DocType>KR</DocType>
      <DocDate>12 12 2005</DocDate>
      <PostingDate>12 12 2005</PostingDate>
      </DT_GL_INPUT>
      </ns:DT_GL_INPUT>
    - <ns:DT_GL_INPUT xmlns:ns="http://FCE/FTM/GLInbound">
    - <DT_GL_INPUT>
      <DocType>KR</DocType>
      <DocDate>12 12 2005</DocDate>
      <PostingDate>12 12 2005</PostingDate>
      </DT_GL_INPUT>
      </ns:DT_GL_INPUT>
    - <ns:DT_GL_INPUT xmlns:ns="http://FCE/FTM/GLInbound">
    - <DT_GL_INPUT>
      <DocType>KR</DocType>
      <DocDate>12 12 2005</DocDate>
      <PostingDate>12 12 2005</PostingDate>
      </DT_GL_INPUT>
      </ns:DT_GL_INPUT>
      </ns:MT_GL_INPUT>
    Please let me know the solution it is a bit urgent.
    Thanks
    Debraj

  • Run Time Message Mapping error

    Hello Experts,
    I am working on JDBC to IDOC scenario. I am getting mapping error at SXMB_MONI and the error message is as below:
    com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ZABCD01. 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  and so on.....
    I tested in Message Mapping by entering the values and I am able to see the target structure with out any Mapping errors..
    But when JDBC real time it got Runtime mapping error as above:
    Source
    tablename.Set -
    1.1
    row--
    0.Unbound
    a----
    0.1
    b----
    0.1
    Target
    ZABCD01-----1.1
    IDOC--
    1.1
    -Begin-----Required
    XYZ--
    0.1
    a----
    0.1
    b----
    0.1
    Dont know where is the problem is: I tried with payload its giving the same error as runtime....
    Payload looks as :
    <?xml version="1.0" encoding="utf-8" ?>
    - <set>
    - <row>
      <a>value</a>
      <b>value</b>
    </row>
    </set>
    Can any one faced same issue?
    Thanks
    Rajeev

    HI Satish,
    I created a new Datatype and tested wtih payload still the same..I am unable to create target node as IDOC segment is 0..unbound and below all fields are not not creating stilll they are mapped to source fileds.. what would be the reason?
    IDOC structure is:
    ZIDOC........................1....1
    ...IDOC........................1....1
    .....BEGIN.....................Requied (I disabled this filed)
    .....SEGMENT1.............1....1
    .....SEGMENT2..............0...1
    .........SUBSEGMENT1...0...99
    ..............FIELD1.............0....1
    ..............FIELD2..............0...1
    ..............FIELD3..............0...1
    ..........SUBSEGMENT2....0...1
    ..............FIELD4..............0...1
    ..............FIELD5..............0...1
    JDBC strucute is
    MT_XYZ
    ....set.................1...1
    .....row...............0...unbound
    ......field1............0...1
    ......field2............0...1
    ......field3............0...1
    ......field4............0...1
    I am not mapping all fields to respective fileds of source to target ...if I dont map ZIDOC and IDOC then mapping executing successful but I am not getting SUBSEGMENT1 and SUBSEGMENT2 with there fields values..
    If I do test by entering values manually it populate all fields values with subsegments but when i copy the payload from SXMB_MONI then I am getting error and If I remove target node mappings I am unable to get subsegment and fileds populated..
    How can I make FIELDS of IDOC to get populated??
    Thanks
    Rajeev
    Edited by: rajeev raj on Aug 25, 2009 9:26 PM

  • Trigger new message, wenn SXMB_MONI Message is red (mapping-error)

    Hi everybody,
    is there any chance to trigger another message if an mapping-error occured?
    (I do not want to use BPM for the exception handling).
    We are sending IDOCs to XI, just in gthe case, that the mapping throws an error I want to send a SYSTAT-IDoc back.
    Thanks
    Regards Mario

    It would be very complicated to achive the Fault message with IDOC without BPM.
    There is one way that probably you could try,
    The SXMB_MONI contains the trace log for every message based on the steps processed in the interface.
    You caould try to add the checkpoints at these steps e.g.
    1. In Receiver determination, there is option to route the message to different receiver if the receiver system is missing in Receiver determination.
    2. Can design the Adapter module to catch the exceptions with the connectivity with Sender / Receiver systems and handle it to raise any alert notification.
    These kind of alternative ways have to be used to achive the requirments.
    Note : I am not sure how much it will be feasible for the replacement of BPM.
    Thanks
    Swarup

  • Alerts for SXMB_MONI mapping errors, RWB errors

    Hi,
    We are having solman 7.0 with EHP1/oracle on HP-UX.
    I have to configure CCMS alerts for SXMB_MONI mapping errors, RWB errors for PI system(SAP EHP 1 for SAP NetWeaver 7.1).
    I cant find any MTE related to  SXMB_MONI mapping errors or RWB errors under the PI system in my CEN.
    So, can anyone please guide me to configure this?
    Thanks
    Nanda

    Hello Nanda,
    you have to configure ALert Categories in the Alert Framework (ALM) before any MTE are shown in CCMS. And then you would see the MTE in the local CCMS of your PI system.
    Configuration steps are descirbed in the PDF "Setup Guide for Interface Monitoring" under http://service.sap.com/bpm > Media Library > Technical Information. In thisdocument you can also learn how the CCMS MTEs can be integrated with Business Process Monitoring in SAP Solution Manager. And actually BPMon provides some new monitoring capabilites for the Java part of PI that are not covered via CCMS at all.
    Best Regards
    Volker

  • Multi-Mapping Error after copying into new namespace

    Hi everybody,
    we got a BPM running using a multi-mapping.
    We decided to design new namespaces. After copying every IR object (datatype, message-type, mappings etc.) --> SXMB_MONI shows a mapping-error.
    But when I take the payload and test the mapping, everything is fine?
    Any ideas?
    Regards Mario

    Hi,
      If your payload has Messages tab remove that..and test the payload.
    Payload doesn't have any Messages tab.
    Just i have given example payload..this payload two strucures it will split into twofiles..and compare your payload should be like same
    <?xml version="1.0" encoding="UTF-8"?>
    <STRUCTURE>
    <EMP_DETAILS>
       <EMPNO>123<EMPNO>
       <EMPNAME>XYZ<EMPNAME>
    <EMP_DETAILS>
    <STUDENT_DET>
       <STUO>123<STUNO>
       <STUNAME>XYZ<STUNAME>
    </STUDENT_DET>
    <STRUCTURE>
    Regards,
    Venu.

  • Mapping Error in AAE in PI 7.1

    Dear Team,
    If we use message mapping along with AAE concept , What are the objects we need to create in ESR and ID .
    How can we monitor the messages - messages  failed with Mapping Error.Is there any new option available in RWB?
    Thanks&Regards
    Drumi

    Hi,
    ESR Objects are same but in ID we need to create Integrated configuration
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/700058f0-b1a1-2a10-39a8-ab2627b87cfa
    If we are using AAE then we don't get any status in SXMB_MONI.
    Regards,
    Venkata Ramesh

  • File to idoc ..error in sxmb_moni

    Hi Xi Friends...
    In my xml to idoc scenario...
    file is picking..but in sxmb_moni  it is showing as mapping error  like
    <b>No messages created from split mapping</b> ..
    i copied the the payload from sxmb_moni and i tested in static message mapping..its converting successfully...
    please guide me..
    regards
    ram

    refer these links;
    Split mapping created no messages - this has a solution, check if it can help you.
    Message Split without BPM - Error

  • Mapping error for file scenario.

    Hi ,
    I am working with the help of this scenario to pick only selected files.
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter
    I am getting error in mapping . Everything i have checked its correct . Mapping is correct . but still its giving error . how can i solve it .
    Error : RuntimeException in Message-Mapping transformatio~
    Thanks ,
    Syed.

    Dear Syed Kumar
    Based on the blog you are executing the scenario I guess. The scenario is clearly focusing on the picking up the files using the mask attribute in File Access Parameters.
    As you mentioned clearly, that you are getting mapping error plz concentrate on how to rectify the mapping errors.
    will guide to do so.
    1. Go to SXMB_MONI and in the integration server and check for the message you are trying send.( I hope you did this)
    2. As it is giving you mapping error, Double click onthe message Flag showing red.
    3.Plz check the Payload XML content copy that content and paste in the message mapping Test section of IR.
    4. Execute the Test. If you get the message at the receiver side there shouldn't be any error.
    If you still get the error let me know.
    Best of Luck
    Reward Points If found use ful.
    Edited by: Praveen Kurni on Jun 13, 2008 7:43 AM
    Do the Interface mapping test as well if you are successful in message mapping.

  • Message Mapping error:  RuntimeException in Message-Mapping transformation

    Hi,
    Being new to XI, I am struglling to sort out a basic mapping error. Appreciate if you could help out.
    Its an File->XI->R/3 scenario.
    My FCC successfully reads the File and creates an XML. However this XML is not transferred to the target XML structure which is exactly same except the root element name is different at top.
    I tried various forum tips but I still am getting the error.
    ( When I Test the Message mapping in test mode..it seems fine, however if I copy the XML from SXMB_MONI, it then throws the above error)
    I looked at the MM in text mode: below is the extract
    /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER=
    /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/SOURCE=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/SOURCE=
    /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/DESTINATION=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/DESTINATION=
    /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/MESSAGE_ID=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/MESSAGE_ID=
    As seen the name space in both starts with nS0 and end of each line has '=' sign. Is that ok.
    I have run out of options and dont know , whats the problem. Please help.
    The target and Source XML structures are exactly same as shown below
    MT_REQUEST                                 MT_REQUEST_TO_SAP
       |__MSG_HEADER                            |__MSG_HEADER  
         |__SOURCE                                |__SOURCE
         |__DESTINATION                           |__DESTINATION
         |__MESSAGE_ID                            |__MESSAGE_ID
    And the SXMB_MONI Trace shows the following error
    <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation:
    Cannot produce target element /ns0:MT_REQUEST_TO_SAP.
    Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at ..
    Thanks
    Shirin
    Edited by: Shirin K on May 29, 2008 10:29 AM

    Hi Prakasu,
    As structure are exactly same, I have done 1:1 mapping. So all the fields in target structure are mapped, so no field has beeen left.
    In this structure, I do not have any 1:n relation. So 1:1 mapping should be fine.
    Apart from this could teher be any other reason.
    Regards
    Rajiv

  • Mapping error in the BPM!!

    Hi Fiends,
    I have a BPM ..where I have the steps defined like this..
    Transform -> send mail..
    In the transformation ..I have a simple mapping program(source & the target structures have got one field)..
    message type structures are like this..
    source& target
    Return key  ---> 1:1
       field1 --->1:1
    mapping is like this :
    Field1--->field1(when field1 is not empty)
    If field1 is empty then -> I am sending some constant to the target ...and in the mapping it is working fine...
    My mail is working perfectly when there is some value in field1..and I am getting a mail..
    and when there is no value in field1..I am getting mapping error.
    do you have any idea..how can I solve this issue..plz help me..
    Thanks..

    Raju,
    Try tracing the "transformation" step in BPM. Check the instance of the message in sxmb_moni and click 'PE' so you will be in 'workflow log' here you could see the data flow of your message inside BPE. Here you can trace were your message got exception. If it is in transformation step then click on 'list tech details' (left top corner) then click on 'show container' button corresponding to that 'transformation step'. Its similar to using trace area in sxmb_moni. here you will be aware of mapping error.
    Hope it will be helpfull.
    Regards,
    Yuva

  • File-XI-IDOC : error in sxmb_moni because of empty idoc

    Hi !
    I'm converting a CSV file to IDOC segments (CREMAS04).
    XI uses a lookup table to convert CSV records to IDOC segments. It is normal that some records could not be converted. When I process a CSV file that has ALL non-convertable records, I get an error in sxmb_moni :
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>MSGGUID 99889D40A4D811DBAD4A0017A4510466: Tag found instead of tag IDOC BEGIN=</SAP:P1>
    And the final payload is:
      <?xml version="1.0" encoding="UTF-8" ?>
      <CREMAS04 />
    In the integration repository, the occurance of the complex type CREMAS04 is "1..1", I modified the xsd to minOccurs=0 , maxOccurs=1 , and imported it, but it keeps showing me "1..1"...
    How do I deal with these case ?? I don't want error red flags in monitor because of empty idocs...
    Thanks.

    Hi Bhavesh !
    Thanks !
    The problem is that because of mapping rules, the value of my target fields is SUPPRESS, not "empty".
    For example, I have a file with this records:
    A
    A
    B
    A
    "B" records should fill an IDOC segment, "A" not.
    If I receive a file with only "A" records, for example 48 "A" records...then the IDOC segment, now, is receiving 48 SUPPRESS values...then the mapWithDefault doesn't work because they are SUPPRESS and not EMPTY.
    Any ideas?
    Thanks,
    Matias.

  • MAPPING ERROR with IDOC

    Hi Friends,
           I am working on IDOC to JDBC scenario. Here i am using DEBMAS06 IDOC . when i tried to trigger an IDOC from BD12 T code its triggering an idoc but when i see it in MONI of XI, its giving mapping error. when i test my mapping program its executing successfully. even i tried to execute  with the incoming data in the sxmb_moni, i mean that i filles my mapping test with the same data coming into MONI  by filling all the segments coming into XI its executing successfully in mapping test.
       but  when i tried to trigger an idoc from we19 or from bd54 i am facing this error. can any one please let me know what else i can do for running  this scenario. let me know your comments.
    Thanks
    Ramana.

    Hi friends, I am getting the following error. On the sender side we dont need to take care of the structure because we will be importing the IDOC from the application system directly. on the receiver side i have created the structure for the data base. the mapping is running  fine in my mapping test. still i am not getting what else i need to do. please comment on this.
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MessageMapping_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MessageMapping_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • Error in SXMB_MONI for HTML to Webservice Scenario

    Hi Experts,
    I am facing following error Error in SXMB_MONI for HTML to Webservice Scenario
    "Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EmailRequest_To_ValidateEmail_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Content is not allowed in prolog."
    Only one field is used i.e. email address and mapped properly in IR but still the error is persisting, Please suggest some way out.
    Regards,
    Nitin

    Hi,
    Mapping internall follows the SAX parser. Please check if you are trying to process the data of large size.
    generally while parsing the large data this exception get raised. Even though there is just one field, what is the data size you are trying to pass.
    Thanks
    Swarup

Maybe you are looking for