on 07-05-2006 4:18 PM
Hi,
I am getting a mapping error.
Cannot produce target element /ns0:MT_FTARGET/Header/EmpId. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd.
Can any boby tell me how I can solve this problem?
Thanks & Regards,
Jai Shankar.
The error shows that XI is not able to creat the target field EmpId.
Check your graphical mapping, probably and try testing the same in the builder itself with the good sample source file.Also make sure that the value is present for the source field which is being mapped to the EmpId.
Regards
Sunita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Ihave changed the occurance from 1 to 0..1. Now I am getting the error
Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_FILE_: 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)
My source sample is
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_FSOURCE xmlns:ns="urn:Team8:File:File">
<Recordset>
<Header>
<EmpId>5601</EmpId>
<FName>JAI</FName>
<LName>RAMAKRISHNAN</LName>
<Project>ABCD</Project>
<HKey>H</HKey>
</Header>
<Header>
<EmpId>5602</EmpId>
<FName>JAI</FName>
<LName>RAMAKRISHNAN</LName>
<Project>ABCD</Project>
<HKey>H</HKey>
</Header>
<Header>
<EmpId>5603</EmpId>
<FName>JAI</FName>
<LName>RAMAKRISHNAN</LName>
<Project>ABCD</Project>
<HKey>H</HKey>
</Header>
</Recordset>
</ns:MT_FSOURCE>
Kindly tell me the error
All,
The Sp18 is actually out.
Check this link,
http://help.sap.com/saphelp_nw04/helpdata/en/cf/9844428e9cbe30e10000000a155106/frameset.htm
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The error was due to the fact there was a node <recordset> inserted into the xml source. When I remove the node the mapping works perfectly well. Tell me how can I get rid if this error.
Thanks in Advance.
Jai Shankar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check your content conversion once again..It is Case Sensitive.
Did you select RecordSet Per message ..?
Have a look into this also-
http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
_Moorthy
Hi,
The Target Structure contains a main Header node.
Inside the header node I have EmpId, EmpName,Project.
Ihave mapped EmpId to EmpId, Fname and LName concatenated and mapped to EmpName and Project and Hkey concatenated and mapped to Project. The mapping seems to be fine and the xml format is also correct.
Please tell me where I have gone wrong.
Thanks & Regards,
Jai Shankar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try to test the mapping in the Integration Builder. Therefore open your mapping and go to tab Test. There do not import your XML but type the content directly into the shown structure and then press the button "Start transformation". If this test succeeded your mapping will be OK import your source file to the test environment and make one more test with this data. When the error will be shown, then try to check your source XML, it might be not valid.
Regards,
Lars
Hi Jai,
in most cases this error message mean, that you have defined the Field EmpId with an occurance of 1..1 so this field should not be empty after mapping. Try to change the settings of this field to 0..1.
Regards,
Lars
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.