Skip to Content
author's profile photo Former Member
Former Member

1: N multi mapping -----Message Mapping Error

Hi,

I am doing this scenario

Various multi-mappings and Optimizing their Implementation in Integration Processes (BPM) in XI.

In the design part of the mapping.

How can I perform the message mapping

"

Step 1. We are controlling occurrence of Output Piyush_msg_out_3 by mapping it with element2 with message context.

Step 2.

We are using u201CUseOneAsManyu201D under category node functions (SP14). It has three inputs ;

1. Element which is going to be used for multiple times. In our case it is Element1 with message context.

2. The element which is going to define how many times it will be replicated. Important thing, context should be same.

3. Same as second input but with its own context in our case it is Element2.

"

For Step 1,

I have mapped piyush_msg_out_3 with Element2 (context is root)

For Step 2,

I have mapped

Element1(context root)----


|

Element2(context root)----


| useOneAsMany -


>Element1

Element2(context root)----


|

subelement------> subelement

I did not do root mapping.

when do the test I am getting the following error

Start of test

Compilation of MM_multimappingandoptimizing successful Cannot produce target element

/ns0:Messages/ns0:Message1/ns1:piyush_msg_out_3[2]/root/Element1. 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:piyush_msg_out_3[2]/root/Element1. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

End of test

I thought error generated due to Parent Node condition fails, How do I map the Top node,

even though I mapped root------->root, I am getting the same error in the instance test

Please give me some suggestions

my message mapping is correct or do I need to change the context of the node or what should I have to do ?

thanks

manian

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 02:54 PM

    Dear Manian,

    If you are still getting the same error: try this option go and check Your Message type, and see check the tab XSD. If you are able to see complete xsd of your message type then it is fine. else please double check the namespace of your message type and namespace of your data type.

    This is because at run time you are giving XML instance with one name space, but while testing it is expecting the xml instance from different name space.

    If you are doing nothing wrong with above points then you can concentrate on mapping part.

    I tried to concentrate much on XML instance because it is giving the Instance error.

    Best Regards

    Praveen

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 01:37 PM

    Dear Manian,

    I hope error is due to Invalid XML instance for the source structure because error is explaining the same.

    ns0:Messages/ns0:Message1/ns1:piyush_msg_out_3[2]/root/Element1. 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:piyush_msg_out_3[2]/root/Element1. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

    This means your test instance for Source structure is not a valid XML. try to open the same XML in Internet explorer.

    If your mapping contains then it may give furthur error in the test environment.

    Best Regards

    Praveen Kumar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.