I might add that your original sytax of .setvalue should in fact be .setValue (case now matters in v10.0 +!!!). also, I think your SQL in the cursor statement was incorrect. Note you ONLY need to use the .setValue() method if your field name is a variable.This should work:rows = arcpy.UpdateCursor("Parcels", "OBJECTID = 1")
for row in rows:
row.GENERATED = 'GENERATED'
rows.updateRow(row)
del row, rows
Alternately, this should also work, and demonstates the proper use of the .setValue() method:generatedFieldName = "GENERATED"
rows = arcpy.UpdateCursor("Parcels", "OBJECTID = 1")
for row in rows:
row.setValue(generatedFieldName) = 'GENERATED'
rows.updateRow(row)
del row, rows