Is This Content Helpful?
We're glad to know this article was helpful.
When attempting to overwrite an existing feature service to be used in Collector for ArcGIS, the overwriting fails with the following error message:
Error: Packaging succeeded, but publishing failed. Service cannot be overwritten if Sync is enabled and Replicas exist
This error occurs when the web map containing the feature service is taken offline to make edits, and the edits are not synced back to the feature service in ArcGIS Online, which causes previously created replicas of the feature service to still be present at the REST endpoint. When a previous replica exists, overwriting the feature service is not allowed.
This is by design to prevent users from overwriting the existing data in the replica (for example, attempting to overwrite a feature service in a web map synced to a user's mobile device to allow the user to make updates while offline, fails and returns the error). This is because until the user syncs the data back to ArcGIS Online, the replica still remains.
Remove any existing replicas of the feature service by unregistering the replicas from the feature service REST directory to overwrite the feature service. To do so, follow the instructions provided below.
Note: Ensure the feature service is not being utilized in Collector for ArcGIS before performing the steps listed below.