StatusMessage: Server Response: ERROR: code:400, Unable to delete item. This service item has a related Service item, Bad syntax in request.
Status: InProgress StatusMessage: Publishing tool execution failed
I have tried multiple times to overwrite this feature layer in AGOL. I have 6 views created from the original feature layer. I have overwritten this in the past, so cannot see what is different. I have read other posts and followed their suggestions
Nothing seems to work. Please advise. Thank you.
If the layer has a view layer associated with it, which is created from Join operations (Analysis > Summarize Data > Join Features > Create results as hosted feature layer view). Then, this error is expected.
To resolve this, delete the view layer.
Hi I'm wondering if there have been any updates to this feature. I have a view based on a join. When i overwrite the joined table, the table is corrupted.
Hi! Bit of a late reply, but there is a limitation regarding overwriting features in ArcGIS Online from ArcGIS Pro. As Geetesh mentioned above, "Joined View" layers will cause this error, as well as any view layers with Areas of Interest defined within them.
As a workaround, the view layers need to be deleted. Then, the hosted feature layer can be overwritten from ArcGIS Pro and the views regenerated. A big thing to note: With the introduction of the Recycle Bin, when the option has been turned on, deleted items will be sent there unless specifically marked for permanent deletion. While in the Recycle Bin, items still technically exist within the organization and will continue to consume storage space, as well as remain "tied" to anything they were originally a part of. So in order for the workaround to actually work, the view layers will need to be either permanently deleted during the initial deletion process or permanently deleted from the Recycle Bin.
Here's some more information on the error specifically, as well as other general limitations to overwriting: