I just wanted to share a script that I wrote to update multiple feature services that you have published to ArcGIS Online. I took the ESRI script found here and modified GitHub - arcpy/update-hosted-feature-service: Update and overwrite a hosted feature service on ArcGI... this was a great script to start from, however it only updates one feature service. The script I wrote creates a list of .ini files found in a common folder used to update feature services, then iterates through them to update each feature services.
Feel free to grab the code I wrote here GitHub - ChristopherLongVT/update-hosted-feature-service: Update and overwrite a hosted feature serv... and make it better!
Thanks, and feel free to shoot me any questions.
I am running into the following problem:
L:\ED\GIS CAD Systems\GIS_Projects\Outage\Python Script Test>update.py
2019-06-13 09:48 INFO Starting the Service update process...
2019-06-13 09:48 INFO Creating the general config parser...
2019-06-13 09:48 INFO Performing the SD file creation and update in ArcGIS Online
2019-06-13 09:48 INFO Processing took 0 days, 0 hours, 0 minutes and 1 seconds.
Traceback (most recent call last):
File "L:\ED\GIS CAD Systems\GIS_Projects\Outage\Python Script Test\update.py", line 572, in <module>
tbinfo = traceback.format_tb(tb)
NameError: name 'traceback' is not defined
Are you able to advise what I should do with line 572 in the update.py script?