ERROR

ArcGIS Pro: ERROR: code:400, Unable to delete item

First Published: February 27, 2024
Last Published: April 2, 2026

Error Message

When attempting to overwrite an ArcGIS Online hosted feature layer in ArcGIS Pro, the following error message is returned:

Error:
Failed to publish web layer
The Failed to publish web layer error message

Accessing the log by clicking View log displays the following error log:

Error:
ERROR: code:400, Unable to delete item. This service item has a related Service item, Bad syntax in request.
The error message ERROR: code:400, Unable to delete item. This service item has a related Service item, Bad syntax in request. in the ArcGIS Pro SharingJobLog log

Cause

The hosted feature layer has a joined hosted feature layer view created directly from the feature layer’s item page, as well as view layers with 'Areas of interest' defined within them. Feature layers included in view layers with joins cannot have their schemas altered and are always read-only. Therefore, the feature layer cannot be overwritten.

Solution or Workaround

Before overwriting the ArcGIS Online hosted feature layer in ArcGIS Pro, delete the joined hosted feature layer view. Refer to ArcGIS Online: Delete a single item for instructions.

The Delete item option on the hosted feature layer view Settings page

Article ID: 000031972

Software:
  • ArcGIS Pro
  • ArcGIS Online

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options