ERROR

Overwrite Web Layer: The selected web layer does not have a name and cannot be overwritten

Last Published: April 25, 2020

Error Message

Flag of Canada
This article was contributed by Esri Canada.

In ArcGIS Pro, attempts to overwrite a web layer hosted on ArcGIS Online returns the following error message:

Error:   
Overwrite Web Layer: The selected web layer does not have a name and cannot be overwritten.

Image of the error message

Cause

This error occurs when attempting to overwrite a web layer (hosted feature service) that does not have a service definition in ArcGIS Online.

For example, ArcGIS Online does not create a service definition file when a zip file (containing the feature layer) is published directly to ArcGIS Online. Hence, attempts to overwrite the web layer return the Overwrite Web Layer error message.

Note:
In older versions of ArcGIS Online, a service definition could be deleted. However, this is no longer possible, as a protection check was implemented to prevent deletion of a service definition referenced by a hosted feature service.

Solution or Workaround

There are two possible solutions for this issue, depending on the cause.

  • Hosted feature service published with ArcGIS Online

    If the web layer (featured service) was initially published using ArcGIS Online, the web layer can be overwritten. To do so, refer to ArcGIS Help: Overwrite hosted feature layers.

  • Hosted feature service published with ArcGIS Pro

    A service definition file is required to overwrite a hosted web layer. If the web layer (feature service) was initially published via ArcGIS Pro, and the service definition file is no longer present, republish the web layer as a new web layer. The republished web layer contains an associated service definition file in ArcGIS Online, allowing the web layer to be overwritten in the future.

    For steps on how to overwrite a web layer in ArcGIS Pro, refer to ArcGIS Pro Help: Overwrite a web layer.

Article ID: 000016274

Software:
  • ArcGIS Pro
  • 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