Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
abhi90
Creator II
Creator II

FileWatcher in Talend

Hi All,

 

I want to check existance of a file based upon which One of my Child Job will trigger. I have already done with tfileexist giving location of the file. Now I want to keep checking in that location untill and unless that file is available and it will be in loop upto file is available.So basically it will be in an infinite loop. I have placed one tloop where I am placing the condition in while Loop like 

i=1,

!((boolean)globalMap.get(tfile_exists)) =Condition

i++

But the problem is the loop is not working.  I have attached my Job screenshot.

 

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@abhi90 in this scenario,tWaitForFile will be usefull,please check.

View solution in original post

7 Replies
abhi90
Creator II
Creator II
Author

Hi,

@vapukov@manodwhb@TRF@rhall any help will be appreciated 0683p000009MACn.png

TRF
Champion II
Champion II

Based on your job design, tFileExists is executed only once, so the result of your condition will never change.
Also notice the variable associated to tFileExists is called tFileExists_1_EXISTS (if the component is called tFileExists_1).
So, review your logic and correct the variable name.
abhi90
Creator II
Creator II
Author

Hi @TRF,
Yeah I using the condition like !(boolean variable of tfileexists). Can you please tell me what logic i will use so that it will keep checking fr the file
manodwhb
Champion II
Champion II

@abhi90 in this scenario,tWaitForFile will be usefull,please check.

abhi90
Creator II
Creator II
Author

Hi @manodwhb,

 

Can you please let me know how to achieve this using tWaitforFile?

manodwhb
Champion II
Champion II

abhi90
Creator II
Creator II
Author

Hi @manodwhb,

 

Your solution worked perfectly. But one thing I did was I kept Exit Loop once File will be created. So untill and unless it was gettting file it was iterating in the directory. Marking the psot as Solved 0683p000009MACn.png. Thanks a lotttttt