AnsweredAssumed Answered

local variable 'row' referenced before assignment                    

Question asked by topo_geo on Jan 9, 2016
Latest reply on Jan 9, 2016 by rastrauch

Hi all,

when i run this code the message     "local variable 'row' referenced before assignment"         appear but i think the name o the

variable and the indentation are correct.

tb = table



            if tb is "RRAXERCL":


                cursorup = arcpy.da.UpdateCursor(table,fieldsToConcat_RRAXERCL)

                for row in cursorup :

                   row[0] = str(row[1]) + str(row[2]).rjust(2,'0') + str(row[3]).rjust(2,'0') + str(row[4]).rjust(2,'0') + str('00')


                del row

                del cursorup

thank you