PROBLEM

Field Calculator returns coded values instead of domain descriptions

Last Published: April 25, 2020

Description

When populating the values from a field to a new field using Field Calculator, the coded values are populated instead of descriptions although the field being copied displays the descriptions.

User-added image

Cause

This is by design. The coded value (rather than the description) is the default value when working with Field Calculator.

Solution or Workaround

To change the value of the attributes from code to descriptions, follow the instructions below.

1. In ArcMap, after populating the value to the new field, open the Domain To Table tool.
  1. In the Catalog window, navigate to System Toolboxes > Data Management Tools > Domains > Domain To Table.
  2. Select the appropriate geodatabase as the input workspace.
  3. Select the domain name.
  4. Specify the location of the output table.
  5. Type Code as the code field.
  6. Type Description as the field description.
  7. Click OK. A new table is created.

2. Join the table.
  1. Right-click the original shapefile or feature class > Joins and Relates > Join.
  2. Select the appropriate field in the first drop-down list.
  3. Select the Code field in the third drop-down list as created in Step 1 (e).
  4. Click OK.

3. Re-populate the field in the original shapefile/feature class.
  1. Right-click the target field in the original shapefile/feature class > Field Calculator.
  2. Select the Description field from the second table, and click OK. The field is populated with the descriptions.
Note:
Optionally, the join can be removed after the field is populated.

User-added image
 

Article ID:000014450

Software:
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic