Community forum

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


twagner
2014-05-07T16:32:45Z
I have a simple trigger that fires on the creation of a PDF being saved to a network folder or any of the subfolders below the root folder.
It seems to fire a random number of times, sometimes once but most times 2 or 3 for each PDF that is added to the folder.

'Run after the trigger has been triggered' is checked and greyed out and set to 1.

'File/Folder watch type' is set to created and 'notify filters' are File name checked.

'Trigger after file has been released' is checked

'On error reconnect attempts' is set to 1, I would like it to be 0 but that does not seem to be a valid option.

There are two task the first one is to list files for any files that have been created in the last two minutes.

I am capturing the file name as an output variable from the list file task and using it to send an email with the filename in the subject line in the second task.

So I am getting multiple emails for the same file all within a minute or two.

Running version 7.15

Any ideas on how to fix this?
Sponsor
Forum information
Support
2014-05-07T16:54:18Z
Just to verify where the problem is. What if you restart the VisualCron service and then try again. Do you still get duplicate Triggers?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
twagner
2014-05-07T17:16:34Z
I just restarted the service and it generated 3 identical emails on the next file created all within a minute or so.
Support
2014-05-07T17:18:48Z
Ok, turn on extended debugging in server settings. Wait until next time it triggers. After that, send the file log_serverDATE.txt to support@visualcron.com along with the name of the file.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
twagner
2014-05-07T18:37:40Z
twagner
2014-05-07T18:38:35Z
PPS_1418_01_PPSBL001.pdf is the filename.
Support
2014-05-08T06:57:51Z
I looked at the log file but I do not see multiple triggering. If you look at Job history for that Job - can you see it has been executed many times in a row?

Also, are you really watching a Samba folder - it seems like you have polling enabled on the File Trigger?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
twagner
2014-05-08T13:45:43Z
Its not a Samba folder, how can I send you the whole config for the job?

I am wondering if it is the email task in the job that is running multiple times?

I think it triggers the first time and can't get the name of the file for some reason so it triggers again because of the 'on error reconnect attempt' setting set to 1 by default.
twagner attached the following image(s):
Support
2014-05-08T13:52:03Z
Please attach a screenshot of the File Trigger->File tab.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-05-08T14:11:30Z
Originally Posted by: twagner 


I think it triggers the first time and can't get the name of the file for some reason so it triggers again because of the 'on error reconnect attempt' setting set to 1 by default.



It does not work that way. When it triggers it gets the name automatically.

Try creating a new Job with a new Trigger (turn off other Jobs) and test. Also, did you check the Job history log - there you can see how many times it executes.


Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
twagner
2014-05-08T14:16:19Z
As you can see that is the way it is working, it cannot get the file name on the first trigger even though it is triggering on the file that it cannot get the name of.

I will try creating a new job.
twagner attached the following image(s):
Support
2014-05-08T14:18:25Z
I think there is some misunderstanding.

1. Why do you need the list files Tasks?
2. what content do you want/have in the subject and body of email
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
twagner
2014-05-08T14:22:15Z
I am using the list files to get the name of the file that has been added to the folder and using that variable in the subject line of the email.

Is there a better way to do this?

Support
2014-05-08T14:23:31Z
Yes, these are produced in Variables. Please check the File Trigger tutorial here:

http://www.visualcron.com/Tutorials.aspx 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
twagner
2014-05-08T14:43:10Z
Oh Wow. That is much easier. I see I was basically getting the same variable twice.

Thank you!
Support
2014-05-08T14:48:06Z
Great - thanks!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top