Skip to main content

Hi,

 

I use the create reference and for each event to loop through my items smartobject and would like to post it into SAP.

 

However, it will throw error Unable to cast object of type 'System.Objectc]' to type 'System.IConvertible'.

 

15272i5EDBF1F9B3B42D32.png

There is not yet enough details, but System.Object[] indicates perhaps an array object.


I believe usually the foreach event will be configured against an array of items, and it will create a 'single' item in which you will use within the loop.


Are you perhaps using the 'array' item reference vs the 'single' item reference?


Mark the sap bapi xml properties for the items structure solve the problem as it can be serialize multiple item.

Thanks

Reply