Our ETL job will be done every morning and a .txt file will be created in a network folder. Once the file is available, I would like to kick off the DI jobs, like File Watcher in BCA. I don’t see any feature in the current version XI-R2, Is there any other work around to accomplish this file watcher method?
I think DI has an Access Server configuration that allows you to create a polling from the admin tool to look for a file to start a job. I didn’t have a lot of luck with this but a simple DI job can be used.
This can be done a few different was, but what i have done is create a DI job to look for a file and when the file is found execute a bat file to launch the other DI job. Once the job has started rename or remove the file.
…or find the file in a conditional loop and then fire the workflow
…or create a DI job that looks for various files to execute various bat files for other di jobs.
…or find the file in a conditional loop and then fire the workflow<<
Don’t know which DIXI version you’re on, but version 11.7 would help make this slightly easier with the availability of the new “wait_for_file()” function, this a sleep function that ends once a file does exists within a given time window. So just schedule your ETL job daily to start early morning, then let the job run.
…I don’t think there is any direct equivalent of ‘BCA filewatcher’ for DI, but one suggestion that will require further investigation, for version 11.7.2, the DI scheduling is available from the BO CMC, it looks like there is the choice to use existing DI scheduling functionality or Business Objects Enterprise scheduling, could BOE scheduling provide that filewatcher feature? Can anyone confirm this?
Thanks for the info. I am working on DI version 11.7.0.0 and it does have wait_for_file function. I am having hard time to get the right syntax. If any one of you have the right syntax, please let me know.
Also, the DoneFile.txt file is available in the network folder. How should I check the availability of the file in the network folder in this syntax? DI has access to the network folder.
If I am not mistaken, the CMC of Business Objects Enterprise does have file watcher capabilities. Schedule a 11.7 job in the CMC rather than in the jobserver and modify the CMC schedule then.
So, Can I schedule a DI job with the BOE scheduler? If possible, could you let me know how should I call a DI job in the BOE scheduler? I have used this only for report scheduling.
Has anyone used the wait_for_file function to check the file at the ftp server location? It doesn’t work for me eventhough the server has access to the FTP location of the file. It just simply skips the script which has wait_for_file function and execute the jobs and sometimes gives the error ‘Permission denied’. Any suggestions? or work around to fix the issue?
I am in the same boat. I need a solution for file watching. We have BOE XI R2 but I’m not quite sure how to create an event that will trigger the DI job .exe.
I would suggest that you try and troubleshoot the file access or permissions issue you are experiencing. This is because the obvious work around that is available would probably include using the while_loop and file_exists() function, and I’m sure you will experience the same issues (unless there is a bug specififcally with the wait_for_file function…)
A little info on your environment would help?
What OS does the DI JobServer run on? And what is the FTP area on?
However, to help troubleshoot: When you execute the DI job, the ftp area would be accessed using the DI Jobservers credentials (remember that the DI Job server is run under a user account, which maybe different from your own user account). What I would do is logon into your machine using the DI Job server user, and check to see if you can view file/access ftp drive/folder. This may highlight permission issues?
Also, if you are using Unix JS, has your DI Job server been restarted since the JobServer user account was given rights to the ftp area, if not you will need to restart the DI service for new rights to take effect (don’t know if this was a bug but we have to do it for 11.5 for Unix Job server.)
I’ve been able to enable BOE scheduler and then use that to schedule DI jobs. The benefit from that is that with the BOE scheduler, I can create an event.
The event that I create is when a file appears. My DI job starts when that file appears.