One Star

[resolved] FTP and tWaitForFile trigger

Hi,
I created a job to change .csv file to .xml file.
I got csv file from FTP server.
When a new file reached on FTP, I want to do format change process immediately.(and delete csv file from FTP)
I think I can use tWaitForFile but I don't understand how to trigger.
New csv file can be got many times in a day.
Is there any advice please?
Best regards, MayT.
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] FTP and tWaitForFile trigger

Hi,
I got it by using tInfiniteLoop, tFTPFileList, tFTPGet components.
P.S : If there has a component like tFTPWaitForFile, it will be more convenient, I think. Smiley Happy
Best regards, MayT.
8 REPLIES
Moderator

Re: [resolved] FTP and tWaitForFile trigger

Hi,
Your update time is specific or random? Can you set time trigger/ scheduler for your job processing?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] FTP and tWaitForFile trigger

Hi Sabrina,
It's random so I think I can't use task scheduler.
Best regards, MayT.
Moderator

Re: [resolved] FTP and tWaitForFile trigger

Hi,
Have you already checked component reference: TalendHelpCenter:tWaitForFile?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] FTP and tWaitForFile trigger

Hi,
Yes.I already checked tWaitForFile but I don't understand how to trigger it with tFTP components.
Best regards, MayT.
Moderator

Re: [resolved] FTP and tWaitForFile trigger

Hi,
Could you please take a look at a related forum:https://www.talendforge.org/forum/viewtopic.php?id=11016 to see if it is working for your case?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] FTP and tWaitForFile trigger

Hi,
Thanks for your information.
I checked this link but I can't imagine how to connect FTP and tWaitForFile.
If I create tWaitForFile as first component, how can I set "Directory to scan".
Or, if using tFTP components to get files from FTP and check local folder by tWaitForFile,
if there has no file on FTP and how can I know the file is reached on FTP at what time.
Best regards, MayT.
One Star

Re: [resolved] FTP and tWaitForFile trigger

Hi,
I got it by using tInfiniteLoop, tFTPFileList, tFTPGet components.
P.S : If there has a component like tFTPWaitForFile, it will be more convenient, I think. Smiley Happy
Best regards, MayT.
Moderator

Re: [resolved] FTP and tWaitForFile trigger

Hi May T,

Thanks for your feedback.
Feel free to create a new feature of DI project for your requirement tFTPWaitForFile on Talend Bug Tracker.

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.