Skip to Content
0

Mapping Error : Values missing in queue context.

Jul 13, 2017 at 10:01 PM

84

avatar image

I am testing my graphical mapping in ESR in Test Tab.I am sending all mandatory data but getting error.

Cannot create target element /ns0:Revenue_WH_MT2/Record. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD

Below is screen display of Queues for source and target record.

Screen display of Test TAB.

Please let me know if I am missing some thing.

Any help appericiated.

Regards,

Rekha.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sanjeev Shekhar Singh Jul 14, 2017 at 01:27 AM
1

Hi Rekha,

Couple of things to consider:

  1. Record field in target is a node and has occurrence 1..1, so you don't need to do mapping for it.
  2. Source field Record is showing red icon in test tab, which could mean that the namespace defined in message type is not matching your data input in test tab. Compare the namespace used for this node when you click on "Generate Instance" button in test tab with what you have in sample data.

Regards,

Sanjeev

Share
10 |10000 characters needed characters left characters exceeded
Syed Nadeem Jul 14, 2017 at 06:42 AM
0

Agree with Sanjeev,

First you have check your Source xml which you are pasting in test tab, after pasting the data and rearranging it in XML format, you shouldnt see red icons, structure should be green.

1. In test tab, delete everything, generate instance.

2. In the actual failed payload, exclude XML version, MT and namespace. Copy the rest from header field or records till the end of the record.

3. in test tab, just delete the empty records from top to bottom, and leave the generated NM, MT and xml version in test tab. Paste in between your failed records and test.

then check for the actual error.

Regards,

NADEEM

Share
10 |10000 characters needed characters left characters exceeded