You can use Dt. AsEnumerable. Where(function(x) cint(“column name”)) >120). CopyToDatable this and store to datatable variable new_DT
After that do the if check new_DT.rows.count =0 then there is no data else vice versa.
Cheers @sayalib , let me know if this will work for you.
Hi @shreyash_shirbhate
I have tried that but same error occurred. I have tried in another way and solved that issue.
Create variable(row) as ienuberable datarow collection
Row=Dt. AsEnumerable. Where(function(x) cint(“column name”)) >120)
CopyToDataTable Method throws this exception in case of an emtpy filter result and when no rows are returned. We can handle this defensively with an approach described here:
Or…
Go more lowcode. Loads if not most of RPA developers are not proficient is using .net expressions in that fashion. (Though it is very powerfull of course)
A simple filter datatable activity will achieve exactly te same.