WA Agent: Windows job fails with code 1326
search cancel

WA Agent: Windows job fails with code 1326

book

Article ID: 207449

calendar_today

Updated On:

Products

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

Issue/Introduction

When a command or script is executed by the WA Agent with a  USERID, the job fails with following messages:

01/01/20XX 00:00:12.345+0000: 2. Logon[4] failed for orgdomain\user123 due to: 1385 - Logon failure: the user has not been granted the requested logon type at this computer.
01/01/20XX 00:00:12.345+0000: Logon user failed for orgdomain\user123 due to: The user name or password is incorrect.
01/01/20XX 00:00:12.345+0000: Job WIN_JOB/MY_APP.1/MAIN failed - The user name or password is incorrect.
01/01/20XX 00:00:12.345+0000: Transmitter: Sending AFM: 20210126 14555593-0000 JavaAgent#tcpip@DEINSTANCE OS_COMPONENT WIN_JOB/MY_APP.1/MAIN State
SUBERROR Failed SetEnd Status("The user name or password is incorrect.") Cmpc(1326) JobLogId(XXXXXXXXXXXXXXXXXXXXX) 

The user and password are correct.

Environment

Release : 11.x/12.x

Component : CA WORKLOAD AUTOMATION AGENT

OS: Windows

Cause

The following error indicates issue with the permission:

"Logon failure: the user has not been granted the requested logon type at this computer."  

The WA agent is unable to login to the system as that user. 

Resolution

The user defined in the job will require following permission via User Rights Assignments:

Allow log on locally
Allow log on through Remote Desktop Services

Reboot Windows after the permission has been granted.