search cancel

Perform a PREP_PROCESS_FILE with a file using the UNC path ends up in an access denied- error

book

Article ID: 89414

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Perform a PREP_PROCESS_FILE with a file using the UNC path ends up in an access denied- error

Environment

Release: AOATAM99000-9.0-Automic-One Automation Tools-Application Manager
Component:

Resolution

Symptoms

Perform a PREP_PROCESS_FILE with a file using the UNC path ends up in an access denied- error:

U0029003 Cannot open file '\\server\share\filename.txt', error code '5', error description: '5 - Access is denied.'.


Cause

The agent executing the Automic job containing the PREP_PROCESS_FILE command hast to be started with domain permissions and file read permissions.


Resolution

The agent executing the Automic job containing the PREP_PROCESS_FILE command hast to be started with domain permissions and file- read permissions.

 Start the agent with a domain user with all necessary credentials (see manual).

Example SCRIPT:

:SET &HND#=PREP_PROCESS_FILE(WIN01,"\\server\share\filename.txt","*searchstring*")

:PROCESS &HND#

: SET &LINE#=GET_PROCESS_LINE(&HND#)

: PRINT &LINE#

:ENDPROCESS