Hello , I was running my robot which read data table and do some filters , all was ok until my robot strat to show this mesagge:
Manage FileV1 has thrown an exception
Source: Assign11
Message: The source contains no DataRows.
Exception Type: InvalidOperationException
it’s like this table does not have information after the filter but I have already chexk this
this is my code DT_Dist.AsEnumerable().Where(Function(row) row(“Key_2”).ToString=row1.Item(“Key_2_D0”).ToString).CopyToDataTable() and i have this in a assing equal to a other data table, please help,it is important to say that the other variable is a data table.
You are getting “No datarows” because the filter found no rows that match, therefore the .CopyToDatatable fails.
You might need to use .ToArray() instead of .CopyToDatatable, cause it will stil work but just give you a .Count of zero. You could probably do that first, check if it found any rows, then Assign the .CopyToDataTable after.