Skip to Content
avatar image
Former Member

problem with mapping

Hello All

NWPI 7.1

I'm trying to implement simple integration model, just to refresh and test information gained on courses and I've got stuck a bit.

When I try to test the configuration (Menu Tools->Test Configuration) process goes as follows:

correct Sender Agreement

correct Receiver Determination

correct Interface Determination

Runtime error on Operation Mapping:

com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:NameMessage. 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

Mapping seems to be ok - testing in ESR gives correct result. Besides it is very simple - interface is synchronous, request is one string and response is another.

Where to check for a bug?

BTW: as payload for testing purposes in PI I use XML copied from testing window of WSNavigator.

Any help will be appreciated

Best regards

Maciej Gottfried

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 14, 2009 at 11:23 AM
    Cannot create target element /ns0:NameMessage

    ns0:NameMessage seems to be the root element of your message and may have occurence as 1..1 (i.e. mandatory) in such a case no need to map it to any source node...remove the mapping for this node and then test again.....

    Also use the same payload as you are using in IR to test the Mapping...

    Regards,

    Abhishek.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      And that was the problem! I've used incorrect payload - that's why I couldn't find error in configuration.

      Thank you very much.

      Best Regards

      Maciej

  • avatar image
    Former Member
    Jul 14, 2009 at 11:18 AM

    A mandatory element in the target seems not mapped..or some issue with the payload.

    Try using the same payload and test in your mapping(instead of manually entering the value).

    Can you paste the source and target structure along with the mapping you have done.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 14, 2009 at 11:28 AM

    Hi!

    Did you try to refresh message type in Message Interface and use 'read interfaces' option in Interface Mapping? The problem could be caused by previous MT definition.

    Regards,

    Radek

    Add comment
    10|10000 characters needed characters exceeded