Skip to Content
0

HCI OData Service artifact -  Creation error

Jan 13, 2017 at 11:27 AM

488

avatar image

Hello Experts,

I'm using HCI Web Application with an OData Service artifact and i'm trying to do a creation binding.

First question: what do I have to write in the (mandatory) "Fields" field in the outbound OData channel?

I tried with an asterisk but I don't feel this is the right choice.

Second question: creation always gives an error (500) producing this log: "com.sap.xi.mapping.camel.XiMappingException: com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot produce target element /CustomerSet/Customer/Bpartner. 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 /CustomerSet/Customer/Bpartner. 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.".

How can I solve it?

cre-process.png (48.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Manuel Xiccato May 29, 2017 at 04:58 PM
0

Hi Filippo,

mandatory field "Fields" in the outbound oData channel should be filled with all entity attributes you want to be passed by HCI integration flow to oData receiver channel. It could be easily filled clicking the "Modify" button placed on the right side of "Resource Path" field (when you're in edit mode). After that, you could select every entity attributes you need.

I think your error is in some way linked to the wrong "Fields" value... Error you posted means that one of the key fields for the entity is not passed in the body of the incoming HCI call, so the call is not correctly validated (every key field has "mandatory" attribute set to true);

Manuel Xiccato

Share
10 |10000 characters needed characters left characters exceeded