Windows File Trigger job failing
book
Article ID: 93044
calendar_today
Updated On:
Products
CA Workload Automation AE - Business Agents (AutoSys)
CA Workload Automation AE - Scheduler (AutoSys)
Workload Automation Agent
Issue/Introduction
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://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-ae-and-workload-control-center/11-3-6-SP8/reference/ae-job-information-language/jil-job-definitions/watch-file-win-user-attribute-specify-a-windows-user-for-monitoring-unc-files.html
Feedback
thumb_up
Yes
thumb_down
No