[GIS] Field Calculator error: “calculated value is invalid”

arcgis-10.5arcgis-desktopfield-calculator

I'm getting the following error when trying to calculate a field:

enter image description here

I'm just trying to calculate all the selected records to equal a value I specify, a simple two-letter zoning code. So the field calculator expression is simply field = value (I'm not trying to make it equal another field or use a mathematical espression). The field is string type, length 10, which should be long enough for two letters. The field does not have a domain assigned to it. I get the same error whether I'm in an editing session or not. This should be easy – what's going on?

Best Answer

If it's a string value (which it sounds like it is since you said two-LETTER zoning code), you need to put quotation marks around the value like: field = "value".

Related Question