Skip to Content
0
Former Member
Nov 28, 2008 at 11:54 AM

Value Mapping Issue

22 Views

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