Unable to run python script via Autosys.
book
Article ID: 185723
calendar_today
Updated On:
Products
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
Issue/Introduction
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."
Cause
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"
Environment
Release : 11.3 plus verisons.
Component : CA Workload Automation AE (AutoSys)
Resolution
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"
Additional Information
In case of any issues please raise a case to support.
Feedback
thumb_up
Yes
thumb_down
No