on 04-09-2009 1:47 PM
Hi
I'm mapping a simple source message to a target message which has exactly the same structure.
I'm however receiveing this error in the integration server at runtime:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Message canceled
-->
- <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/_SrctoTarget_</SAP:P1>
<SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
<SAP:P3>on: Cannot create target element /ns1:SrctoTarget</SAP:P3>
<SAP:P4>S. Values missing in queue context. Target XSD re~</SAP:P4>
<SAP:AdditionalText />
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_SrctoTarget_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns1:SrctoTarget. Values missing in queue context. Target XSD re~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
My mapping works fine during design time so i'm not sure whats happening here.
I've had this issue before and solved it by adding a namespace for the document in the file adpater content conversion, but this time its not solving the issue.
Hi,
Cannot create target element /ns1:SrctoTarget
In runtime check for the value passed to this element. There is either no or incorrect value passed to this target element.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
In test test tab after executing the mapping program
go to design and select particular element mapping and view context to see what is source value and target value.check with occurence if it is node to node mapping
rgds
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
We've found the problem. It seems that my naming conventions for my interfaces were slightly wrong. They were named very similar names but the case was different so XI was having issues with that. Hard to spot.
Also i needed to specify some extra parameters in my J2SE adapter to correctly identify the document name and namespace.
Tip: Dont copy objects in the Integration Repository, it causes naming issues later on. Always build your objects from scratch. I found that out the hard way.
Thanks for all your help!
If you are using Java mapping.
Test your interface mapping with the payload which failed and check the target xml is getting properly generated,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Copy the source XML by clicking on the msg in sxmb_moni and then test it in IR. (mapping test), you should see exactly where the problem is occuring. go to the element and right click on the source and display queue. you will understand where the problem lies.
make that field work by changing the mapping accordingly. you should be good to go.
Regards,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if the above solution is not working, also check your XSD definition whether it requires element "/ns1:SrctoTarget" to be created (minOccurs="1") although you do not want it to occur in every case.
Regards,
Kai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.