Error (Assign: The source contains no DataRows)

Hi @Lee4216

Try this

dt.AsEnumerable().Where(Function(row) Not String.IsNullOrEmpty(row.Field(Of String)(0))).CopyToDataTable()

and also check whether the data table contains data or not by using dt.Rows.Count in a messagebox.

or try with Filter Data Table activity

image

1 Like