How can I insert an If condition to check if there are extra columns in a Data Table?

HI @Greggy

You will have set of standard column count right? I think you 9 standard columns and 2 unwanted column

So you can try like this

  • After Reading the Datatable and Stored in a variable called DT or whatever.
  • If Dt.Columns.Count>9

Hope this Helps

Regards
Sudharsan

1 Like