PROBLEM

The Save option is disabled after making changes to the domain list in ArcGIS Online

Last Published: November 19, 2021

Description

In ArcGIS Online, a List of Values (Domain) can be created for fields with limited values in a hosted feature layer to prevent entering incorrect values into the fields. In some instances, attempting to edit the List of Values (Domain) for a field disables the Save option, as shown in the image below.

Warning: 
Changing or deleting existing Code values in the List of Values (Domain) is not recommended if there are data in the field using the Codes, as the existing data are not updated. Refer to ArcGIS Online: Edit a list of values for more information.
The Save button is disable when attempting to edit the domain list in ArcGIS Online.

In some instances, one or more of the following error messages are also returned:

Error:   
Cannot have duplicates
Cannot have duplicates
Error:   
String is too long
String is too long
Error:   
Value must be double
Value must be double
Error:   
Value must be integer
Value must be integer

Cause

The following are possible causes:

Note:
A space, even without additional characters, counts as a character. A single character counts as a value. Values are also case-sensitive, for example, ‘Yes’ and ‘yes, are considered two unique values.
  • There are one or more missing Label and/or Code values.
  • There are one or more duplicate Label and/or Code values.
  • One or more string Code values contain extra spaces or characters and exceed the defined field length. Refer to ArcGIS Online: Add or delete a field for more information on field lengths.
  • One or more Code values are not of the data type defined for the field, for example, a ‘Yes’ (string value) in an integer field, as shown in the image below.
A Yes string value is incorrectly entered as a Code value into an integer field in an ArcGIS Online domain list.

Solution or Workaround

To enable the Save option in the List of Values (Domain) in ArcGIS Online, ensure all the Label and Code values are complete and without duplicates. Remove extra spaces and characters from the Code values to ensure the values fall within the defined field length. Ensure all the Code values are of the same data type defined for the field, for example, a ‘0’ (integer value) for an integer field, as shown in the image below.

Note:
A string field's length and a field's data type are viewable by navigating to the layer's item details page > Data > Fields, and clicking the field's name. Under Settings, Length displays the field's length. Under Details, Type displays the field's data type.
A 0 integer value is correctly entered as a Code value into an integer field in an ArcGIS Online domain list.

Article ID: 000026787

Software:
  • ArcGIS Online

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options