We are using ArcGIS Desktop 10.7.1 and trying to automate AGOL publishing ( overwriting a service)..
We have a service ( created by publishing an mxd) that needs to be updated on a daily basis. We have automated the local data creation/update process using models.
Once the data is updated, we need to push the updates to AGOL . One option is to re-publish the MXD and overwrite the service. However , there must be a better/easier way to do this!
Found a python script online and it seems to be working but not in a consistent way: sometimes we need to have the mxd open and be logged in to AGOL... sometimes not... This doesn't make sense because the script contains the credentials.
Not sure if this is an AGOL limitation/issue or an issue with the python script ( see attached).
Any help is appreciated.
Thanks in advance!