on 05-18-2009 5:12 AM
Hi experts
I testing my interface while testing i am getting below mapping error.
But here there is no mapping logic only 1:1 simile mapping.
please let me know the reason
error is
com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_HSFO_FROMFUEL_HEDGING_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Thanks
Srini
com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_HSFO_FROMFUEL_HEDGING_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
the error log is incomplete to make any suggestion...can you provide the complete log....
as of now just check if there is any mandatory field in the target side which is not getting value during the mapping....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI abhi,
plz look into belog error log.
*<?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="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_HSFO_FROMFUEL_HEDGING_</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/_MM_HSFO_FROMFUEL_HEDGING_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
this is my message structure
Source: Target:
Heade Header 1:1
HedgID 1:1 HedgID 1:1
Item 1:1 Item 1:1
Itemdata 1:unbouded Itemdata 1:unbounded
Month 1:1 month 1:1
VolMT 1:1 VolMT 1:1
like this my data type i created,
same as i mapped like this below
Source Target
Heade to Header
HedgId to HedgId
Item to Item
Itemdata to Itemdata
month to month
VolMT to VolMT
please let me any errorr in this
why i am getting error
I am new to XI
remove the maping for this node /ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY ...it is not necessary for your case as /ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY is having an occurence of 1..1
From you source and target structure it looks that you are having all the fields as mandatory....so you need to take special care in such mappings.....you need to ensure that all the source fields are populated in the inbound message by the sender..
Yes, Abhi,
I am getting same error.
From this blogs is possibel to send screen shots
error:
:38 Start of test
Cannot produce target element /ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY/HSFOHeader. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY/HSFOHeader. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
13:27:39 End of test
the only thing that can be said is that you need to check your XML thoroughly....your mapping does not have a problem...just that the values that you are passing in the Source XML are not satisfying the requirement......did you try checking your entire payload structure.....paste your XML (fromSXMB_MONI after removing signs) in the source region of your mapping in IR and then try to expand your source strcture....if there is an error in the XML that you are using then it will be shown there itself......
HI Abhi
I am folowing you words.
This time i got below error
:46:20 Start of test
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:7) 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:7) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) Root Cause: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:7)(:main:, row=1, col=7) -> com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:7) at com.sap.engine.lib.xml.parser.XMLParser.scanPI(XMLParser.java:2128) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2776) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2832) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:231) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) -
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:534) Caused by: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:7) at com.sap.engine.lib.xml.parser.XMLParser.scanPI(XMLParser.java:2128) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2776) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2832) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:231) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) ... 4 more Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:7)
the very first line of your input XML is incorrect........what i mean by very first line is
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
Please check......
even a single space before <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> would mean an errror.....< should be the first character that should appear in your XML
Edited by: abhishek salvi on May 18, 2009 11:25 AM
Hi,
>>error::38 Start of test Cannot produce target element /ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY/HSFOHeader. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY/HSFOHeader. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
13:27:39 End of test
Start with debugging your mapping. Open your mapping and use F7 to check mapping for errors. If you found some error rectify it. If it doen't show any error that means your mapping is sysntactically correct.
2nd step - Now go to your XML which u must be copying it from test tab of source and putting it somewhere. Check carefully if everything is fine and all tag is closed. some time it takes all fields in one tag of ns0 or ns1. check it.
As your error suggest, it is not able to form the target element, check if you correctly mapped all source to target fields as well as elements.
Transformation error come because of error in mapping.
Regards
Aashish Sinha
can you post your XML in SDN (remove the confidential data)...just that post it as is from IR / SXMB_MONI....where you are getting the error.
even this SAP note tells the same thing that there is problem with either payload structure or mapping:
hi,
/ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY/HSFOHeader
It clearly shows your payload does not match with your Mapping.Go to sxmb_moni.Take the payload using view source.Go to message mapping Test tag.Place the payload in source text view.Change the mode to table tree view.It will show red color.Check what you missing in the source structure which is mapped in /ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY/HSFOHeader.
Regards,
Prakasu.M
Plz look my xml data
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY xmlns:ns1="http://tuas.com/xi/hedging/CRM">
<HSFOHeader>
<HedgeID>100</HedgeID>
<ItemNum>001</ItemNum>
</HSFOHeader>
<ItemData>
<Month>JAN-09</Month>
<Vol_MT>200.00</Vol_MT>
<HSFO>1</HSFO>
</ItemData>
</ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY>
>
> Hi,
> I followed your steps,
>
> i placed the payload in source text view in mapping test tab. then i changed the mode to tree view. here all fields showing red color. why it was happining.
> how to resolve this problem.
> please tell me what to do step by step i am new to XI.
This is not the normal behavior...this represents an error.....either your Source message structure that you are using in Message mapping / interface mapping is incorrect or your payload which you are putting in the source tab is incorrect.....
Hi abhi,
i tryed all possibilites still i am getting below error in SXMB_MONI
plz giude me how to resolve this problem
<?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="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_HSFO_FROMFUEL_HEDGING_</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/_MM_HSFO_FROMFUEL_HEDGING_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
i placed the payload in source text view in mapping test tab. then i changed the mode to tree
view. here all fields showing red color. why it was happining.
how to resolve this problem.
this is the problem....your message from Sender System and that configured in SAP XI does not match...there is some problem....it is not a major issue.....but just that your development is not visible it will be difficult for a quick debug......
Just start troubleshooting your scenario from ground zero...start checking the DT, MT....check if sender system and SAP XI are using exactly the same message......even an unwanted/ unknown addition/deletion of a node at either side may be the cause of the problem....
In SXMB_MONI....you see the Pipeline Steps.....Inbound Message...Message Mapping etc....here check what is the message structure in Inbound Message tab....
Edited by: abhishek salvi on May 18, 2009 1:21 PM
Hi every thing is correct.
plz find i am sending both
soure xml
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSFO_FROMFUEL_HEDGING xmlns:ns0="http://tuas.com/xi/hedging/FS">
<HEADERDATA>
<HEDGE_ID/>
<ITEM_NUM/>
</HEADERDATA>
<ITEM_DATA>
<MONTH/>
<VOL_MT/>
<HSFO/>
</ITEM_DATA>
</ns0:MT_HSFO_FROMFUEL_HEDGING>
excured paylaod
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY xmlns:ns1="http://tuas.com/xi/hedging/CRM">
- <HEADERDATA>
<HEDGE_ID>1000</HEDGE_ID>
<ITEM_NUM>200</ITEM_NUM>
</HEADERDATA>
- <ITEM_DATA>
<MONTH>JAN-09</MONTH>
<VOL_MT>2003</VOL_MT>
<HSFO>1234567.000</HSFO>
</ITEM_DATA>
</ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY>
payload
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY xmlns:ns1="http://tuas.com/xi/hedging/CRM">
- <HEADERDATA>
<HEDGE_ID>1000</HEDGE_ID>
<ITEM_NUM>200</ITEM_NUM>
</HEADERDATA>
- <ITEM_DATA>
<MONTH>JAN-09</MONTH>
<VOL_MT>2003</VOL_MT>
<HSFO>1234567.000</HSFO>
</ITEM_DATA>
</ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY>
As per your reply.....Your Source xml:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY xmlns:ns1="http://tuas.com/xi/hedging/CRM">
- <HEADERDATA>
<HEDGE_ID>1000</HEDGE_ID>
<ITEM_NUM>200</ITEM_NUM>
</HEADERDATA>
- <ITEM_DATA>
<MONTH>JAN-09</MONTH>
<VOL_MT>2003</VOL_MT>
<HSFO>1234567.000</HSFO>
</ITEM_DATA>
</ns1:MT_HSFO_FROMFUEL_HEDGING_PROXY>
As per your reply.......Your Source Structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSFO_FROMFUEL_HEDGING xmlns:ns0="http://tuas.com/xi/hedging/FS">
<HEADERDATA>
<HEDGE_ID/>
<ITEM_NUM/>
</HEADERDATA>
<ITEM_DATA>
<MONTH/>
<VOL_MT/>
<HSFO/>
</ITEM_DATA>
</ns0:MT_HSFO_FROMFUEL_HEDGING>
I think you have got somethings wrong......
your source xml and source structure should be the same.......with the same namespace....
i think you have mismatched the structures........
Can you list out the things that you have created for this scenario.....in the following order:
1) Sender -
XI
2) Within XI like mapings....alongwith the messages included in it
3) XI-----Receiver
Here i created only one data type for both bcz my source and receiver is same structure
yes...you dont need to create two different source and target structures....but the thing that wonders me is why are you having two different namespaces here....i think this is the only reason that you are getting Red Nodes in Test tab of mapping...and sxmb_moni saying you cannot create target node...
Hi abhi,
New problem,
In SXMB_MONI, i am getting below error,
(just now i given source and target data type is same (before changes this receiver determination is no error)
SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>No receiver could be determined</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Hi abhi,
New problem,
In SXMB_MONI, i am getting below error,
(just now i given source and target data type is same (before changes this receiver determination is no error)
SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>No receiver could be determined</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
yes, i chenged again same error, even i cleared cahch through SXI_CACHE.
even i deleted receive determination again i create new one.
sitll same error
SAP:Code area="RCVR_DETERMINATION">NO_RECEIVER_CASE_ASYNC</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>No receiver could be determined</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
take the source paylaod from sxmb_moni and test themapping in the repository
also first chekc if you source XML ia valid against your XSD in the mapping in IR
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.