Hello how can I check or read an empty book?
In the process I make several filters and sometimes the excel that I generate has no records.
I want to check if rows > 0, to follow other steps and finish, but it gives me this error.
ERROR
Read Interval Book:: Object reference not set to an instance of an object.
Understood, then putting the Read range activity inside the Try part sounds like a good solution in this case. You can initialize the DT in the catch part or simply set some boolean flag and use it later while checking the number of rows.
So Try section has the Read range and if it fails - it will to catch section and assign the boolean as TRUE and later you can use this boolean as you wish.