on 06-01-2006 7:19 AM
Hi ,
I am trying to implement a file-to-file scenario in which there are multiple line items in the input file .
It works fine for one line item but gives a mapping exception for multiple line items..
Can anybody plz help me to solve da prob?
Thanx nd Regards ,
Srestha
Paste the exact mapping exception that is been thrown in the testtab in message mapping editor..we will be able to help u..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use split by value for every element in the item node.it works ..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check the occurence of item..there is some gap there..what is ur target structure?
Header_>0..unbounded
Item->1...
then u have to use split by value when u map each line item and one header has to be produced for every line item..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If exception occurs for multiple line item then change the occurance of the record structure as o...unbounded.
see which record structure is occuring multiple time,according to that change the occurance of the record structure.
regards
jithesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Srestha,
<i>It works fine for one line item but gives a mapping exception for multiple line items..</i>
Check the occurence of the source and target. Can you give us the Source and target messages , so that the error can be traced out.
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 Bhavesh and Sravya ,
The mapping in integartaion repository fails when i test it with the input file. The error thrown is
Cannot produce target element /ns0:MT_MAPPING_TARGET/HEADER[2]/ITEM. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns0:MT_MAPPING_TARGET/HEADER[2]/ITEM. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
The input file looks like this :
<ns0:MT_MAPPING_SOURCE xmlns:ns0="http://mapping">
<HEADER>
<MATNO>100-200</MATNO>
<MATDESC>Fly wheel</MATDESC>
</HEADER>
<ITEM>
<MATNO>100-300</MATNO>
<ITEMNO>10</ITEMNO>
<MATGROUP>1000</MATGROUP>
<MATTYPE>PENCIL</MATTYPE>
<PLANT>1000</PLANT>
</ITEM>
<ITEM>
<MATNO>100-400</MATNO>
<ITEMNO>20</ITEMNO>
<MATGROUP>1000</MATGROUP>
<MATTYPE>PENCIL</MATTYPE>
<PLANT>1000</PLANT>
</ITEM>
</ns0:MT_MAPPING_SOURCE>
Sravya...I have defined the data types as per your blog...
Please help me solve this problem.
Thanx and Regards,
Srestha
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.