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

Document ID : KB000089414
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Perform a PREP_PROCESS_FILE with a file using the UNC path ends up in an access denied- error
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