I have a Feature class with 285k point features. I am running this code on it:
with arcpy.da.UpdateCursor(FeatClass, ["SHAPE@XY"]) as cursor:
for row in cursor:
cursor.updateRow([[row[0][0] + transformX,row[0][1] + transformY]])
transformX and transformY are floats. This code has worked previously but fails with the error:
Runtime error
Traceback (most recent call last):
File "<string>", line 3, in <module>
TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'
There are no gaps in the ObjectID, so apparently this is saying one of the objects has geometry of NoneType? Does that even make sense? If so, how do I identify the problem?