Windows File Trigger job failing

Document ID : KB000093044
Last Modified Date : 26/04/2018
Show Technical Document Details
Issue:
A Windows File Trigger job that monitors a file on a network share:

insert_job: job_name    job_type: ft
machine: machine_name
owner: user@domain
watch_file: \\share\Folder\*.csv
watch_file_recursive: false
watch_file_type: CREATE
watch_no_change: 1
watch_file_change_type: SIZE

is failing immediately with the following error:

The \\share\Folder is unaccessible or an error has occurred.
Environment:
Workload Automation AE 11.3.x
Windows
Cause:
User that monitors the network resource (file on a network share) was not specified in the File Trigger job definition.
Resolution:
Add watch_file_win_user attribute to the File Trigger job definition:

insert_job: job_name    job_type: ft
machine: machine_name
owner: user@domain
watch_file: \\share\Folder\*.csv
watch_file_recursive: false
watch_file_type: CREATE
watch_no_change: 1
watch_file_change_type: SIZE
watch_file_win_user: domain\user
 
Additional Information:
More information about the watch_file_win_user attribute is available in the online documentation at the following URL:

https://docops.ca.com/ca-workload-automation-ae/11-4-2/en/reference/ae-job-information-language/jil-job-definitions/watch_file_win_user-attribute-specify-a-windows-user-for-monitoring-unc-files