I'm using Python API's flc.manager.overwrite method to overwrite an existing HFS with new data from a feat class in a fgdb. Although the operation says "success" the records returned are the either the same as before or they are zero.
To test, I downloaded a hosted feature service (HFS) as a fgdb, deleted a few records in ArcMap and then specified the following for overwriting.
flc = arcgis.features.FeatureLayerCollection.fromitem(item)
flc
lyr = flc.layers[0]
lyr.query(return_count_only=True)
Output:39
flc.manager.overwrite(r"C:\data\Data\Projects\jupyter\WDFW_JupyterNotebooks_Master\Data\test.gdb\test_county")
Output:{'success': True}
lyr = flc.layers[0]
lyr.query(return_count_only=True)
Output:39 #this should be 34 since I removed some counties from the local feature classA second test with adding new features in ArcMap and then running method gave the "success:true" message
but results returned was zero records.
Any ideas what I'm doing wrong?