cancel
Showing results for 
Search instead for 
Did you mean: 

Value Mapping Issue

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Make sure that your payload does not contain "-" as seen in your payload that does not work.

Regards,

Prateek

Former Member
0 Kudos

Nope, removed the "-". Still does not work. If I don't map the source with the target and just use constants everything works, even in the sxmb_moni so the config if fine. Just cant get why it gives me that error.

prateek
Active Contributor
0 Kudos

Why don't you put values in Message Maping -> Test Tab and check whether it is working for same values or not.

Regards,

Prateek

Former Member
0 Kudos

Hi Jan,

Copy the payload from the sxmb_moni and goto Message Mapping in IR and click on Test and paste and execute that.

Have you used any FCC in File adapter.

Regards

Goli Sridhar

SudhirT
Active Contributor
0 Kudos

Hi,

Check for the mapping of target IDoc segment for which you are getting this error with various combinations of test data.

Thanks,

Former Member
0 Kudos

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..

prateek
Active Contributor
0 Kudos

What is the mapping for /WALREQ01/IDOC?

Regards,

Prateek

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

1. check is that value mapping is activated in Configuration side..?

2. Test once : in conguration testing... (ie) Tools->Test Configuration, Specify the sender serviec & payload details, execute & check...

if there it comes then problem may be in FCC..

regards,

boopalan m