How do we handle null check for a datatable

I had a scenario to check the count of datatable but I need to handle a null check as well on top of it

Hey @Umesh_p

its easy just follow the below steps

Use if condition

True → null ---- take necessary action
False-> not null


A datatable should never be null. You should always initialize it with “New System.Data.DataTable” in the Default value in the variables pane.

To check if there are rows you use an If activity with myDT.Rows.Count > 0

Hey @Umesh_p ,

Please refer below thread

Hope it helps you out!

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