ERROR

ArcGIS Pro ERROR code 400, Unable to delete item. Delete protection is turned on. Bad syntax in request

Last Published: February 28, 2024

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 in ArcGIS Pro

Accessing the View log shows the following error:

Error:
ERROR: code:400, Unable to delete item <Item ID>. Delete protection is turned on., Bad syntax in request.
The error message ERROR code:400, Unable to delete item <Item ID>. Delete protection is turned on., Bad syntax in request. in the error log

Cause

The hosted feature layer has the delete protection setting enabled.

Solution or Workaround

Before overwriting the ArcGIS Online hosted feature layer in ArcGIS Pro, disable the delete protection setting.

  1. In ArcGIS Online, navigate to Content > My Content, browse to and click the hosted feature layer to open the item details page.
  2. On the item details page, click the Settings tab.
  3. Under the Delete Protection section, uncheck the Prevent this item from being accidentally deleted check box.
  4. Click Save.
The Prevent this item from being accidentally deleted check box

Article ID:000026371

Software:
  • ArcGIS Online
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 3 2

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic