If query whether datatable is empty

Hello team,

I have another beginner’s question.
I read in a CSV file and generate a DT for it.
so far everything else works. But I don’t have a brake when the DT is empty.
this dt_input has these headings. On some days it can be that nothing is already there.
How about the If then check whether there is content in addition to the headings?

2021-12-08 13_47_47-Input_Encory.csv - Excel

thank you in advance !

dtvar.Rows.Count = 0


Hi @juergenh1975

Check with if condition If readDt.Rows.count>0 Then Proceed else Move to next Dt


1 Like

it works !!! Thanks !!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.