Jobs on a Workload Automation System Agent fail with the error message CAWA_E_20050 Shell verification failed. Error code: 4014. The job state in the scheduler may show as SUBERROR with the status Invalid shell error.
This is commonly observed when migrating from legacy agents (such as UUJMA/UJMA) to the newer System Agent, as the System Agent enforces stricter shell validation by default.
CAWA_E_20050 Shell verification failed. Error code: 4014.Using shell from script: '/usr/bin/bash'.The error occurs because the agent's internal security policy is configured to validate shells against a predefined list, and the shell requested by the script is missing from that list. This is governed by two parameters in the agentparm.txt file:
oscomponent.checkvalidshell: When set to true, the agent validates the shell.oscomponent.validshell: A comma-separated list of fully qualified paths for allowed shells.Check the first line (shebang) of the script or the job definition to identify the exact path of the shell being used. Common paths include:
/usr/bin/bash/bin/bash/usr/bin/sh/bin/kshagentparm.txt file in a text editor.oscomponent.validshell parameter.oscomponent.validshell=/bin/sh,/usr/bin/sh,/bin/ksh,/usr/bin/bash/usr/bin/bash, do not just add /bin/bash).Restart the agent service for the changes to take effect.
If you prefer to match the behavior of older agents and bypass this validation check, set the following parameter in agentparm.txt and restart the agent: oscomponent.checkvalidshell=false