PROBLEM

Unable to edit the domain values of a hosted feature layer in ArcGIS Online

Last Published: May 23, 2023

Description

In ArcGIS Online, it is sometimes necessary to edit the domain values for data precision. However, attempting to edit the domain values of a hosted feature layer is not possible as the Edit button is not available.

The image below shows that the List of Values (Domain) Edit button is not available.

The Edit button not available for the List of Values (Domain).

Cause

This issue occurs when a hosted feature layer view is created from the hosted feature layer using the Join Features tool in Map Viewer Classic. When a hosted feature layer view is created, the hosted feature layer schema is locked to ensure the data in the view corresponds to the hosted feature layer source data.

Solution or Workaround

To enable editing for the domain values, follow either of the workarounds provided below.

Remove the hosted feature layer view from ArcGIS Online

  1. Log in to ArcGIS Online account.
  2. Click Content > My Content.
  3. Browse to and check the check box of the hosted feature layer view created through the Join Features tool.
  4. Click Delete.The selected hosted feature layer view.
  5. In the Delete window, click Delete.

Update the service definition at the hosted feature layer view REST endpoint

Warning:  
The instructions below include making changes to essential parts of your hosted feature layer view. It is recommended to make a copy of the original JSON before proceeding. 
 
Esri cannot guarantee results from incorrect modifications while following these instructions. Therefore, use caution and proceed at your own risk. Any problems encountered as a result of making these modifications are not supported by Esri Technical Support.
  1. In ArcGIS Online, open the desired hosted feature layer view.
  2. On the Overview page, scroll down to locate the URL section.
  3. Click View The View button.png to open the layer's REST endpoint window.
  4. In the ArcGIS REST Services Directory window, click Admin.
The Admin button in the ArcGIS REST Services Directory window.
  1. In the ArcGIS REST Services Directory window, scroll down and click Update Definition.
The Update Definition button in the ArcGIS REST Services Directory window.
  1. In the Update Service Definition text box, search for the hasStaticData parameter (Press Ctrl + F, and search for hasStaticData) and change the value to false.
{
   "hasStaticData" : false,
}
  1. Search for the SourceSchemaChangesAllowed parameter (Press Ctrl + F, and search for sourceSchemaChangesAllowed), and change the value to true.
{
   "sourceSchemaChangesAllowed" : true,
}
  1. Search for the lastEditDate, schemaLastEditDate, and dataLastEditDate parameters (Press Ctrl + F, and search for lastEditDate, schemaLastEditDate, and dataLastEditDate) and replace the number values with quote marks as below:
        "lastEditDate" : '', 
        "schemaLastEditDate" : '', 
        "dataLastEditDate" : ''
  1. Click Update Service Definition to save and return to the previous page.
The Update Service Definition button.

The List of Values (Domain) Edit button is now available.

The Edit button for the List of Values (Domain).
  1. After editing the domain values, reset the hasStaticData parameter in Step 6 to true, and the SourceSchemaChangesAllowed parameter in Step 7 to false. Repeat Step 8 to 9 to lock the source data layer.

Article ID: 000030265

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

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options