I have created a hosted table in ArcGIS Online which is updated from a csv file on my local machine. I run this process every 15 minutes using the python API (code attached).
The general process is:
1. connect to AGOL and "get content" from the hosted table using it's alphanumeric ID string
2. make the table a feature layer collection
3. overwrite the table collection with the local csv file (from my pc).
The process works correctly for a couple of days, but then fails. We speculate it might be a network connection problem (usually the process takes 30 seconds, but sometimes it takes 5 mins). Ideally we would like to update the hosted table with a csv in AGOL instead of the local file but can't get it to work.
the ask:
1. how can we make this process work consistently with the local csv file?
2. how can we update the hosted table with the csv on AGOL?
Note: we have tried deleting, truncating, upsert-ing but our hosted table does not have those capabilities.