3

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?

  • Could you provide screenshots of both involved field's properties? – Louis May 16 '17 at 20:00
  • 1
    I figured it out. I simply needed to add double quotes around the specified value. Still, the error message was misleading and confusing me. – Matt Leonard May 16 '17 at 20:02
5

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".

  • Yeah, that was kinda stupid of me to overlook something like that...thanks. – Matt Leonard May 16 '17 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.