VisualCron FTP ListFolders(s) Task buggy? - VisualCron - Forum

Community forum

MLTCIT
2022-05-03T00:42:02Z
Hello, I am trying to use the VisualCron FTP ListFolders(s) task to simply determine if a remote FTP folder with a certain name exists, and then pass the name of that remote FTP folder to the next task (via an Output variable). To make a long story short, it's not working. Even if a remote FTP folder with that name exists, nothing is outputted -- it just says "No output" in the Output column for the task.

In addition, the On error options seem to be completely wrong for the VisualCron FTP ListFolder(s) task, as it should have a FolderNotFound option, but doesn't, and instead has a FileNotFound option, which is also messing things up.

In summary, what I need to do is:
- if the remote FTP folder exists, pass its name to the next task via the Output
- if the remote FTP folder does not exist, raise an error and stop the job

Right now, I can't do either one of these things using VisualCron FTP Listfolder(s) task.

I'd appreciate it if someone can get back to me and let me know what I'm doing wrong or provide me with a workaround. (BTW, we are using VisualCron 9.8.0)

Thank you.
thomas
2022-05-03T13:46:44Z
I get output from this task. Can you post images of your List folders command?
Michael Fjellström
2022-05-03T14:32:47Z
Originally Posted by: MLTCIT 

Hello, I am trying to use the VisualCron FTP ListFolders(s) task to simply determine if a remote FTP folder with a certain name exists, and then pass the name of that remote FTP folder to the next task (via an Output variable). To make a long story short, it's not working. Even if a remote FTP folder with that name exists, nothing is outputted -- it just says "No output" in the Output column for the task.

In addition, the On error options seem to be completely wrong for the VisualCron FTP ListFolder(s) task, as it should have a FolderNotFound option, but doesn't, and instead has a FileNotFound option, which is also messing things up.

In summary, what I need to do is:
- if the remote FTP folder exists, pass its name to the next task via the Output
- if the remote FTP folder does not exist, raise an error and stop the job

Right now, I can't do either one of these things using VisualCron FTP Listfolder(s) task.

I'd appreciate it if someone can get back to me and let me know what I'm doing wrong or provide me with a workaround. (BTW, we are using VisualCron 9.8.0)

Thank you.



As thomas said, please post pictures of the list folders command/output/settings.
MLTCIT
2022-05-03T15:05:24Z
Thank you very much Thomas and Michael. Here are some screen shots.

Also, I want to make it clear that this is the List Folders task from the VisualCron Net|FTP/FTPS/SFTP/SCP tasks, and NOT the List Folders task form the VisualCron File tasks.


Thanks again.
thomas
2022-05-03T15:13:01Z
Hi

I cannot see the images unfortunately, i get an error message when I try to open them. The easiest is to just copy the image and paste directly into the message box. It will create a link for you automatically
MLTCIT
2022-05-03T15:18:10Z
Sorry, here are the images again:

1. Trying to use VisualCron FTP/FTPS/SFTP/SCP ListFolders(s) task to determine if a folder beginning with "Elderserve_PCSP_Responses" exists:
image.png

2. Use the "Show filtered folders" command in the Test tab, and it confirms a folder beginning with that string exists:
image.png

3. Run the task -- expecting an output with the folder name -- but get no output:
image.png

4. On Error options for the task seem to be wrong -- should have FolderNotFound as an option and NOT FileNotFound:
  image.png (625kb) downloaded 2 time(s).

Thank you.
thomas
2022-05-03T16:52:43Z
Hi

You are right. My first test was sloppy. I doesn't work for me either. We use version 9.9.5
MLTCIT
2022-05-03T17:31:10Z
Thank you Thomas. So this is a VisualCron bug, yes?

Can you or Michael (or anyone else) give me a workaround way to do this then -- (i) get the remote FTP folder name and pass it to the next task and (ii) if no FTP folder with a name like that exists, then raise an error and stop the job?
thomas
2022-05-03T17:47:20Z
It is a bug yes. As a temporary workaround, you could try the 'change folder' task. If the folder you are looking for does not exist , it will fail. it is not a great solution, but it might work
MLTCIT
2022-05-04T14:09:33Z
Thank you Thomas -- I appreciate your response. I'll try that. If it doesn't work, I'll write some C# to do what I want.
Michael Fjellström
2022-06-10T11:19:24Z
Originally Posted by: MLTCIT 

Thank you Thomas -- I appreciate your response. I'll try that. If it doesn't work, I'll write some C# to do what I want.



Apologize for the late response. I am however unable to reproduce this, is it only for FTP and not SFTP?

Could you please attach a job and test credentials and send to support@visualcron.com where we can reproduce your issue in our environment?
Scroll to Top