ERROR

User cant overwrite this service, using this data, as this data is already referring to another service

Last Published: September 21, 2021

Error Message

When overwriting a hosted feature layer in ArcGIS Online through the Update Data option or using the overwrite() method within the publish() Python methods, the process or script fails and returns the following error:

Error:
User cant overwrite this service, using this data, as this data is already referring to another service.
The Error pop-up message when attempting to overwrite a hosted feature layer.

Cause

The hosted feature layer is overwritten using a file containing data with a different name than the original name. The display name can be edited to a different name, while the original name remains the same in the ArcGIS REST Services Directory. The uploaded file must follow the name within the ArcGIS REST Services Directory.

Solution or Workaround

To solve the issue and successfully overwrite the hosted feature layer, ensure the file name matches the name specified in the ArcGIS REST Services Directory. The following steps describe how to locate the hosted feature layer name:

  1. Open the desired hosted feature layer in ArcGIS Online.
  2. In the Overview page, scroll down and locate URL on the right pane.
  3. Click View to open the ArcGIS REST Service Directory. The original name of the data can be viewed in the Layers section.
The URL section in ArcGIS Online Overview page
  1. Rename the desired file for overwriting the hosted feature layer to match the name displayed in Step 3.

Article ID:000026287

Software:
  • ArcGIS Online

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic