cancel
Showing results for 
Search instead for 
Did you mean: 

In file to idoc....EXCEPTION_DURING_EXECUTE Error

Former Member
0 Kudos

Hi XI Friends..

in my xml to idoc..scenario..

source datatype:

DT_Units

id

date

value

target idoc : IMEASR.IMEASR01

i did mapping between these

id----

-


>E1MEASR-POINT

date----

-


>E1MEASR-IDATE

value----

-


>E1MEASR-READC

and i assigned constants for readr,itime,mdtext of target idoc.

MT_Units------>IMEASR-IDOC

i tested in message mapping..and i cpoied the source from message mapping and given as source xml

<ns0:MT_Units xmlns:ns0="http://aaaa.com/xi/PROCESS/PPE/ERP_MES">
   <id>70013</id>
   <date>20060101</date>
   <value>3333</value>
</ns0:MT_WearUnits>

static test of interface mapping also Ok.

in ID, TestConfiguration i given source service and source interface and target service and the payload as source xml file and its a success.

the file is picking from source but it showing EXCEPTION_DURING_EXCECUTE OF MAPPING Catagory as error.


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/_MM_WearUnits_To_SAP_</SAP:P1> 
  <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2> 
  <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3> 
  <SAP:P4></SAP:P4> 
  <SAP:AdditionalText></SAP:AdditionalText> 
  <SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage> 
  <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_WearUnits_To_SAP_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack> 
  <SAP:Retry>M</SAP:Retry> 
  </SAP:Error>

and the payload is look like this..

<ns0:MT_Units xmlns:ns0="http://aaaaa.com/xi/PROCESS/PPE/ERP_MES">
   <id>70013</id>
   <date>20060101</date>
   <value>3333</value>
</ns0:MT_WearUnits>

and in file adaptermonitering ..in message content..

The XML page cannot be displayed 
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource 'http://...

<ns0:MT_Units xmlns:ns0="http://aaaaa.com/xi/PROCESS/PPE/ERP_MES">
^

please guide me..

regards

ram

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member184619
Active Contributor
0 Kudos

Hi ram,

check this link

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

Regards

Sachin

Former Member
0 Kudos

Hi rama,

please remove




keep only

and restart the xml process in SXMB_MONI and check the status..

..And are you sure the input file is XML and encoding is UTF-8..?.

Chandu

Former Member
0 Kudos

Hi friends...

thanx for your quick responses..

As you suggested..

i put source xml as

<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Units xmlns:ns0="http://aaaa.com/xi/PROCESS/PPE/ERP_MES">
   <id>70013</id>
   <date>20060101</date>
   <value>3333</value>
</ns0:MT_Units>

and i am getting same error in SXMB_MONI.

but payload as


Invalid at the top level of the document. Error processing resource 'file:///D:/Documents and Settings/ram/Local Se...

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

and in adaptermonitering ..file is picking and it showing the message content as

The XML page cannot be displayed 
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource 'http://...

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

please help me...

regards

ram

Former Member
0 Kudos

Hi,

First try opening the input file in internet explorer and see if it is giving any error.If it gives an error means then there is some problem with the input file.

Regards,

Sudheer.

trevor_zhang
Explorer
0 Kudos

Hi,

Maybe you shold open your XML file in INTERNET EXPLORER to check your xml file is right or not.

Thanks

Trevor

Former Member
0 Kudos

Hi,

There is no XML prolog in your input data.

Try including this in fron tof your input.

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

Regards,

P.Venkat

Shabarish_Nair
Active Contributor
0 Kudos

+

the earlier xml is in a corrupt format !!!

bhavesh_kantilal
Active Contributor
0 Kudos

Ram,

Some junk data is found in your source file at the beginning.

please remove the same , add <i><?xml version="1.0" encoding="UTF-8"?></i> to the beginning of your file

and test your scenario . it should work fine.

Regards,

Bhavesh