ERROR

Cannot drop index because it does not exist or you do not have permission

Last Published: April 25, 2020

Error Message

Attempting to update the layer definition of a hosted feature service through the REST Endpoint, such as adding a domain value, fails and returns the following error:

Error:
Cannot drop index '<index name>' because it does not exist or you do not have permission.

Cause

This error may occur if the Optimized Layer Drawing setting is enabled. This is a setting in the Item Details page for the hosted feature service. For more information on Optimized Layer Drawing, refer to the following help document, ArcGIS Online: Manage hosted feature layers.

Solution or Workaround

Disable the Optimized Layer Drawing setting before updating the layer definition. After updating the layer definition, enable the Optimized Layer Drawing setting again. Follow the steps below to disable the Optimized Layer Drawing setting:

  1. Open the feature layer in ArcGIS Online: Content > My Content tab.
The image of Content &gt; My Content tab.
  1. Click the Settings tab on the Item Details page of the hosted feature layer.
Image of the Settings tab on the opened hosted feature layer.
  1. Scroll to the Optimized Layer Drawing segment. Deselect all options under the Select the layers to optimize section and save the changes.
Image of the Optimized Layer Drawing settings segment.

Article ID:000017646

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