I have a pythonscript that exports pdf with arcpy.exportToPDF.
It has worked well until december 2024/january 2025.
It works on my machine (with Windows 11) in Windows scheduler (with option: Run whether user is logged in or not). (I have a runner.bat that runs a pythonfile.)
But it does not work on a Windows Server (We have upgraded from Windows Server 2019 to 2022 but it did not make any difference).
On this Windows server it only works to run when i run it right in the commandtool, or in a windows task scheduler with the option: Run only when the user is logged on.
I have tried with ArcGIS Server on the server, and also tried with only ArcGISPro (3.3) on the server. Both with MicrosoftEdgeWebView2RuntimeInstallerX64 installed (test is done with version 133.0.3065.92 and 134.0.3124.51).
I also tried with a older version of ArcGISPro.
I have all admin permissions on the folders and in task scheduler.
So, the question is what can cause this arcpy.exportToPDF to fail? and without any errormessages.