ERROR

160039: The value being added to the CodedValueDomain already exists

Last Published: October 11, 2022

Error Message

When running the Table To Domain tool in ArcGIS Pro, the following error is returned:

Error:
160039: The value being added to the CodedValueDomain already exists.
The error message 160039: The value being added to the CodedValueDomain already exists

Cause

This occurs when there are duplicate values present in the selected field. Domain values must be unique. When duplicate values are present in a field, domain values created by the tool are also duplicated.

Solution or Workaround

Delete the duplicate values

Use the Delete Identical tool to delete duplicate value in a field before running the Table To Domain tool. Refer to ArcGIS Pro: Delete Identical (Data Management) for instructions and more information.

Create a new field with sequential values

Create a new field with incremental values before running the Table To Domain tool to create a field with no duplicate values. Refer to How To: Sort and create a sequentially ordered ID field in an attribute table in ArcGIS Pro for instructions and more information.

The image below shows the tool has run successfully.

The Table To Domain tool is successful

Article ID:000028382

Software:
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 8 x
  • ArcGIS Pro 2 x

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic