April 30, 2008 at 1:54 pm
Installed File watcher task, then created a new SSIS package by adding the file watcher task in the control flow, below are my setting's inside the file watcher task editor:
2. Options
Filter - *.*
Find Existing Files - True
Timeout warning - False
3. Path
Path input type: Direct imput
Path - \\server1\Sourcefolder
Include subdirectories - False
Actually my understanding about this task is:
This file watcher task will constantly check for the file and then will execute the SSIS package.
If my understanding is correct, then where do we specify the name of the SSIS package?? And also do we need this SSIS package which has the File watcher task to run every 5 minutes or so, so that it can keep checking for the file existence.
Please help, thanks!!
May 1, 2008 at 7:21 am
I linked up the File watcher task and the Exec package task(Filesystem - with the desired package that should execute when true).
Do I need to schedule this package1 which has FWT and EPT to run continuously so that when it finds the file in the source folder, the package1 will execute??
If there is no file in the folder, the package will keep running(alomost like in hung mode) and only when the file is present then the package will complete execution, and once it completes execution how does it start executing again?
Can we do something like this:
1. Schedule the package to run say every 5 minutes
2. Once the file is present the desired package will execute which is linked to the file watcher task, if not the desired package will not run and the package1 should stop.
Thanks much!!
May 2, 2008 at 3:39 am
You can set the option "Timeout" to a value, say 2. The FileWatcher will look for 2 Minutes for the file. If it finds the file, the control flow will go to the next task in your dtsx. Set the Option "Timeout warning" True). You can check the length of the filename you get back in the output variable (len filename == 0) and use this in in the precedence constraint editor.
Depending on your needs it's possible to put all your task in one package. Just set the FileWatcher in a loop (and delete the value of your output variable before) and the other tasks, too.
May 2, 2008 at 2:19 pm
Thanks for your response, Is it safe to use File watcher task, as I heard that it can cause memory leaks!
I set the option of timeout value to 2 minutes and also Timeout warning to True.
When tried to execute from BIDS, it worked like you said, it stopped execution after 2 minutes if there is no file and if a file was present in the folder the SSIS package executed successfully.
But when I scheduled the SSIS package as a JOB (type:file system), it runs and takes the source file and loads the data into the table, but says the job failed with the following Message:
The job failed. The Job was invoked by Schedule 1 (Step1). The last step to run was step 1 (Step1).
How do I do this??
You can check the length of the filename you get back in the output variable (len filename == 0) and use this in in the precedence constraint editor.
Thanks!!
May 2, 2008 at 6:41 pm
I don't know if FileWatcher itself has a memory leak bug, but apparently SSIS does when running infinite loops. See the comments in Jamie Thomson's blog: http://blogs.conchango.com/jamiethomson/archive/2006/10/18/SSIS_3A00_-Random-information-for-beginners.aspx
May 5, 2008 at 12:45 am
a) try to run the job with "Timeout warning" False
b) doubleclick the precedence constraint (the green arrow)
choose Expression
in the field Expression set len(@filename == 0)
@filename is the user-variable set by filewatcher (see output-variable)
August 7, 2008 at 2:09 am
Hi
I've successfully implemented the File watcher task and the rest of the package executes fine. The problem is that it only ever picks up the first file in the folder, i.e. only one file is picked up every time the task starts. How do I get this task to continuously pick up files in the folder?
August 7, 2008 at 2:17 am
Hi,
you can use a for loop container or a for each loop container. put the filewatcher-task and your task to process the file on of these containers
August 7, 2008 at 3:14 am
Thank you very much! It all works like a charm now 🙂
August 20, 2008 at 3:44 pm
Where did you all installed File Watcher Task From ? IS this is a custom task?
Is this similar to WMI task in SSIS ?
Thanks,
VG
August 20, 2008 at 3:51 pm
File Watcher is indeed a custom task from Konesans, Inc., downloadable at http://www.sqlis.com/23.aspx.
August 20, 2008 at 4:39 pm
Thank for the reponse john!!!
Is this free to download ?? ...I don't see download link in here http://www.sqlis.com/23.aspx
Thanks,
VG
August 20, 2008 at 4:44 pm
The download link is part way down the page below the properties chart. Find "Version 1.2.6.100".
August 20, 2008 at 5:03 pm
Thanks again jonh!!
I downloaded it and let me explore with it....
VG
April 20, 2009 at 7:36 am
Hi,
I am new to working on SSIS pacakges and do u have any step by step description how to work on file watcher task? My needs are, i need to check for files on shared path and get those files and process it one by one and insert into a table and then copy to a different location. Appreciate your help in advance.
Thanks
Suri
Viewing 15 posts - 1 through 15 (of 21 total)
You must be logged in to reply to this topic. Login to reply