I cannot figure out why I keep getting this "StopIteration: iteration not started"error. I have confirmed the feature class 'vriTHLB_eliminated' exists and has records and all required fields.
Here is a simplified version of my code:
fieldList = ["SPECIES_CD_1","area_ha"] with arcpy.da.UpdateCursor(vriTHLB_eliminated,fieldList) as cursor:` for row in cursor: if row == None or row == "": # If species 1 is null / absent / or empty string; cursor.deleteRow() # delete these rows, they do not help with analysis. cursor.updateRow(row) #this definitely does need to indented inside the loop like this del row, cursor