Skip to Content
avatar image
Former Member

RuntimeException - Mapping

Hi All,

Business scenario: File-To-File, file needs content conversion

My Graphical mapping is working fine. I tested with sample file in interface mappin also. but when I'm executing the scenario it is giving following error.

Error: (SXMB_MONI)->error inf

RuntimeException in Message-Mapping transformatio

Content:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- 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/_FILE_TO_FILE_CSV_</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/_FILE_TO_FILE_CSV_ 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 analyze and suggest any solution, otherwise shall I post to SAP bcz i posted the same earlier and past some days I'm struggling to solve but faild: I executed Idoc-to-File and File-to-Idoc but in that no content conversion takes place.

regards,

venu.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 20, 2006 at 04:27 PM

    Hi Venu,

    Why did you change your target structure? Are source and target structure identical? Then you would not need any mapping at all! It's the purpose of a mapping program to translate xml structures.

    Best regards

    Joachim

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 20, 2006 at 12:51 PM

    Hi,

    >>I executed Idoc-to-File and File-to-Idoc but in that no content conversion takes place.

    So you are using content conversion. From the moni take the format of the input Message Type and compare it with the source format from the test tab of message mapping. Are they same?

    Post both formats here along with the content conversion parameters.

    Regards

    Suraj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Anirban,

      Thanks Good idea..

      I tested the mapping with payload. I got following error message:

      Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 2d, 20, 3c(:main:, row:2, col:3)

      moreover the position of error according me is S13 but i didn't find any error .

      But i mainatined correctly if I enter manually it is working fine..

      My doubts:

      do we need to give any type for Root , H1, sub1, sub2..

      i just gave occurance only.

      In message mapping i mapped sub1 of source to sub1 of target( i have taken both source and target is same structure for testing)

      in the same way source-sub2 to target-sub2 ...here am i doing any wrong?

      problem is if i don't map these things, these structures are not instantiating in target.

      Regards,

      venu.

  • Mar 20, 2006 at 12:58 PM

    Hi Venu,

    plz test if you not already have done that: Copy the XML content from monitoring and test it in the Integration Builder. Ashure that all development are activated. If the mapping is running in IB but not during runtime you have (may be) a cache failure. I had that with an older SP some time ago. I could change a mapping in IB but executed has been always the old one. I solved that by renaming the mapping and refer the new one in interface determination. The error was not repeatable (!?). It is recommentable to open a SAP call for that.

    Regards,

    Udo

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 20, 2006 at 02:28 PM

    Hi Venu,

    It seems that your runtime document does not fit to the structure you use for your mapping:

    <i><?xml version="1.0" encoding="utf-8" ?>

    - <ns:FILEINPUTCSV xmlns:ns="urn://f1send">

    - <b><Root></b>- <H1>

    ...

    Following is the source document view on message mapping test

    <?xml version="1.0" encoding="UTF-8"?>

    <ns:FILEINPUTCSV xmlns:ns="urn://f1send">

    <H1>

    ...</i>

    So either in your runtime document you have to remove the <Root>-tag or you add it to the message type used for your mapping.

    Best regards

    Joachim

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 20, 2006 at 03:58 PM

    Hi Venu,

    Sorry, I've ignored that your using content conversion in the file adapter. Then you should modify your message structure of your outbound interface, so it fits to the instance created by the adapter.

    Best regards

    Joachim

    Add comment
    10|10000 characters needed characters exceeded