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


Praxis Consulting
2014-03-20T00:22:28Z
I'm using VC 7.1.4. I've been trying to set up a notification that uses HTTP to push the fact the task ran to a REST endpoint, by sending it the job name and the task name. I've got it set to run on complete for the job, as well as on complete of each task in the job.

The notification is able to access the job name, but not the task name. The endpoint receives task name as null.

I then set up a popup notification to make it clearer. It can't access task either. Here's the body of the popup notification:

Quote:

Test of notification. Job is {JOB(Active,Name)} Fired from Task {TASK(PrevTask,Name)}



And here's the output inside the popup:

Quote:

TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string: Test of notification. Job is Test Logging Fired from Task {TASK(PrevTask,Name)}



What's going on? I've tried every possibility I could think of to get that task name, including {TASK(PrevTask|Name)}, {TASK(Active,Name)}, {TASK(Active|Name)}, and on a whim, even {JOB(Active,Task,Name)}. Nothing works.

To recap, this notification is run at:
On Task start
On Task complete
On Job complete
In all cases, it passes the job name correctly, but fails to pass the task name.

Thanks
Sponsor
Forum information
bbusse
2014-03-20T02:47:49Z
The popup task appears to also show the Job and Task name.... and the task name is also blank regardless. I tried this with many previous versions between 7.0.1 and 7.1.4 and early versions crashed trying to do a popup task and now 7.1.3 and 7.1.4 don't crash, but they don't show the task.

I had mine running the notification on success or completion of the task. See Screenshot. should be able to reproduce.

bbusse attached the following image(s):
Praxis Consulting
2014-03-20T18:25:50Z
Additional info:

We just tested with an email notification, and that does work.

So, accessing the Task in notifications:
Does NOT work in:
HTTP
Popups

DOES work in:
Email

Support
2014-03-25T07:59:21Z
Thanks for the report. We will look into this ASAP.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-03-26T11:51:13Z
Support
2014-04-02T09:40:22Z
Where you able to confirm this?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
bbusse
2014-04-02T11:35:32Z
Originally Posted by: Support 

Where you able to confirm this?



Version 7.1.5 from yesterday (whatever build # was most recent for testing something else).

I don't know if i noticed this previously or not, but when I go to create a new notification, Interactivity-->PopUp, and do nothing but un-click the box for playing a sound and type the word "hello" in the area for "Popup message" and click the 'Preview Popup..' button, it crashes with this error:


System.NullReferenceException: Object reference not set to an instance of an object.
   at UCTaskPopup.HFNIAJGALOBJCKNBAJOAKFADMLPIEBOGBCIN(Object  , EventArgs  ) in C:\sourcefiles\code\VisualCron\Tasks\Interactivity\Popup\UCTaskPopup.vb:line 211
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



I did, however, test the popup notification 'without' clicking preview, and it works just fine. There's just something wrong with the preview button.

See screenshot.
i have a job named "Test Job - Popup Notifications'
I have one task named "List Files in C:\Temp'
Flow is to run the popup notification called "Notification: Popup for Administrators" upon success of the task.

Brian
bbusse attached the following image(s):
Support
2014-04-02T14:19:35Z
Originally Posted by: bbusse 

Originally Posted by: Support 

Where you able to confirm this?



Version 7.1.5 from yesterday (whatever build # was most recent for testing something else).

I don't know if i noticed this previously or not, but when I go to create a new notification, Interactivity-->PopUp, and do nothing but un-click the box for playing a sound and type the word "hello" in the area for "Popup message" and click the 'Preview Popup..' button, it crashes with this error:


System.NullReferenceException: Object reference not set to an instance of an object.
   at UCTaskPopup.HFNIAJGALOBJCKNBAJOAKFADMLPIEBOGBCIN(Object  , EventArgs  ) in C:\sourcefiles\code\VisualCron\Tasks\Interactivity\Popup\UCTaskPopup.vb:line 211
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



I did, however, test the popup notification 'without' clicking preview, and it works just fine. There's just something wrong with the preview button.

See screenshot.
i have a job named "Test Job - Popup Notifications'
I have one task named "List Files in C:\Temp'
Flow is to run the popup notification called "Notification: Popup for Administrators" upon success of the task.

Brian



Thanks, we fixed this issue here:

http://www.visualcron.co....aspx?g=posts&t=3937 


Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
bbusse
2014-04-02T17:37:01Z
Perfect. I just tested and the Preview Popup button now works as expected.

Brian
Support
2014-04-02T19:46:13Z
Great, thanks!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top