Error BC30512: Option Strict On disallows implicit conversions from 'DataTable' to 'IEnumerable'. The selected value is incompatible with the property type

While practicing Simple Excel Automation, Read two Excel worksheets in to two datatables, and added ForEach Activity and added the dt_<> in to the List of Items. But getting the below error:

I even tried upgrading/downgrading Systems.Activites Packages, but didn’t work. Referred to this also:

Hi Pavan.

If you are working with data tables. Please use For each row in data table activity.
image

@pavan00kalyan,

To iterate datatable rows we have dedicated activity that’s For each row in datatable. Use this instead of For Each activity.

Thank you , It worked

Thank you , it worked.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.