If: Object reference is not set to an instance of an object

I have to enter a number in a cell if it is empty, but when i started uipath, if the cell is empty, appears this error “If: Object reference is not set to an instance of an object.”

could you please attach snapshot of workflow? or maybe XAML.

just a moment

regex_Matches.xaml (8.6 KB)

Hi,
First change your variable codTratta data type from generic to string
later assign like this if (codTratta="")
its working fine. cheers …:thumbsup:

did that solve your issue?

nothing…mistake about the variable creation in “read range”