Error with google sheets

hello

I have an application that brings information from google sheets, while there is information it works fine but when it finds an empty cell it gives an error.

I have tried this other one, it does not give error but it always says “no hay datos” and when there is data it also says “no hay datos”.

can you help me?

Obviously SN.Text is always empty

Taifun

How can I solve it ?

Set SN.Text to something as you are doing it in your first screenshot

Taifun