Assure DQ

 View Only
  • 1.  File Monitor Control

    Employee
    Posted 09-04-2019 11:38
    1. 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.
    2. 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.


  • 2.  RE: File Monitor Control

    Employee
    Posted 09-06-2019 07:49

    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.  



  • 3.  RE: File Monitor Control

    Employee
    Posted 09-06-2019 08:12

    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 - 

    1. Validate When - Always
    2. Validation Check Rule - Using t_contains function to cross check the file name
    3. When Pass - Invoke subsequent control
    4. 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