How to execute Odata(deep Create entity)

0
Hi,exparts. I want to run an Odata Service (SAP) that implements Deep Create Entity. The data created by executing the Odata service are three entities (header, item ①, item ②). The relationship is "Header: Item ① = 1:N" and "Header: Item ② = 1:N". On the domain model, the association is created with N:N to associate the details with the header. When using Create of SAP ODATA Connector and executing it by passing the above header as an argument, the following error was output. com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.IllegalArgumentException: The given value'[MendixIdentifier:: id=39406496739492442 objectType=XXXXX.XXXSet entityID=140]' with type'class com.mendix.basis.objectmanagement.MendixIdentifier' is not of the same type as the member corresponding with the given member name'XXXXX.YYYSet' I'm guessing it's not the correct way to execute, but I'm not sure how to do it. I know the Document has a description that could be achieved, but it doesn't help. Hope someone can help.
asked
1 answers
0

What we had to do to make it work is to manually change the association names for all entities with a reference set by adding 'Set' to the middlename (to SapName_HeaderSet_Item) . I am about to add an idea for this issue for improving the odata model creator.

answered