Page 1 of 1

FTP Query

Posted: Tue Aug 12, 2008 1:17 pm
by mydsworld
I have a Sequence like this :

Job1 (FTP job doing GET/PULL) -> Wait for file ->....other jobs

Now the trigger condition on Job1 is 'Success'/'Warning'.

So, will there be any possibility where partially transferred file be taken up for processing by 'Wait for File' activity stage. My intension is to get the file in full and only then start next job activities.If there is no file transferred no subsequent job should start.

Please let me know whether I am correct.

Posted: Tue Aug 12, 2008 3:28 pm
by ray.wurlod
You are correct about a partially transferred file triggering the Wait For File stage. The usual solution is to get two files, the second a small or even empty file, and trigger the Wait For File stage from the second file, which will not begin to arrive until the first file is complete.

Posted: Thu Aug 14, 2008 9:46 am
by mydsworld
I understand the concept of Trigger file. The problem would have been with that when I have something :

Wait for File -> Other jobs

Then 'Wait for file' takes up the partially received file and start calling other jobs.

But here I am invoking the 'Wait for file' activity stage only after the successfull completion of previous FTP job.

FTP Job -> Wait for File -> Other jobs

'Wait for File' will be called only after the FTP is over and I have either full file or no file. So, do you think there is any threat of processing partially received file.

Posted: Thu Aug 14, 2008 10:20 am
by chulett
No, no threats there. That WFF step seems superfluous to me, but whatever.

Posted: Thu Aug 14, 2008 11:22 am
by mydsworld
Actually I need this WFF stage as I have two links from WFF.

1. When FTPed file not found in local directory
2. When FTPed file found in local directory.

Posted: Thu Aug 14, 2008 11:33 am
by chulett
So - under what circumstances would you not find a file there after successful completion of the FTP job?

Posted: Thu Aug 14, 2008 3:49 pm
by mydsworld
FTP job runs but didn't find any file.

Posted: Thu Aug 14, 2008 3:55 pm
by chulett
I wouldn't consider that as "successful completion" but that's just me. Please to ignore the intrusion, we now return you to your regularly scheduled conversation...