I'm trying to automate the process of taking data from our local gis servers and push a copy into ArcGIS Online to use the OpenData tools/website.
I've uploaded a file geodatabase containing two layers and created hosted feature layer from them, which was fairly simple.
Where I'm struggling is updating the data. When I go to the ArcGIS online website and go to hosted feature layer and select "Update Data" and give it the new file geodatabase with the updated data, it works like a charm.
From what I've found, this seems like it should work, and it returns successfully, but the data is never updated when I go and look at it.
# overwrite the initial data
updateData = '<Path2MyData>'
fgdb = gis.content.get('<IDofMyHostedLayer')
if fgdb.update({}, updateData):
print("Success?")
else:
print("No success?")
What am I missing here? I just want to overwrite the existing data with the new files.
Thanks,