Runtime Exception in Message mapping

Hi Experts,
I have a scenario of  IDoc to  <third party adapter> cXML.
The message caught the below error
RuntimeException in Message-Mapping transformation : Runtime exception during processing target field mapping ......./ShipTo[2]/Address/PostalAddress/DeliverTo (suppressed field). The message is: Exception:[java.lang.ArrayIndexOutOfBoundsException: 7] in class com.sap.xi.tf._M_IDOC_to_cXML_ method getShipToContact$[, , com.sap.aii.mappingtool.tf3.rt.Q2QFunctionWrapper@253fdd8a]
Please suggest on what went wrong, as everything is working fine before.
Thanks in advance.
MK

Mk:
Please check if the source fields which are mapped to the target are all generated by the SAP Script and make sure that they have data so that when they are mapped to the target. If they are mapped and source fields don't have data then it may error out. Sometimes SAP Script might not generate a node if there is not data for it, make sure you handle that condition also.
RuntimeException in Message-Mapping transformation is
due to the missing TEXT_LINE element in the segment Z1VOBTH for the TEXT_ID 'INVOICE_TO_LOCATION'
I am not able to understand this. is Text_ID subelement of Text_Line?? Could you please post the complete error message as it is.

Similar Messages

  • Runtime Exception in Message mapping transformation.

    hi Experts,
    i did IDOC(MATMAS05) to File scenario.
    if i tested the mapping in IR (Test tab), its working fine.
    but when i triggered the IDOC from SAP R/3 system, it reaches to SAP PI and showing Mapping falure in SXMB_Moni.
    then i took the payload from the MONI, and tesed with this payload in Mapping test tab in IR.
    there it is showing as java null pointer exception.
    can anybody tell me what is the problem here?
    thanks,
    kumar

    Hi,
    I think the required fields might not be occuring, if it occurs it might not have contianed any values thats the reason why message mapping is failing. For required fields you might have done some transformations which will not work if source required field has no values in it.
    So kindly check and correct.
    Regards,
    Chandra.

  • About runtime exception in the mapping

    Just i am trying to solve the blog http://weblogs.sdn.sap.com/pub/web/3228
    in the sxbm_moni it is showing that runtime exception in massage mapping trasformation. But in that scinario i am not using any mapping program? Whithout using any mapping program how we will get exception in massage mapping?

    Dear Rama Krishna,
    I'm unable to open the link to web blog. plz provide the correct path so that I can help.
    Regards
    Praveen

  • Runtime error in message mapping.

    Hi experts.
    My scenario is File --> PI --> File.
    During the message mapping there are a few RFC lockups.
    I have configured an communication component for the RFC destination, and a Receiver  communication channel to the RFC system.
    When I am trying to check the message mapping and the operation mapping from the integration builder every thing works just fine.
    In the interface determination i have configured the rfc parameter for the mapping.
    When I am trying to run the hole process i receive an error saying:"Runtime exception from: java.lang.nullPointerException:
    null at com.sap.guid.GUID.parsHEXguid(guid.java:1015)
    reguars Max

    Hi.
    As i have already said when I am trying to test the same operation mapping directly in the integration builder with the same message, it passes the mapping without any exceptions.
    I think the catch may be in the fact that there are a few rfc calls inside the graphical mapping.
    Any suggestions?
    Regards Max.

  • Base runtime exception in message maping transformation

    Hi,
    I am working with 1:N mapping.
    I am making use of BPM.
    But when I execute the entire scenario it gives error in the BPM's transformation step.
    Error says , <b>BaseRuntimeException in message mapping transformation.</b>
    But when I check the same payload in message mapping it works fine.
    Kindly,provide some help regarding it.
    Regards,
    Nilima

    Hi,
    Please check your message mapping and Interface mapping.. correctly working or not..
    BaseRuntimeException in message mapping transformation
    You need not fill all the fields, but atleast all required fields should be filled. I mean if you are mapping a field A from source to field B in the target and if the field B in the target is mandatory then you should fill field B with some value otherwise you will get a mapping error
    Or check your user defined function error ...
    Take the SXMB_MONI sourece xml and come back to MM test ..
    see below threads
    Message Mapping Exception
    Runtime Execption Message Mapping
    /community [original link is broken]://need help in message transformation.
    Message-Mapping transformation Error(Soap <-> XI <-> SAP)
    Regards
    Chilla..

  • Exception in Message mapping for JDBC - XI- file

    Hi,
    In the above scenario, Sender JDBC adapter has processed the message but when i checked the processed XML messages, its giving an error message with details
    <i>During the application mapping
    com/sap/xi/tf/_MM_XXXX_a
    com.sap.aii.utilxi.misc.api.BaseRuntimeException
    was thrown: RuntimeException in Message-Mapping
    transformatio~</i>
    how to make the source structure so that it gets correctly populated with the result set of sender JDBC adapter? Are there any constraints while making the Data type for the source structure?
    Regards,
    Nitin Aggarwal.

    Hi,
    The problem is solved...
    Actually, the runtime system was not able to map the result set generated by the Sender JDBC adapter to the source structure of message mapping. This was because the result set has a particular structure and its like
        <resultset>
          <row>
            <column1>value1</column1>
            <column2>value2<column2>
           </row>
        </resultset>
    To map this kind of structure to the source structure, a  <b>row</b> element should always be there below the root node and the structure fields should be placed as sub elements to row. One more thing the root node of the source structure should be same as the document name specified in the sender JDBC adapter config.
    Anyways, Thanks to all for the valuable efforts.
    Regards,
    Nitin.

  • BaseRuntime Exception during Message Mapping

    Hi I am performing the scenario File --> XI --> File
    I want to do the File content Conversion (FCC) only at the Receiver side.
    My source file(Message Type) is XML which looks like as below:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT1_FCC xmlns:ns0="http://accenture.com/xi/F2F">
    - <Name_>
    - <Name>
      <FName>abc</FName>
      <MName>bcd</MName>
      <LName>cde</LName>
      </Name>
      </Name_>
      </ns0:MT1_FCC>
    My target file would be the text file which will look like as follows:
    abc#bcd#cde
    However at runtime the Error is thrown with BaseRuntimeException in Message Mapping which simple one to one mapping from source message to target message . the source and the target message are same.
    The Error message is as follows:
    <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_FCC_</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException
    Kindly Look into the Issue..

    Hi i think you are getting confused by the Sorce Structure...
    Ok lemme retype it for You and please then tell me the necessary parameters needed to convert the source xml file into the target text file
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT1_FCC xmlns:ns0="http://accenture.com/xi/F2F">
       <FullName>
          <Name>
             <FName>abc</FName>
             <MName>bcd</MName>
             <LName>cde</LName>
          </Name>
       </FullName>
    </ns0:MT1_FCC>

  • Throwing Exception in Message mapping.

    Hello,
    I am using PI 7.0 and SP 16.
    I have implemented this blog  /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping . But when i was testing in Message Map it is showing the error but when i am testing an end to end scenario it is not showing any trace or error.
    My trace level is 3.  Also message status in moni is Scehdule for outbound processing.
    Please help.
    Thanks and Regards
    Hemant

    Dear Hemanth,
        I have implemented this in my scenario and it was working fine. Might be the condition you have given is not satisfied with the input XML values. Check the following things.
    1. Did you import the .jar or .zip files with two java clsses (CustomMappingException, ExceptionThrower) under imported archives?
    2. Did you give the package name under imports of UDF?
    3. Check whether package names are same at all the places wherever mentioned in that blog.
    If you do correctly these things it must work when the conditions satisfied.
    Main thing is the mapping should go error with red flag in SXMB_MONI. Then only you can find the message in trace.
    Regards,
    JP.
    Edited by: Jaganmohan Ponmani on Feb 25, 2010 7:10 PM

  • EXCEPTION_DURING_EXECUTE runtime exception in mssage mapping transformatio

    Hi,
    I am facing a problem in RFC-XI-SOAP synchronous scenario. In SXMB_Moni i see the response
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping -->
    - <updateResponse xmlns="http://hemxwebui5-d:8580/ematrix/services/MatrixAxisUpdJCO" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <updateReturn xsi:type="ns1:Map" xmlns:ns1="http://xml.apache.org/xml-soap">
    - <item xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="">
      <key>hasError</key>
      <value>false</value>
      </item>
      </updateReturn>
      </updateResponse>
    and also an error
        <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_update_response_</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>During the application mapping com/sap/xi/tf/_MM_update_response_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    In design test of response the result is passed to target and looks fine but at the time of testing the payload response it gives cannot produce target element...check xml instance is valid for source xsd.
    Source structure for WSDL(XI generated),
    update Return - Node
    Item - Node
    |
    |
    key -Element
    value - Element
    mapped to Target
    T_reponse -- Node
    Item
    |
    |
    key
    value
    Somehow the structure from the payload is different from what xi has produceed.....Please any suggestions.
    Thanks,
    Ashok

    The xml structure generated from XI looks different to that of the response we receive in payload of calling adapter
    this would mean
    1)  that the structure(s) that your are using are not same as what the target system is sending back....Your target system is SOAP and hence you would have used the WSDL from target application.
    Just make sure that the WSDL you are using in XI/ PI are updated and exactly same as they are in the target application.
    2) You have some element in the response which you have not mapped to the target structure....are all the fields in the response are mapped?
    If still not getting solved, post the difference that you see in the structures.
    Regards,
    Abhishek.

  • Handling PI 7.1 RFC Lookup Exception in Graphical Mapping

    Dear Experts,
              I would like to know the better way of handling PI 7.1 - RFC Lookup Exception in Graphical Mapping without using  BPM. Say I perform a RFC Lookup from PI 7.1 Graphical Mapping and it fails due to RFC server down. In this case I suppose the RFC exception would be returned as response to the mapping? But, am really not sure how this response (RFC Exception) could be effectively used. Please clarify.
    Thanks,
    Hussain.
    Edited by: HussainShaik on Oct 26, 2009 8:24 AM

    Hi Hussain,
    I am not sure if I understood you query completely.
    IF the RFC look up raised some exception then how this is going to impact your interface will depend your mapping (which you did in ESR)
    (the following is adopted from help.sap,com)
    If you handled exceptions  by selecting Use Exceptions checkbox in the function properties of the standard function, the mapping editor adds an additional parameter in red (the bottommost return parameter) to the standard function in the data-flow editor. If you do not assign a target field to this return parameter, ignore the RFC exceptions (the message mapping is not terminated at runtime). Otherwise the mapping runtime transfers the exception as an XML structure and it can then be evaluated in a user-defined function, for example. If there is no exception, the mapping runtime transfers an empty context.
    If you have not selected the Use Exceptions checkbox, the mapping runtime terminates the message mapping if an exception occurs during the RFC lookup.
    Is this you are looking here?
    Also check this thread and help.sap site
    Re: SAP-PI - RFC call to SAP backend system
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/content.htm
    Regards
    Suraj

  • Mail adapter -- Runtime exception

    Hi,
    I am trying a file->XI->Mail scenario. In SXMB_MONI it shows a error in the request mapping..
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_SMail_RMail_</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>During the application mapping com/sap/xi/tf/_SMail_RMail_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Can anyone pls guide me to solve this problem....
    cheers,
    Anup

    Hi Anup,
    Check these links
    Re: Exception com.sap.aii.utilxi.misc.api.BaseRuntimeException
    Re: Outbound error
    Mapping Error
    Exception in Message mapping for JDBC -> XI-> file
    Regards
    Vishnu

  • RuntimeException in Message-Mapping transformation: Runtime exception durin

    Hi Friends,
    Iam going test Message Mapping, i got the error like
      RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:LeapIndent_R3_MT/Recordset/RowData/QTY_TNS. The message is: Exception:[java.lang.NumberFormatException: empty String] in class com.sap.aii.mappingtool.flib3.Arithm method formatNumber[, com.sap.aii.mappingtool.tf3.rt.Context@27f972cf]
    Pls help me ..
    Thanks & Regards,
    Nvr

    Hi Ravi,
      Thanks for ur reply, the problem is solved, the Date field is Mandaratory, they are not mention the data field, so that way the problem is coming.
    Thanks & Regards,
    NVR

  • Mapping Runtime Exception - How to see complete error message?

    Hello,
    we have a mapping runtime exception in SXMB_MONI. However only the first 4 lines are displayed are shown in <SAP:Stack>, the rest of the error message is needed however for trouble shooting.
    Is there any way to display the full error message? Executing a unit-test in ESR is not possible as there are some functions executed which just work during runtime.
    Thank you.

    Resolved: The full error is visible in the trace section of the header.

  • Message mapping tab works fine ,runtime exception

    Hi ,
    Need some advice... I get a runtime messge mapping error ( system error) failing the substring logic although when i download the same payload and run in test tab it works fine. Has anyone encountered similar issue ?
    Thank you.

    objects are active.Your second point is good ,but this error only happens when a load test is done , partciular messages throw runtime exception and fail in mapping on substring logic but when the same payload is downloaded and run via message mapping tabl it runs through. i will try disabling the substring logic nodes.
    Secondly when i get a runtime exception ,i try to restart the same message and it goes thorugh successfully. So restarting in moni helps.... but does not explain why....
    Thanks
    Edited by: xi project on May 18, 2010 12:28 AM

  • Runtime exception caught in Message mapping

    Hi,
       I have a scenario where I am splitting the source message and map them to 3 different target structures.
    When I test the scenario in the Mapping under Test tab it is throwing an error as follows:
    RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1/Target1/xmlJob. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd.
    The result for one of the target message in message mapping as follows: Is there some problem with the below lines in bold letters:There is a UDF which causing this transformation.
    Please give some inputs on this.
    Start tag [ns1:MT_O_T3]
    Add raw attribute [ xmlns:ns1="http://pharma.com/"]
    Start tag [Row]
    Start tag [Title]
    Put value [job titile]
    Close tag [Title]
    Start tag [JobID]
    Put value [reference # 1]
    Close tag [JobID]
    Start tag [Country]
    Put value [US]
    Close tag [Country]
    Start tag [City]
    Put value [Mawo]
    Close tag [City]
    Start tag [State]
    Put value [SA]
    Close tag [State]
    Start tag [ZipCode]
    Put value [50123]
    Close tag [ZipCode]
    Start tag [Cname]
    Put value [ ]
    Close tag [Cname]
    Start tag [Cphone]
    Put value [ ]
    Close tag [Cphone]
    Start tag [Cemail]
    Put value [ ]
    Close tag [Cemail]
    Start tag [Cweb]
    Put value [http://www.pharma.com/]
    Close tag [Cweb]
    Start tag [Category]
    Put value [9901]
    Close tag [Category]
    Start tag [Travel]
    Put value [100]
    Close tag [Travel]
    Start tag [Telecommute]
    Put value []
    Close tag [Telecommute]
    Start tag [JobType]
    Put value [Executive]
    Close tag [JobType]
    Start tag [Clearance]
    Put value [None]
    Close tag [Clearance]
    Start tag [Education]
    Put value [1]
    Close tag [Education]
    before check 50000
    after check 50000
    before check 100000
    after check 100000
    after average 75000
    Start tag [Salary]
    Put value [Avg: 75000]
    Close tag [Salary]
    Start tag [Suitable]
    Put value [ ]
    Close tag [Suitable]
    Start tag [Expire]
    Put value [23]
    Close tag [Expire]
    Start tag [Sdesc]
    Put value [job titile]
    Close tag [Sdesc]
    Start tag [Ldesc]
    Put value [null]
    Close tag [Ldesc]
    Start tag [Requirements]
    Put value [test description]
    Close tag [Requirements]
    Close tag [Row]
    Close tag [ns1:MT_O_T3]
    Thanks
    BPR

    u replied that u r getting the erro while testing it from test tab.
    Ur mapping is not correct check the same which i told u in my previous reply.
    r u using any FCC.
    chirag

Maybe you are looking for