AnsweredAssumed Answered

Overwrite not working, wrong number of records returned

Question asked by christac on Feb 5, 2018
Latest reply on Jan 31, 2020 by christac

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)

lyr = flc.layers[0]



Output:{'success': True}

lyr = flc.layers[0]

Output:39 #this should be 34 since I removed some counties from the local feature class

A 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?