Error on a windows job in interactive mode : CAWA_E_20020

book

Article ID: 140069

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) CA Workload Automation Agent CA Workload Automation AE

Issue/Introduction

Why do we have this error msg below while we indicated the paremeter "interactive: 1" in the job:

Error msg : " CAWA_E_20020 Logon failed for DOMAIN1\USER1 due to: Unable to locate interactive logon session.Error code: 20013" 


Definition of the job : 

 insert_job: Job1
 command: execute.cmd
 machine: win2k16
 owner: [email protected]
 std_out_file: "%AUTOUSER%\out\%AUTO_JOB_NAME%-%AUTORUN%"
 std_err_file: "%AUTOUSER%\out\%AUTO_JOB_NAME%-%AUTORUN%"
 alarm_if_fail: 1
 alarm_if_terminated: 1
 interactive: 1

 

Environment

Release : 11.3.6

Component : CA Workload Automation AE (AutoSys)

Resolution

Set following parameter in the agentparm.txt 


                 oscomponent.interactive.sessionzero=true