Skip to main content
Nintex Community Menu Bar
Solved

Unable to cast object of type 'System.Object[]' to type 'System.IConvertible'.

  • January 26, 2018
  • 2 replies
  • 583 views

Forum|alt.badge.img+6

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.Object[]' to type 'System.IConvertible'.

 

15272i5EDBF1F9B3B42D32.png

Best answer by foo_yk

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

Thanks

2 replies

Forum|alt.badge.img+18
  • January 30, 2018

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?


Forum|alt.badge.img+6
  • Author
  • Answer
  • March 24, 2018
Mark the sap bapi xml properties for the items structure solve the problem as it can be serialize multiple item.

Thanks