Error "UserPrincipalNotFoundException" running Windows jobs in Automic Automation
search cancel

Error "UserPrincipalNotFoundException" running Windows jobs in Automic Automation

book

Article ID: 432089

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

You encounter a java․nio․file․attribute․UserPrincipalNotFoundException error when executing Windows jobs in Automic Automation․​​​​​​​‌​​‍

ERROR MESSAGE: "java․nio․file․attribute․UserPrincipalNotFoundException null"

 

Symptoms:

  • Jobs fail immediately with "cannot be opened" error․

  • Agent logs show the failure occurs when trying to open/create report files in the TEMP directory (e․g․, OAANCYPR․TXT)․

  • The error persists even after resetting folder ACLs or ownership permissions․

 

Environment

 

OS: Windows

Agent: Windows Agent

Product: Automic Automation Engine 24․4․0

Login Object: Windows Login

 

Cause

This occurs during job initialization when the Windows Agent attempts to resolve file ownership/principal attributes via Java NIO․

 

Resolution

Steps to resolve this issue:

  1. Locate the LOGIN Object. Open the Login object assigned to the failing Windows job (defined in the job attributes)․
  2. Modify the Username format. Check the username entry for the affected Windows Agent․
    Original: ․\Username
    Update to: Username (without the .\ preceding the username)
    Example: Change "․\admin" to simply "admin"․
  3. Save and re-run. Save the Login object and restart the failing job․