ERROR
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

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 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.
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.

Article ID: 000031972
Get help from ArcGIS experts
Start chatting now