WA Agent job results in SUBERROR - condition code of 4001

book

Article ID: 208900

calendar_today

Updated On:

Products

CA Workload Automation DE CA Workload Automation AE - System Agent (AutoSys)

Issue/Introduction

Command job fails with a suberror of file not found, condition code of 4001.

 

Cause

The WA agent is not able to access the path or script in the job.  The script or executable are not in the path.

Environment

Release : 11.4, 11.5, 12.0

Component : CA WORKLOAD AUTOMATION AGENT

Resolution

When running command jobs, provide the full path of the script or binary.  If full path is missing then agent will rely command lookup and user PATH environment variable to reach for the executable.

The  following must be set to true in agentparm.txt

oscomponent.lookupcommand=false

Note: The path must also be accessible to agent.  If the path is pointing to a network share then appropriate permissions must be set for agent to be able to access the path and binary.