Skip to Content
avatar image
Former Member

Already working iFlow started failing with Mapping Exception

Dear All,

I had a scenario working fine with basic mapping where I was fetching some information from IoT in HCI/CPI and then mapped it to IDoc. It was working absolutely fine but when I checked today, it gave me an error. Basically I was configuring another scenario of SOAP to IDoc and I got the error there.

com.sap.xi.mapping.camel.XiMappingException: com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot produce target element /ZIDOC/IDOC/ZSEGMENT. Queue has not enougth values in context. Target xsd requires a value for this element, but target field mapping does not produce one. Probably the xml-instance is not valid to the source xsd, or the target field mapping does not fulfill the requirement of the target xsd., cause: com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot produce target element /ZIDOC/IDOC/ZIDOC. Queue has not enougth values in context. Target xsd requires a value for this element, but target field mapping does not produce one. Probably the xml-instance is not valid to the source xsd, or the target field mapping does not fulfill the requirement of the target xsd.

Please suggest what has changed in HCI/CPI in terms mapping validations which has stopped a working iFlow.

Regards

Amitabh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 12 at 12:20 PM

    Hi Amitabh,

    could you please log what data is coming from the IoT. Might be there are in-sufficient values in the source side or might be there no value that is being sent from the system.

    And both the fields must be a mandatory fields in the structure and it must have a value mapped from the source value.

    Could you please share the source message and the target message structure's as well.

    thanks and regards,

    Praveen T

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks a lot Paveen for your suggestions. The Data Store idea worked. The issue was with XML structure I was passing from my application. It is reolved now and I am able to post the IDocs successfully.

      Regards

      Amitabh