Jobs failing with error 'Aborted, code C0000005' or The environment is incorrect (WA agent)
search cancel

Jobs failing with error 'Aborted, code C0000005' or The environment is incorrect (WA agent)

book

Article ID: 247867

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) CA Workload Automation DE - System Agent (dSeries) CA Workload Automation DE - Business Agents (dSeries) Workload Automation Agent

Issue/Introduction

When running jobs on Windows WA Agents, user may see these errors:

Aborted, code C0000005
The environment is incorrect

 

Job output or joblog may not be created by the agent.  Agent logs will show error like this:

20XXXXXX Transmitter: Sending AFM: 20XXXXXX 00001234+0400 JavaAgent#tcpip@LUCKNOW OS_COMPONENT 12345.1725_1/WAAE_WF0.1/MAIN State SUBERROR Failed SetEnd Status("The environment is incorrect.") Cmpc(10)

 

Environment

Release : 12.0

Component : Workload Automation System Agent

Cause

The Windows kills agent process (su.exe) when it tries to load the User / System Environment variables.  If an environment variable has very large number (more than 2K or 2000) of characters then OS may not allow it to be loaded.

Resolution

Fix any environment or user variables that have very large number of characters, more that 2K.