File Monitor Control
- I have developed a file monitor control which monitors a certain directory for all .txt files. If the file is present all goes well. If the file is not present I have setup a result which will trigger notification. This notification goes in proportion of remaining files present in that directory. How can I prevent this? I would like to send one email per absent file.
- I cannot see Tracking option under More -> Manage Actions tab in my installation. Is this related to licensing? Please note we recently migrated to 9.1 from 8.4.
-
Hi Manish,
1. This would depend on how the file monitor is set up and use case, but from the description, the easiest way is to set a validation rule per file (file.txt_indicator = false) and an associated result/result action per validation rule. There are a couple of ways to work this and it would just depend on the use case.
2. This seems to be a license issue and Support should be in touch.
-
Below is how I have setup the control -
1. Base directory - <Some directory>
2. Includes - *.txt
3. Extract tab - I am extracting FileID and FileName using @filename function
4. Validate tab -
- Validate When - Always
- Validation Check Rule - Using t_contains function to cross check the file name
- When Pass - Invoke subsequent control
- When Failed - I have attached a result which triggers "file not arrived" notification to my email inbox.
Problem Statement - If the base directory has 5 files and the file which I am validating in step 2 above is not present then the 4 notifications are generated stating "file not arrived" and has names of files which are present in the base directory. I have attached a screenshot for better understanding.
Attached files
result_template.JPG
result.JPG
assure_file_monitor.JPG
Please sign in to leave a comment.
Comments
2 comments