Hi there,
i want to upload a CSV to AGOL and then later on i have to update this file.
Publishing the file works. A hosted feature service is created.
But i have to update the file every day. Either a fully upload or an append will do the job. The id mustn't change, because the data is used in a dashboard.
My script doesn't work. The update returns a 'TRUE' but the data isn't changed.
Any suggestions how i get the job done.
Thanks.
from arcgis.gis import GIS
username = "username"
password = "pwd"
gis = GIS("https://www.arcgis.com", username, password)
csv_file = 'd:\\file.csv'
csv_item = gis.content.add({}, csv_file)
csv_item.move('some_folder')
csv_lyr = csv_item.publish()
# -------- works up to here ---------
ret=csv_lyr.update(data='d:\\file_update.csv')
print (ret)