I have a hosted feature layer that is based off of a SQL view that has been published to my Enterprise Portal (10.6.1).
The SQL view is constantly updating. I am looking to write a script that can automate taking this SQL Query Layer from ArcGIS Pro (2.2.1) and overwrite the published feature layer every x minutes, essentially updating it. I am new to trying to write scripts using the ArcGIS API for Python so I am hitting some snags.
Thanks!
Solved! Go to Solution.
Hey everyone who may or already have viewed this. Referencing some material I found from Esri, I wrote a working script that loops through a directory that contains the project folders for the projects containing the layers you want to overwrite. Mouthful right? Here are the considerations to make this script work:
Attached is the script. If you have any questions let me know and I will do my best to answer quickly!
Cheers.
Hey everyone who may or already have viewed this. Referencing some material I found from Esri, I wrote a working script that loops through a directory that contains the project folders for the projects containing the layers you want to overwrite. Mouthful right? Here are the considerations to make this script work:
Attached is the script. If you have any questions let me know and I will do my best to answer quickly!
Cheers.