Posted Thu, 11 Oct 2018 23:29:00 GMT by

I am unsure as how to utilize the FTP file exists as a condition (If > Else>End IF)

In my task I want to check if a file exist prior to completing any actions within the FTP connection.

Posted Fri, 12 Oct 2018 20:27:06 GMT by

Hi Hal,

You can use the FTP Advanced Get Long or Get Short List to generate a dataset or populate a variable based on the filter. You can then use conditional statements based on the variable or dataset to determine your automation going forward.

Posted Sun, 29 Mar 2020 14:10:41 GMT by

Resurrecting this thread. I'm running Automate 10.7.0.3

Leonard's answer to the question above avoids Hal's initial question. Like Hal, I want to use FTP Advanced File Exist to determine if any file is on the ftp before attempting a download (and generating the corresponding error when there's nothing). What I've found is that using the "populate variable with return data" option always returns False, even when the file is explicitly named. Example:

Send File_Exist command to the FTP server. Include the parameter(s) "Inbound/testfile.txt". Populate automate variable "file_on_ftp" with the return data. Session "FtpSession1"

Is there a later build of Automate 10 past 10.7.0.3? If so, was this issue fixed?

 

Posted Tue, 31 Mar 2020 04:09:10 GMT by

Hello Dan,

Yes, there is a new version, 11.3. This issue has not been reported in version 11. We suggest downloading the trial version of 11 and testing to make sure it works properly with your FTP server.

Posted Thu, 22 Apr 2021 05:14:44 GMT by

Alex, I am using the version 11.4.10.1 and seems like the issue is still there, just ran into it with an automation of mine, although mine keeps coming back with "true" all the time even if there is no file in the FTP server. 

Posted Fri, 23 Apr 2021 02:01:40 GMT by

Hello Jose,

Thank you for bringing this to our attention. Is it possible to please send us your steps to review the setup and for us to replicate internally? You can send the info to [email protected]

There is a newer version, 11.5, that was just released. We will test in this latest version. 

In the meantime, I would use the original answer provided by Leonard. Create a dataset based off of a long list, then use an if condition to evaluate whether the file you are looking for is there. 

You must be signed in to post in this forum.