Unable to pull the output of a Data Table into a For Loop

Got the following compile error while trying to pull the output of the Data Table into a For Loop:

“Compiler error(s) encountered processing expression “dt”.
Option Strict On disallows implicit conversions from ‘System.Data.DataTable’ to ‘System.Collections.IEnumerable’.”

Can someone please help in fixing this? Thanks!

@Ruchita_Patil
use the for each row activity instead

1 Like

this is what you ned to use image

DT itself cannot be used with For Each
Use For Each Row with DT or For Each with DT.Rows