Select to view content in your preferred language

Schedule not work arcgis pro

325
1
08-07-2024 12:38 PM
MarceloCatalão
Occasional Contributor

Good evening I have tried to put a script working as a routine, but if you run it manually it works, with the shedule, it does not work as the image appears
How can I resolve this issue or create a similar task?

Thank you

MarceloCatalo_0-1723059283221.png

 

0 Kudos
1 Reply
RhettZufelt
MVP Notable Contributor

aprx = arcpy.mp.ArcGISProject("CURRENT") uses the currently open Pro document.  Scheduled tasks normally run outside of Pro, so would need to put the actual path of the aprx in place of CURRENT.

aprx = arcpy.mp.ArcGISProject(r"C:\path\to\project.aprx") 

R_