Unable to run python script via Autosys.
Article ID: 185723
CA Workload Automation AE - Business Agents (AutoSys)
CA Workload Automation AE - System Agent (AutoSys)
CA Workload Automation AE - Scheduler (AutoSys)
Workload Automation Agent
CA Workload Automation AE
Unable to run Python script via Autosys, getting error as below in spool file.
Mon Feb 24 15:40:02 2020 CAWA_I_20022 Process created with pid: 3276
Mon Feb 24 15:40:02 2020 CAWA_I_20018 Job failed. Exit code 2, Status: "The system cannot find the file specified."
Release : 11.3 plus verisons.
Component : CA Workload Automation AE (AutoSys)
The cause might be the python executable is not defined in the jil of the job.
command: python "D\\:\ Programs\D365\scriptname.py" --url "http\\path"
You might have to mention fully qualified python executable and pass the script and args which is as below.
command: c:\python\bin\python.exe "D\\:\ Programs\D365\scriptname.py" --url "http\\path"
In case of any issues please raise a case to support.