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.


Greg Moore
2017-02-01T17:19:29Z
I have setup a SQL connection that lets me log task progress.

I have it installed on several machines (all running 8.2.3) and it works beautifully. When the task completes, it logs either the OUTPUT or STDERR to my database and I can do everything I want.

EXCEPT in this one case. the task is a copy files task. In this case it's failing because the file is locked for use (this will happen from time to time and is not the issue)

But logging never occurs. SQL Profiler (SQL Server in user here) shows that no call to my SQL is ever made.

Drilling down to the variables, if I look at {TASK(Active,StdErr)} I get
TranslateVariables -> Unhandled error: Object reference not set to an instance of an object. on string {TASK(do88f4b0-13e6-4733-bfcb-63e7a4c59c75, StdErr)]

But the task log does properly show the error. Please advise.
Thanks.

(unfortunately this is a client machine behind a firewall and VM so I can't cut/paste so any typos are mine.
Sponsor
Forum information
Support
2017-02-02T07:56:45Z
Hi,

can you please export the Job in File->Export and send to support@visualcron.com?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
mikewhitton
2017-02-06T00:09:18Z
Hi Henrik,

I have seen the same issue with StdErr, when in Variables from the main screen I get the error: "Unhandled error: Object reference not set to an instance of an object" in the preview however when inserting the variable within an email task for example the content is displayed.

Hope that helps.

Mike
Support
2017-02-06T11:52:41Z
I thought the "logging" was done in Task but it seems you have a Notification which you not exported. When using Variables in Notifications you need to use PrevTask (as Notifications inherits from Tasks). So, change to this:

{TASK(PrevTask,StdErr)}

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top