cancel
Showing results for 
Search instead for 
Did you mean: 

Check xml instance is valid for source xsd and target-field mapping

Former Member
0 Kudos

Experts,

I have a scenario in which bundles of order info is split into single orders.

Message structure except the header is same and one to one mapping is used.

When I am trying to test message mapping I am getting below error.

Cannot produce target element /ns0:Messages/ns0:Message1/ORDER/HEADER/SALES_ORG. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd.

The tag is madatory in the message. and mapping for this tag is one to one. This tag was present in the test message.

Regards,

AV.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Anirudh Vyas

Ur are conflicting with your problem asked. Same rule will apply to both sibling if all the propert is same. I will suggest u first try COPYVALE then tell me the problem

How can use one to one mapping without COPYVALUE, even if u r mapping different fields from one source field with context change in target field

Edited by: Ajay Kumar on Apr 1, 2008 4:18 PM

Former Member
0 Kudos

Ajay,

Thanks for your scrutiny.

Although, there is no need to use copyValue (as the context doesn't change and the tag is used only once for both source and target) but I have already tried and it is giving the same error.

And yes, other siblings are doing fine. and thats why I said it was interesting.

May be parser will throw error for other mandatoy tags once SALES_ORG is processed OK.

Regards,

AV.

Former Member
0 Kudos

17:40:48 Start of test

Document start

Start tag

Add raw attribute [ xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"]

Start tag

Start tag

Add raw attribute [ xmlns:ns1="urn:bose.com:universal:customer-order"]

Start tag

Start tag

Put value

Close tag

Start tag

Put value

Close tag

Start tag

Put value

Close tag

Close tag

Start tag

Start tag

Start tag

Put value

Close tag

Start tag

Start tag

Put value

Close tag

Start tag

Put value []

Close tag

Start tag

Put value

Close tag

Start tag

Put value

Close tag

Close tag

Start tag

Put value

Close tag

Start tag

Put value

Close tag

Start tag

Put value

Close tag

Start tag

Put value

Close tag

Start tag

Put value

Close tag

Close tag

Close tag

Start tag

Start tag

Start tag

Put value

Close tag

Cannot produce target element /ns0:Messages/ns0:Message1/ns1:CUSTOMER_ORDER/ORDER/HEADER/SALES_ORG. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns0:Messages/ns0:Message1/ns1:CUSTOMER_ORDER/ORDER/HEADER/SALES_ORG. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

17:40:54 End of test

justin_santhanam
Active Contributor
0 Kudos

Anirudh,

Does it got solved?

raj.

Former Member
0 Kudos

Hi,

In your source msg the the tag is occuring only once, so try this:

Source Field-->Copy Value[0] -->SALES_ORG

**Reward points if helpful

--Sankar Choudhury

Former Member
0 Kudos

Sankar,

In target also it is occuring only once.

Whats interesting is that there is not problem with other mandatory siblings.

Regards,

AV.

Former Member
0 Kudos

Hi,

Check the mapping is done for SALES_ORG target field. Whether it is mapped or not?

Also check if the root node is mapped or not?

This problem occurs when u have not mapped the target node.

chirag

Former Member
0 Kudos

Hi Chirag,

Both are mapped.

Regards,

AV.

Former Member
0 Kudos

HI,

This Target field SALES_ORG is mandatory.

Make sure that you have provided value while testing.

And make sure that the value is valid or not

Regards

Seshagiri

Former Member
0 Kudos

Hi,

Make sure that all the parents of SAL org is mapped?

R u getting an error while using test message tab.

make sure that all the values are present for the mandatory fields.

chirag

Former Member
0 Kudos

Hi Seshagiri,

I have provided the value and it is of string format with no min-max length defined.

Regards,

AV.

Former Member
0 Kudos

Hi,

Can u send me the source and target mapping in mail along with the test data.

my id is in my business card.

chirag