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

p_notaproblem

#1

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.”


#2

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


#3

just a moment


#4

regex_Matches.xaml (8.6 KB)


#5

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


#7

did that solve your issue?


#9

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