tWaitForFile : always wait 1 minute

One Star jmd
One Star

tWaitForFile : always wait 1 minute

Hi,
I set the time between iterations to 1 (second)
and I tried "when a file is created" or "when a file is updated" as the trigger
But the component (in command line execution) always wait 1 minute, even if the file is there before 1 minute
What's wrong ?
I'm in version 5.2.0
Moderator

Re: tWaitForFile : always wait 1 minute

Hi,
If you execute your job in studio, Is it still last for 1 minute, too?
Here is the component reference tWaitForFile with scenario
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 jmd
One Star

Re: tWaitForFile : always wait 1 minute

No, in studio, the component doesn't wait 1 minute
I already had a look at the standard scenario in documentation : this one tals about file deletion trigger which is not my case
Seven Stars

Re: tWaitForFile : always wait 1 minute

Looks like this is the problem - there is an option in Advanced settings of the component "Wait for file to be released"
Hope this helps
One Star jmd
One Star

Re: tWaitForFile : always wait 1 minute

I can't see the connexion between my problem and this parameter but I can try
Moderator

Re: tWaitForFile : always wait 1 minute

Hi,
No, in studio, the component doesn't wait 1 minute, I already had a look at the standard scenario in documentation : this one tals about file deletion trigger which is not my case

I don't think something wrong with your job, because in studio everything work well, right? I suppose the problem in your command line, could you give us more info about that?(By the way, the standard scenario in documentation is to help you understand this component quickly)
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 jmd
One Star

Re: tWaitForFile : always wait 1 minute

There isn't any problem in command line : it's the standard command line generated by Talend
Moderator

Re: tWaitForFile : always wait 1 minute

Hi,
Well, could you post the screenshots of your work flow so that we can know your job more clearly. It may be blocked on some segment. In addition, you should know that Studio and Command line are transmitting over the network, so there is no absolute synchronization.
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.
Moderator

Re: tWaitForFile : always wait 1 minute

Hi jmd,
One more question about your job how do you know it is a minute delay? How do you calculate it ?
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 jmd
One Star

Re: tWaitForFile : always wait 1 minute

Sorry, it's 2 minutes (120 seconds), not 1
120 iterations and 1 second between iterations
But 1 or 2 minutes, this is the same problem : it works in studio and not in command line
Moderator

Re: tWaitForFile : always wait 1 minute

Hi,
it's 2 minutes (120 seconds), not 1
120 iterations and 1 second between iterations

Do you mean one of your iteration last for 120 seconds? How did you calculate it? I mean use what? a counter? Or you found there are 120 iterations in your job run time for 120 seconds? If so, that means time between iteration is "1" second, it isn't right?
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 jmd
One Star

Re: tWaitForFile : always wait 1 minute

Did you have look at my screen captures ?
It shows precisely the configuration of the component :
1 second between iterations
max iterations : 120
You don't need a counter !
And concretely, when it executes, it waits the max time before exiting the component, while a file is present since many seconds
One Star jmd
One Star

Re: tWaitForFile : always wait 1 minute

So, nobody has an idea ?
Nobody has encountered such a problem ?
The files to wait for are on a network drive, with a UNC path ( \\edi_server\path_to_folder\ )

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog