I am working with ArcGIS 10 and I have added a field in a feature class and am attempting to copy the text from another field's coded values, but the field calculator is simply copying the "code" text from the source field and not the "value" text from the domain rule.


Try this tool: Calculate Domain Code Field

Update: Since the tool does the opposite of what you want, you can either tweak it to calculate the description instead of the coded value, or do it interactively:

  1. Use Domain to Table (Management) to export the domain in question to a table
  2. Use Add Join (Management) or the Join Data dialog to join the table to your feature class on the code field
  3. Use Calculate Field (Management) or the Field Calculator dialog to calculate the field you want the descriptions to go in, entering the joined table's description field in the expression box.
  4. (Optional) Remove the join and delete the table you created
  • Actually that looks like it might do the opposite of what you want... you might have to mess with it to get it to do the reverse. – blah238 May 21 '12 at 1:57
  • 3
    Rather than steps 2 (Add Join) and 3 (Calc Field) I would do in single step using Join Field tool. Step 1 would stay the same and optional 4 would only need to Delete the table. – PolyGeo May 21 '12 at 11:01
  • Good point! I always forget about that tool. The only reason you wouldn't want to use Join Field is if the column already exists, since Join Field will create new columns, even if they already exist, by appending a number after the name. – blah238 May 21 '12 at 17:09
  • first link is broken, does that tool have another name? It's what I need right now – matt wilkie Jun 10 '19 at 17:50

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.