I have a list of excel files, that I want to add to an Orchestrator Queue but I am getting the following error.
SendItems.xaml: Compiler error(s) encountered processing expression "sheet". Value of type 'System.Data.DataTable' cannot be converted to 'System.Collections.Generic.Dictionary(Of String, Object)'.
Im unable to check the workflow at the moment. But Based on the error I think you have not specified a datatable type variable for the read range output property. Output property only supported datatable type variables. Can you check it and let me know if it solves the problem
The only data type a queue accepts as parmeters is String. Hence, you can serialize the DataTable & insert it to the queue. Then fetch it from the queue and de-serialize it.
Thank you for your prompt reply. I had previously done this exact step earlier using the same excel files and the workflow executed just fine.
Do you think this error maybe because there may have been a change in the contents of the excel file ? @Lahiru.Fernando@Nithin_P
Nope… the item information property just above the one that you get the error…
In addition to that, check this…
See… the sheet variable is of type datatable. But the item in information collection only accepted dictionary data type variable…
You can see more info on that here
Why I want to see that other property is to understand what you are trying to add to the queue… can you explain that so I can give a better approach for this?