*Added log messages before and after the Filter DataTable:
dt_Report` rows before filter = 10
dt_Report` rows after filter = 10
Added a log inside the second For Each, but nothing was printed, so the loop isn’t running.
Checked the variable scope for both DataTables – it’s set to Sequence.
From this, it looks like dt_Report has rows, but dt_filteredReport is coming out empty, so the second For Each doesn’t execute. The issue might be with how the Filter DataTable outputs to dt_filteredReport or the filter condition itself.
okay I missed it yes dt_filteredreport is what is to be checked as that is whst is being written and as expected as for loop is not runnign filter is not working..check the same
Yes, you were right – I checked dt_Filteredreport and it was coming out empty, which is why the second For Each wasn’t running. After correcting the filter condition, it’s now returning 3 rows and the loop runs perfectly.
Thanks for pointing me in the right direction! Cheers!