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.

Similar Messages

  • 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..

  • 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.

  • 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

  • Run time error during message mapping transformation

    Hello,
          i created a scenario and tried to execute . i got this error .
    RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ZCRM_CRMXIF_ORDER_SAVE_M01/IDOC/BEGIN. The message is: Exception:[java.lang.RuntimeException: Error: Occurred in RFC Look UpPlain exception:Problem when calling an adapter by using communication channel RFC_Lookup_Receiver (Party: , Service: Test_ReceiverSystem, Object ID: 1772b13e46b93b99bca48e278463007d) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:1772b13e46b93b99bca48e278463007d not available in CPA Cache. com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel RFC_Lookup_Receiver (Party: , Service: Test_ReceiverSystem, Object ID: 1772b13e46b93b99bca48e278463007d) Check whether the communication channel exists in the Integration Directory; also check the cache notifications for the instance Integration Server (central Adapter-Engine) Channel object with Id Channel:1772b13e46b93b99bca48e278463007d not available in CPA Cache. at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.<init>(AdapterProxyLocal.java:61) at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.getProxy(SystemAccessorInternal.java:98) at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.<init>(SystemAccessorInternal.java:38) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.getConnection(SystemAccessorHmiServer.java:270) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:70) at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:169) at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:178) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:296) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:211) at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:496) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:634) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) ] in class com.sap.xi.tf._XiameterBasicRegistration_MM_ method crmRfcLookUp$[, , , , Test_ReceiverSystem, , com.sap.aii.mappingtool.tf3.rt.Context@26dd0a50]
    can any one tel me wats going wrong ??

    The error shows that you are using business system and comm. channel in UDF for doing some processing. The error is because it is not able to locate the specified comm channel for the business sytem.
    please check if the comm. channel name and business system names are spelled correctly. Also you can try refreshing the CPA cache/ XI cache.

  • Repeate Message after RuntimeException in Message-Mapping transformation

    Hello Experts,
    I have a mapping defined with a UDF. In the mapping editor the tests were successfull but in the reale world - of course not
    Now I have a message in the Integration Server with red flag because of
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /LIST/S_UNB/S_UNH/G_SSG18/S_GID/C_C213/D_7224. The message is: Exception:[java.lang.NumberFormatException: For input string: "__cC_"]
    I've located the error in the UDF and want to repeate the message with the new mapping. But again the same error although the test in the mapping tool (with the original payload) was successfull.
    It must be possible to repeate those messages but how?
    Thanks a lot.
    Christian

    This was a little bit strange. But after the import, the version of the mapping in PROD was different from TEST.
    I've changed the description Field of the Mapping in Test, activated the version and did the export/import again. Now the versions were the same and after repeating the message everything is o.k.
    THANKS ALL FOR YOUR HELP!
    Christian

  • 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

  • UK E-Filing: Message Mapping Transformation

    Hello Everyone,
    Just curious to know if anyone has seen this error while working on E-Filing for the UK, while trying to send data to the Inland Revenue:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:GovTalkMessage/ns0:Body/ns1:IRenvelope. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start
    Helpful, readable, and easy to understand reponses which provide a resolution to this issue, will be rewarded accordingly.
    Thanks for your help!
    John

    Hi John,
    1) Your problem is related to Message mapping only.
    2) This type of error means in mapping you have context problem. Some where your context is mismatched for IRenvelope node.
    3) Take your runtime xml and check directly in message mapping.
    4) Your output instances for IRenvelope is more than its occurances.
    5) Try by using RemoveContext function before your target node.
    Regards Rohit,
    Reward points if helpful

  • JDBC Sender Error "RuntimeException in Message-Mapping transformation"

    Hi All,
    I have JDBC as sender and i am able to poll the data from the database,which is available in SXMB_MONI but its giving an error "RuntimeException in Message-Mapping transformation".I have tested the mapping in TEST and its working fine but when i tested the same in configuration its throwing an error in Interface mapping(<NOT FOUND>).
    I have also created a node <b>row</b> in my sender data type.
    Expecting your help soon.
    Thanks and regards,
    Zabi.

    Hi,
    Check the data  coming  inside..the XI... that is before mapping..
    Regards
    Agasthuri Doss

  • RuntimeException in Message-Mapping transformation: -- Message Status 14

    Dear ALL Experts
    Messages are failed and showing the "RuntimeException in Message-Mapping transformation: Cannot produce target element "
    also Message Status are showing as 14.  Need to know few details such as,
    1> Where we can check the exact error ?
    2> Where we can check the error log file ?
    3> What will be the possiable reason behind this failer ?
    4> how can we resolve the same ?
    Thanks and Regards
    Machindra Patade

    Messages are failed and showing the "RuntimeException in Message-Mapping transformation:
    Cannot produce target element "
    The mapping logic applied is not able to produce the target element with the sorresponding Source payload.
    Check if the payload (which you see in SXMB_MONI) is able to execute the mapping (Message/ Interface Mapping --> Test) successfully.
    you can even refer page-191 from this guide:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000702797&_OBJECT=011000358700000063822008E
    S-userid required to view the above document....the method is the same for SAP XI/ PI 7.0/ 7.1
    Regards,
    Abhishek.

  • 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.

  • 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>

  • 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.

  • 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

Maybe you are looking for

  • IQ810 connect to a PS2

    Hi, looking to connect a PS2 to my IQ800 Touchsmart. I know that the S-VIDEO connection on the touch smart is only for video capture. Anyway to do this? Maybe some sort of USB to S-Video Adapter? Any ideas? Thanks Lewis

  • Statutory forms

    Hi all What are the statutory forms that are required to be submitted by Employees and Employers. We need the correct templates of these forms. (Eg., Form 16 in India) where we get other country's (Nigeria) statutory forms list ? thanks srinu

  • Junk mail still pushing to iPhone 4s

    I have turned off junk mail push for my hotmail account on my iPhone 4s but am still getting every junk mail in the folder pushed to my phone, anyone know how to fix that?

  • Canceled service before end of contract and billing cycle. Being charged an extra month!

    Hi. I have been a loyal Verizon wireless customer for a long while, but have had such a bad experience in the past year (where I have paid bills as high as $700.00) that I decided to cancel my services and move to another network. My billing cycle ru

  • SQR Union Clause

    below is a code snippet.Is there a way to insure the data in the SELECT statement is subject to the same manipulations as the data in the BEGIN_SELECT? begin-selectA.GD_ENTITY_ID A.GD_ENTITY_OIDA.GD_ENTITY_CLASSA.GD_EFFDTA.GD_ATTN_TOA.ADDRESS3A.ADDRE