Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Guest
  •  test
  • No customer Topic Starter
2009-04-03T14:44:24Z
I'm currently trying to test the ability to trigger an FTP send based on a new file in a folder. This works great, if 1 file at a time. I'm finding if I have multiple files, say 5 or more, the task gets confused and will run the same file, multple times for the amount of files in the folder, and not each file on it's own.

Basically I have file 1.txt, 2.txt, 3.txt, 4.txt, and 5.txt. I have 5 FTP session, 3 will send file 3.txt, the other two will send 5.txt. 1, 2, and 4 will not get sent.

I have the task setup to run only one at a time, queueing any others to be ran upon completion of the first one.

Any help would be greatly appreciated.

thanks
Sponsor
Forum information
Tom Tinsley
2009-04-03T15:22:49Z
This is an opportunity for support to add a system variable that will store the file name that triggered an event.

Or you could move or rename the file once an upload is complete. Doing this could work if you can limit the number of simultaneously open tasks.
Support
2009-04-03T17:17:59Z
It depends on what Variable you use and what version of VisualCron you run. Version 5 have an option to put Job in queue. Also, in the combination with the Result.FullPath Variable your files will execute one at a time.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
  •  test
  • No customer Topic Starter
2009-04-03T19:39:25Z
I downloaded the most recent version I believe, I am testing this product out to replace our current process'. I have tried to put the job in queue, this still does not work, it will execute the FTP/program each time, for each file in the scan folder, however it will not use the Result.FullPath correctly, most attempts I find, using files 1-5, will call first execute using 2, then the remaining four will use file 5.

It works great, if I do one file at a time, but in my environment, we could have many at any given time.

thanks
Support
2009-04-03T19:46:01Z
Could you post the exact Variable that you are using? Also, it would be great if you could export this Job and attach to this post so we can examine it. Don't export the Connection as it might contain sensitive information - just the Job.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
  •  test
  • No customer Topic Starter
2009-04-03T20:02:40Z
I have modified for testing to call notepad.exe instead of an ftp session, easier for testing. Attached is the Job called Notepad, and the argument variable I am using to pass to Notepad.exe is below.

{TRIGGER(81006393-dc80-4fca-b0be-feab1825904a,5e284781-5898-4501-9016-3005c78c5f07,File.Result.FullPath)}

File Attachment(s):
Notepad.zip (2kb) downloaded 59 time(s).
Support
2009-04-03T20:17:41Z
Thanks, I was guiding you to almost the right Variable. Use this one instead:

{TRIGGER(81006393-dc80-4fca-b0be-feab1825904a,5e284781-5898-4501-9016-3005c78c5f07,LastTrigger,File.Result.FullPath)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
  •  test
  • No customer Topic Starter
2009-04-03T20:29:14Z
Thanks for the help, I got it to work now. Slightly modified the one you supplied as below:

{TRIGGER(81006393-dc80-4fca-b0be-feab1825904a,LastTrigger,File.Result.FullPath)}

Just the Job, not the even in the trigger.
Support
2009-04-03T20:30:26Z
Thanks, was a mix there.

hepworthd wrote:

Thanks for the help, I got it to work now. Slightly modified the one you supplied as below:

{TRIGGER(81006393-dc80-4fca-b0be-feab1825904a,LastTrigger,File.Result.FullPath)}

Just the Job, not the even in the trigger.



Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Guest
  •  test
  • No customer Topic Starter
2009-04-03T21:03:26Z
Off topic a bit, but is there a way to gather the current session FTP log to a file, external to the VisualCron? Without having the same issue as before, picking the wrong log for the file in trigger.

thanks
Support
2009-04-04T15:58:25Z
At Connection level you can turn on transfer information (log tab of Connection). The log information is stored in standard output of that FTP Task. The only problem is that this information is captured after the Task is done. Maybe that is not an issue for you if timing with the actual Trigger is not important to you.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top