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


beechc
2013-01-31T19:02:34Z
I have successfully set up a simple series of tasks based on the Email Trigger functionality. In a nutshell to download an attachment in the trigger email, and move it from the download location to another local location while renaming the file. The renaming is using a couple of User Variable to parse out content of the body of the email and rename the attachment based on these values. It works flawlessly if there is one or two emails arriving to the watched account, and meeting the parameters set in the trigger.

However, when there are multiple emails (>2) (3, 4 or more) received within the same sweep of the mail server (currently every 30 seconds), VC appears to get confused with the multiple triggers, and is failing to complete all of the tasks, or is confusing tasks which are running (naming the file using the Mail Message ID of one of the simultaneously executed tasks).

I have played with adding delays to the processes, changing the sweep time to faster or slower, etc. I do have the "Put Job in queue (does not skip job...)) option selected which should allow one trigger to complete before commencing the other one.

Not sure where else to look. Any guidance would be appreciated.

Thanks
Chris

Sponsor
Forum information
beechc
2013-02-13T19:00:02Z
Any thoughts on this scenario. Trying to think of a work around in the mean time.
Chris
Support
2013-02-14T08:04:12Z
Using POP3 or IMAP? Do you have any errors in the VisualCron log file?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
beechc
2013-02-19T20:30:30Z
The only error I see in the log is Exit code 77777 'Exception in Task: No file(s) copied' on the copy task which renames the files based on the user variables parsed out of the email body.

It is configured as IMAP. The email portion of it seems to work great. The subsequent tasks (specifically the copy and rename are the issue).
Support
2013-02-20T15:17:08Z
Ok, by default this Task generates an error. To override it you uncheck that error in the "On error" tab of the Task.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
beechc
2013-02-21T19:44:15Z
I have modified the settings in the "On Error" tab to continue to the next step if the file fails to copy; which really isn't solving anything. The issue remains that if there is a file to copy why does it fail to copy? The file is clearly present in the download folder, and remains in the folder after the failure when it should copy as the previous trigger had done.

Is it attempting to download multiple emails simultaneously based on a single trigger (receipt of an email)?
Support
2013-02-21T21:50:11Z
Ok, you should not modify it to Continue. You should uncheck the exception in the check box list that says "No files copied/found"
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
beechc
2013-03-01T15:35:55Z
Good Morning,

I continue to struggle to understand how the email trigger is functioning and why some (not all) of the tasks associated to the trigger fail. I have tried changing my approach and simplifying what is being done to try to isolate where my issue is, and I find it failing at the most basic level.

My revised configuration consists of a single task acting on a trigger. I am happy to provide the configuration if someone would like to review it. It is very simple as described below:

1. Email Trigger watches a specific email account and downloads the attachments of any (all) emails it receives.

2. The attachments are downloaded to a folder and arrive in a sub-directory named by the email ID \temp\1234\attachments\*

3. A 'Write file' task is then run using the following {TRIGGER(4d706949-d4fa-43ce-89b2-81bd77177eac|c72df5ea-c269-4b44-81c7-4dea1bd954f2|Mail.Result.Mail.MessageId)} simply writing the '1234' email ID to a file within the download \1234 folder.

4. END


The Good
Every email received by the account successfully downloads. The email ID directory is created, and the attachment saved.

If a single email is present when the trigger is invoked the 'Write File' task completes with no issue.


The Bad
If more than one email is queued on the server when the trigger is invoked. The email ID directory is created and the attachment saved for each and every email (good). 5 emails = 5 folders and 5 attachments. 10 emails = 10 folders and 10 attachments.
The issue is the 'Write File' task. The general behaviour will be that the first file is successfully written, the second is not written, and the subsequent ones will mostly be written.

A case example:
10 emails staged to the server.
Trigger is invoked.
10 folders created.
Write File completed for email 1,3,4,5,6,8,9,10
No Write File occurring for email 2 and 7


In trying to understand the Trigger functionality, I would assume that each email is a trigger and and event unto itself. In my scenario there are 10 emails, and the process is triggered 10 times. one for each email received. Am I correct in this assumption?

I see nothing in the logs indicating why this is failing, and can't get past this hurdle. The end game is that I need to retrieve content from the email itself but if I can't rely on the basic behaviour, the more complex has no hope of succeeding.

Dying to figure this out. I am now running the release 6.1.9 having hoped it may have resolved something.

Chris




Support
2013-03-01T15:45:58Z
First, change to this Variable: {TRIGGER(Active|LastTrigger|Mail.Result.Mail.MessageId)}

Second, make sure you have option "Put Job in queue" checked in main settings of Job.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
beechc
2013-03-01T19:25:50Z
Solved! I couldn't be happier.
Thank you
Support
2013-03-06T08:29:20Z
Thanks for the update!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top