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


Coconut01
2017-09-06T08:32:03Z
Hi,

I have a job that monitors an email account and when a certain email arrives if saves the attachment onto a server. The job works fin but i'm finding the email trigger keeps deactivating itself. I've found this in the log file:

06/09/2017 05:05:14 Debug Retrieving mail: i= 29
06/09/2017 05:05:14 Debug Retrieved mail: UID= 189
06/09/2017 05:05:14 Debug Mail Trigger: Id: 189 did already exist in checkedIds.
06/09/2017 05:05:15 Debug oClient.Quit
06/09/2017 05:05:15 Err Error occured: Error in Mail Trigger (3), ex: System.NullReferenceException: Object reference not set to an instance of an object.
at EAGetMail.MailClient.$=(Byte[] 4], Boolean 4])
at EAGetMail.MailClient.Quit()
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.KEMLEDMDNELBHFFOFDEDHAAKAHOPFGNIJMEI.MCJFOMFKCEOBMBPKDAOADFMPPKNLHIJFCJDG(Object ) in C:\sourcefiles\code\VisualCronService\Triggers\Events\Mail\clsEventMail.vb:line 536, oClient null = False - exiting/deactivating Trigger (retries left: 0)
06/09/2017 05:05:15 Debug Mail trigger event has been ended, trigger: email monitor for sms.knh
06/09/2017 05:05:15 Debug Mail trigger event has been ended, trigger: email monitor for sms.knh
06/09/2017 05:05:15 Err Trigger error: Error in Mail Trigger (3), ex: System.NullReferenceException: Object reference not set to an instance of an object.
at EAGetMail.MailClient.$=(Byte[] 4], Boolean 4])
at EAGetMail.MailClient.Quit()
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.KEMLEDMDNELBHFFOFDEDHAAKAHOPFGNIJMEI.MCJFOMFKCEOBMBPKDAOADFMPPKNLHIJFCJDG(Object ) in C:\sourcefiles\code\VisualCronService\Triggers\Events\Mail\clsEventMail.vb:line 536, oClient null = False
06/09/2017 05:05:15 Err Trigger error: Error in Mail Trigger (3), ex: System.NullReferenceException: Object reference not set to an instance of an object.
at EAGetMail.MailClient.$=(Byte[] 4], Boolean 4])
at EAGetMail.MailClient.Quit()
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.KEMLEDMDNELBHFFOFDEDHAAKAHOPFGNIJMEI.MCJFOMFKCEOBMBPKDAOADFMPPKNLHIJFCJDG(Object ) in C:\sourcefiles\code\VisualCronService\Triggers\Events\Mail\clsEventMail.vb:line 536, oClient null = False
06/09/2017 05:05:15 Debug Trigger was expired and inactivated


Can anyone advise what's happening?

Thanks
Sponsor
Forum information
MRomer
2017-09-06T14:53:55Z
My solution for that situation was to create another job that runs every 15 minutes. It has several Job/Task control tasks that activate the triggers on the email jobs.
Coconut01
2017-09-07T06:56:26Z
Hi,

I'm using version 5.7.3

I've created a new job and added a visualcron trigger to monitor if a "Trigger expired (eleted or inactivated), but it won't let me specify which trigger i want to monitor.

Capture.PNG
Coconut01
2017-09-07T09:16:24Z
update

I've now added a task of type Job/task control but it doesn't have an option to reactivate a trigger only a job or a task. If i inactivate the job it reactivates itself and re-enables the trigger so that could be a workaround. I just need some way of telling it which trigger to monitor
Support
2017-09-07T20:00:07Z
Originally Posted by: Coconut01 

Hi,

I'm using version 5.7.3

I've created a new job and added a visualcron trigger to monitor if a "Trigger expired (eleted or inactivated), but it won't let me specify which trigger i want to monitor.

Capture.PNG



Please. We do not support that version anymore.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2017-09-07T20:01:31Z
Originally Posted by: Coconut01 

update

I've now added a task of type Job/task control but it doesn't have an option to reactivate a trigger only a job or a task. If i inactivate the job it reactivates itself and re-enables the trigger so that could be a workaround. I just need some way of telling it which trigger to monitor



There is a Trigger of type VisualCron which you could create together with an Email Task. You can check for Trigger deactivations and use the Variable:

{TRIGGER(Active|LastTrigger|VisualCron.Result.Message)}
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Jon Tofte-Hansen
2017-11-15T10:46:33Z
I experience the same problem on 8.2.9: after creating two email triggers (one last week and one yesterday) they are inactivated by the system yesterday evening - probably because of connection issues. "Expiration enabled" is not ticked.

Log example("C:\Program Files (x86)\VisualCron\log\log_server20171114.txt"):

Quote:

11/14/2017 7:40:15 PM Debug ReceiveMail->hashcode: 34949221 (True), Job: *** Trigger: Email trigger
11/14/2017 7:40:15 PM Debug ReceiveMail->Mail poll skipped because it was busy receiving email ('Email trigger'), hashcode: 34949221
11/14/2017 7:40:18 PM Err ContinueRetryConnect->Error occured: ReceiveMail->Error in Mail Trigger (1), ex: * OK Waiting for authentication process to respond..
A0862 NO [UNAVAILABLE] Temporary authentication failure. [mailproxy3:2017-11-14 18:40:18]
- exiting/deactivating Trigger (retries left: 0)
11/14/2017 7:40:18 PM Err Trigger error: ReceiveMail->Error in Mail Trigger (1), ex: * OK Waiting for authentication process to respond..
A0862 NO [UNAVAILABLE] Temporary authentication failure. [mailproxy3:2017-11-14 18:40:18]

11/14/2017 7:40:18 PM Debug Trigger was expired and inactivated

Scroll to Top