Hello,
I am trying to automate the updating of hosted feature layers on my organizations Enterprise portal using ArcGIS API for Python. Running through the steps outlined in the documentation does produce a success message and the date modified for the feature layer does update, yet the number of records and geometry stay the same when they should be changing. It is as if an update did not occur. Any advice would be appreciated, below is a sample of the code I am using with paths omitted:
from arcgis.gis import GIS
from arcgis import features
from arcgis.features import FeatureLayerCollection
local_layer_for_overwriting = location of feature class I want to use to update the hosted feature layer (actual location omitted)
portal_layer_itemid = 'itemid for the hosted feature layer on the Enterprise portal (omitted)'
portal_layer_dataitem = gis.content.get(portal_layer_itemid)
flayercol = FeatureLayerCollection.fromitem(portal_layer_dataitem)
flayercol.manager.overwrite(local_layer_for_overwriting)