Running the Python module FeatureLayerCollection.manager.overwrite() to overwrite the hosted feature layer returns the error message “The data file provided does not exist or could not be accessed.”
Testing this with ArcGIS API for Python 2.4.0, the issue is not reproducible. Ensure the following guidelines are followed for successful overwriting.
1. Only hosted feature layer collection services can be overwritten.
2. The original data used to publish this layer must be available on the portal.
3. The data file used to overwrite must have the same format and file name as the original used for publishing.