The City of Seattle GIS team would like to request an enhancement by Esri to address the impacts of not able to overwrite a hosted feature layer or hosted view when the underlying hosted feature layer has an area of interest defined.
This is in reference of Esri BUG-000115592.
Here are steps to reproduce the issue:
- Create a hosted feature layer. Then create a view layer with area of interest defined.
- Overwrite the feature layer from ArcGIS Pro or Python script.
- If an error does not occur, check the view for incomplete drawing or random missing features which does not return any error messages. This typically leads up to the Python script and/or ArcPro aprx publishing returning errors in subsequent publishing.
- Exact error trigger is unknown but eventually during the Python script Append process it will bail out with an unkown error 500. Then when publishing the source aprx for the same map service that failed in the Python script it will return "Error code: 400 Description: Bad syntax in request. Message: Unable to delete item. This service item has a related Service item".
- If the view layer does not have an area of interest defined, then the overwrite would be successful.
- There is no documentation specifying this; and the error message does not provide enough information.
We do not think this behavior is the proper behavior. Area of interest defined for a hosted feature layer or hosted view should not prevent anyone from overwriting during publishing. The work around of removing Area of Interest before overwriting can happen creates unnecessary burden for groups where frequent publishing needs to be performed. We want Esri to enhance ArcGIS Online to correct this behavior.