After upgrading Workload Automation Agent to version 12.x (or higher) on Windows, command jobs that previously worked begin to fail with the following error in the job's standard error (stderr) or spool file:
Provided JIL command is not recognized as an internal or external command, operable program or batch file
Additional Observations:
transmitter.log or joblog) shows the command being executed with an extra set of double quotes, such as: "C:\Windows\SYSTEM32\cmd.exe" /c ""C:\####\####\script.bat 45""By default, AutoSys Agents in version 12.x and higher enable AutoSys Compatibility Mode. One of the parameters associated with this mode is oscomponent.cmdprefix.force.quotes.full.
When this parameter is set to true, the agent automatically wraps the entire command in double quotes before passing it to cmd.exe. If the job's JIL definition already encapsulates the command in double quotes (a common practice), the agent adds a second set. This results in nested quotes that cause cmd.exe to treat the entire string—including arguments—as a single, non-existent filename.
To resolve this without modifying hundreds of existing JIL definitions, update the agent configuration to prevent the automatic addition of quotes.
C:\Program Files\CA\WorkloadAutomationAE\SystemAgent\WA_AGENT).agentparm.txt file in a text editor with Administrator privileges.oscomponent.cmdprefix.force.quotes.full=truefalse: oscomponent.cmdprefix.force.quotes.full=falseAlternative Resolution: If you prefer to keep the parameter as true, you must remove the double quotes from the command: attribute in the JIL definition for every affected job. However, the configuration change above is the recommended approach for large-scale upgrades.