Skip to Content

HCI PI - Gather two payloads and transform mapping -> "Cannot produce target element"

Aug 07, 2017 at 12:51 PM


avatar image

Dear Community,

I’d like to add to an given xml-payload some additional information via an external REST-service. The Rest-Serice-call is made by a “request-reply” element. To consolidate the initial payload and the rest-reply I used a join and a gather-Elemen:

The consolidated xml (after the gather-element) looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<multimap:Messages xmlns:multimap="">
    <Response xmlns:Response="xs">

In the last step, I added a mapping, so that the payload is transformed in the needed ODATA-payload structure for hybris Marketing.

Although all necessary information is available, I get the following error message: Cannot produce target element /ns0:Messages/ns0:Message1/ImportHeaders/ImportHeader/Contacts/Contact/Timestamp. 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.

Thank you,
best regards,

hci.png (26.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Best Answer
avatar image
Former Member Aug 07, 2017 at 03:27 PM

Hi Peter,

Hope tracing capability is on in your tenant.

Take the xml message before entering into your last mapping step and test this in your iFlow mapping step. Use simulate option in Web UI to test how your mapping is performing.



10 |10000 characters needed characters left characters exceeded
Peter Meier Aug 08, 2017 at 08:37 AM

Thank you! I had the xsd files in the wrong order; I changed "Customer.xsd" <-> "Response.xsd"

10 |10000 characters needed characters left characters exceeded