Option strict on disallows implicit conversions from ‘System.Data.DataTable’ to 'System.Collections.IEnumerable'

Hi All,

I am using the For Each activity to iterate through the Data table but getting this error -

Option strict on disallows implicit conversions from ‘System.Data.DataTable’ to 'System.Collections.IEnumerable’

Capture_23

Could someone help me resolve this issue

Thanks
Arjun

Hi @shekhawat.arjun1307 ,

Please use the For Each Row activity (https://docs.uipath.com/activities/docs/for-each-row) for looping thru datatables

Best regards,
Marius