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


Brad C.
2018-07-05T17:29:49Z
I am having a problem using a "Remote File Trigger" when it downloads multiple files before triggering. It runs the job for each file downloaded, but the variables available in the trigger only has the last file downloaded.

I setup an FTP site and am watching that for files that are created and made sure that "Put Job in Queue" was selected. If I create 4 files in the FTP site, it will properly download each of them, but when executing the job tasks, they all run as if they are processing the last file downloaded.

Am I misunderstanding how to use this trigger?

Simple job to reproduce:
Trigger - Look for FTP files in a specific path, and choose to download them
Tasks - Email the results of the trigger variables


If it downloads 4 files that match the file mask, but the results of the Trigger seems to only be the last file downloaded.

Using 8.3.5

Thanks,
Brad
Sponsor
Forum information
Brad C.
2018-07-09T12:29:25Z
I thought it would be worth noting that I have tried using the information from both Active and Direct trigger data.

I'm fairly certain that I have tested this in the past, and am wondering if its a defect in 8.3.5?

Thanks,
Brad
Support
2018-07-10T12:02:49Z
Please test again with the following setup:

1. Add remote file trigger
2. add a file write Task with value: {TRIGGER(Active|LastTrigger|RemoteFile.Result.Path)}

With this we cannot reproduce this.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Brad C.
2018-07-10T12:14:59Z
I think my problem had to do with the "LastTrigger" part.. When I set it up using your value, it seemed to work correctly..

I was using:
{TRIGGER(Active|c594d3e8-b831-491c-aa66-15a57fec6a5a|RemoteFile.Result.Name)}

I will re-configure my previous test using the "Last Trigger" and see if I am getting what I was expecting.
Scroll to Top