I have created a python script to automate the output of several maps that are created weekly.
For the past year it has worked without any problems, and now it seems that for some reason it is not working properly.
The script is uploaded to ArcGIS Server (version 10.9.1), locally and through ArcGIS Pro (3.0.3 version), the script runs and works correctly.
However, when I run the script from REST on the server, I get the following error:
Error executing tool. Script Job ID: ja80780b469e54e149b0c59cf5b8fa0f6 : Traceback (most recent call last): File "D:\arcgisserver\directories\arcgissystem\arcgisinput\WNV\WNV_MapOutput.GPServer\extracted\p20\script\WNF.py", line 14, in <module> aprx = arcpy.mp.ArcGISProject(folder + '/' + 'WNV_WeeklyMaps' + '/' + 'WNF_Maps.aprx') File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcPy\arcpy\_mp.py", line 346, in __init__ self._arc_object = arcgisscripting._mapping.ArcGISProject(*gp_fixargs((aprx_path,), True)) OSError: //zvgis.ecdcdmz.europa.eu/SharedData/MapProjects/WNV/WNV_WeeklyMaps/WNF_Maps.aprx Failed to execute (Script).
Any idea how to fix it?
I've changed the script several times, the paths and I've also resubbed it, and it still doesn't work.
Attached is a screenshot with part of the code
Thanks