on 09-15-2010 11:05 AM
HI,
I have Mapping problem
Cannot produce target element /ns0:Messages. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd.
Regards
Sai
Hi Saimadhu,
This kind of error comes from when target filed is mandatory to pass the data, That means if any filed occurence 1to1.You mapped to that filed and if didn't pass any data, It's comes this type of error,
Kindly check your map and target structure.
Thank you
Sateesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
just validate your namespace in the root element of your payload.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If payload fields are in red color, then it means the payload structure differs from the defined source structure.
Copy the payload on notepad and also the source structure XML in notepad and compare.
Check specially namespace and mandatory fields in source structure which are not there in payload.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to check 2 things..
1. Take the xml payload and put it under Test Tab in mapping. After loading the xml payload if you see red colored fields then the problem is in your payload structure.
2. If payload structure is correct then double click on parent nodes and check if you have put any conditions there which are not getting fulfilled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On you test tab press the "Generate Instance" icon and then press the "SRC" (source text view) icon. So this is your original xml structure, now copy this to your notepad and compare with MONI payload. There could be some spelling mistakes also make sure of Case sensitivness becaue some times name are same but they are not matching with original xml structure.
If you are facing fields in red colours means that the name (key-sensitive so check lower and uppercases) of those fields
also in you have in red the root segment (ns0:MT_XXX) it could be the name or also the namespaces of it. to check it, validate the namespaces in the test tab in message mapping and compare it with the XML you have in the SXMB_MONI.
if you dont have errors in the source structure, then you have a mandatory field in the target structure that for any reason in not fulfilled, so check the mandatorys target fields mapping and check in the value is passing or not.
let us know
Edited by: Rodrigo Alejandro Pertierra on Sep 15, 2010 11:02 AM
If this is the payload you are using for testing then, is it the same structure as the source you have defined?
Check for the namespace as well.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the source xml(payload) which you are using for testing has correct structure.
I guess, the payload which you are using for testing has different structure than that used in mapping for source.
-Supriya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is having structure like
<?xml version="1.0" encoding="utf-8"?>
<ns:PurchaseOrdersFlat xmlns:ns="http://www.Nissan.co.uk/NP21/SD/PuchaseOrders">
<Order>
<Header>
</Header>
<Item></Item>
<Item></Item>
<Item></Item>
<Item></Item>
<Item></Item>
<Item></Item>
</order>
<Order>
<Header>
</Header>
<Item></Item>
<Item></Item>
<Item></Item>
</order>
Regards
Madhuri
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.