ERROR

ArcGIS Pro ERROR code 400, Unable to delete item. This service item has a related Service item. Bad syntax in request

Last Published: February 27, 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

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 hosted feature layer view with joins created using the Join Features tool in Map Viewer. Feature layers that include in view layers with joins cannot have their schema 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 hosted feature layer view created from the Join Features tool. Refer to ArcGIS Online: Delete a single item for instructions to delete the hosted feature layer view.

The Delete Item on the hosted feature layer view Settings page

Article ID:000031972

Software:
  • ArcGIS Pro 3 0
  • ArcGIS Pro 3 1
  • ArcGIS Online
  • 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