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.


dsjere
2015-07-08T09:23:53Z
Hello.

I posted a topic about trigger values concerning services wich seems to have disapeared.

I set up a job that triggers on a service and if the status Changes on that service.

In the job there is a task that emails me the name of the Active job, the displayname of the serveice and the status of the service, using the following text and variables:

{TRIGGER(Active|LastTrigger|Job.Name)} {DATEFORMAT(yyyy-MM-dd HH:mm)}
Server: {COMPUTER(Name)}
Service: {TRIGGER(Active|LastTrigger|Service.Result.DisplayName)}
Changed to state {TRIGGER(Active|LastTrigger|Service.Result.State)}

This works on the Microsoft print spooler service for example, but not on the Microsoft SharePoint Workspace Audit Service.
I get the following result on the failing service:

TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string: Service Monitor 2015-07-08 09:32
Server: E76A0086
Service: {TRIGGER(Active|LastTrigger|Service.Result.DisplayName)}
Changed to state {TRIGGER(Active|LastTrigger|Service.Result.State)}

There seems to be differences in the setup of the different services but I can't see what it is.

Grateful for help.

Best regards

/Jesse
Sponsor
Forum information
Support
2015-07-08T10:00:40Z
Yes, unfortunatly we had a db issue yesterday where we partly could restore this database from yesterday.

If you just use Variable: {TRIGGER(Active|LastTrigger|Job.Name)} {DATEFORMAT(yyyy-MM-dd HH:mm)} - do you still get the problems then?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dsjere
2015-07-08T11:30:21Z
Then I get:

No Trigger specified (perhaps Job is not created yet?) 2015-07-08 13:29
Support
2015-07-08T11:33:12Z
Did you really start the Job through the Trigger or did you run it manually?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
dsjere
2015-07-08T11:35:13Z
Trough the trigger. I stopped the service and the trigger fired.
Support
2015-07-08T11:55:12Z
It sounds like you try to access the Variable in another context than when it is executing. For example, like you try to use it in the Variables browser or something like that.

Where do you use this Variable exactly?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top