I am trying change the value of a row for a field whose type is "short" in arcmap using a python script.
with arcpy.da.UpdateCursor(FILENAME, FIELD) as cursor: for row in cursor: row = 'Center' cursor.updateRow(row)
with this i receive the error "RuntimeError: The value type is incompatible with the field type."
I know I am giving a string type to a "short" type field. Is there a way around this? There are pre-set values in this field. Do I need to run some other kind of code to create a list of possible values for this field, then select the value based on some kind of list interaction eg
row = fieldlist
Please ask me to clarify anything, but this is everything that seems relevant to me at this point.