I need to check a datatable has no row or one row. That is why i used an if activity but this activity doesn’t work correct. I have run it in debug mode and see it always says the datatable has no row. But the datatable has one row. How can i fix it ?
Yah this expression will validate that
As in your current condition it both checks for empty rows only And not whether it has records or not
That’s why buddy
Cheers @mazlumkacar
“Nothing” represents the default value of any datatype.
It might be that the first expression (dt_ozel Is Nothing) always returns true so try to work without it.
Your other error means that dt_ozel doesn’t have any value and therefore can’t be evaluated. So when you test this activity, make sure your DataTable is not empty.