on 11-28-2008 11:54 AM
Hi there
Im trying to do value mapping but get this error: Cannot produce target element /WALREQ01/IDOC. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
The scenario is File-To-Idoc, a single file gets sent to a system creating multiple idocs. I did that occurance change so that I can create multiple idocs. Everything is setup fine, but with my message mapping I get this error when I use the payload I get in sxmb_moni. I pickup a flatfile and using content conversion I create an idoc structure.
The Payload which does not work:
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_Allocations_Reply_OUTB xmlns:ns="urn:metcash.co.za:test">
- <IDOC_Recordset>
- <IDOC_Structure>
<PLANT>134</PLANT>
<ORDER_NUM>50885006</ORDER_NUM>
<FILLER>1</FILLER>
<PLU_NUM>00000000074893650</PLU_NUM>
<QTY>000024.00</QTY>
<FILLER_2>j</FILLER_2>
</IDOC_Structure>
- <IDOC_Structure>
<PLANT>134</PLANT>
<ORDER_NUM>50885006</ORDER_NUM>
<FILLER>1</FILLER>
<PLU_NUM>00000000074893650</PLU_NUM>
<QTY>000024.00</QTY>
<FILLER_2>j</FILLER_2>
</IDOC_Structure>
</IDOC_Recordset>
</ns:MT_Allocations_Reply_OUTB>
The Message Mapping Test "Source Code" which works:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Allocations_Reply xmlns:ns0="urn:metcash.co.za:Quest">
<IDOC_Recordset>
<IDOC_Structure>
<PLANT/>
<ORDER_NUM/>
<FILLER/>
<PLU_NUM/>
<QTY/>
<FILLER_2/>
</IDOC_Structure>
<IDOC_Structure>
<PLANT/>
<ORDER_NUM/>
<FILLER/>
<PLU_NUM/>
<QTY/>
<FILLER_2/>
</IDOC_Structure>
</IDOC_Recordset>
</ns0:MT_Allocations_Reply>
Edited by: Jan de Lange on Nov 28, 2008 12:55 PM
Edited by: Jan de Lange on Nov 28, 2008 12:55 PM
Make sure that your payload does not contain "-" as seen in your payload that does not work.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have used FCC in the sender adapter to convert a flat file to a idoc structure. After the convertion it looks like the payload I added above. It still gives the same error with of without data and if I test it in the MM test tab it gives that error. Maybe it does'nt like the multiple idoc receiver thing..
My target element, WALREQ01 has got a unbounded node, IDOC which is mapped to my source, unbounded node <IDOC_Structure> from element <IDOC_Recordset>
Source----
Target
*********************************************
<IDOC_Recordset>----
WALREQ01
-
><IDOC_Structure>----
><IDOC_Recordset>
Edited by: Jan de Lange on Nov 28, 2008 1:30 PM
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.