How to convert IEnumerable to Datatable?

Hi @Muralikrishna_Surve ,

Could you try declaring a Variable of type DataTable and assign that to the Read Range Activity?
Usually when you create a variable using Ctrl+K in the Read Range Output it generates a Datatable.

As for converting an IEnumerable to DataTable, if its an IEnumerable of DataRows, then you have to append a .CopyToDataTable() method to it.

Kind Regards,
Ashwin A.K

1 Like