So I am updating a working in 10.8.1; before we migrate to Pro. I have a couple existing values (quarter and year_2dig) that we use. I an wanting to do something like this:
valuePrefix = "Q" + str(quarter) + str(year_2dig) + "_"
Then
arcpy.CalculateField_management(loccode_fc, "QRTR_KEY", '"valuePrefix !OBJECTID!"', "PYTHON","")
So I would have a new unique value that says Q122_1 ... etc for each row
But instead I get "colPrefix + 1" as the value... Ideas?