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


keithdavis
2010-12-06T21:53:09Z
At some point, two of my jobs that run a bunch of backup task (command line, just runs robocopy) began failing to run the Tasks. I'm going to attach screen shots, but this is HUGE problem. I had no idea they were not running, and I need a file that I cannot get back due to this failure. You can see that one of the tasks has a current Last Run date, but that is because I ran it manually. What is failing that I don't know about?

keithdavis attached the following image(s):
Sponsor
Forum information
keithdavis
2010-12-06T22:08:45Z
The problem is the Create Folder task. If I delete it, the Job runs fine. With it, it does nothing and then exits.
keithdavis
2010-12-06T22:23:11Z
Ok, the Create Folder task has a Condition of if that folder does not exist. That Condition is ONLY applied to that task. Why does it stop ALL tasks?
keithdavis
2010-12-06T22:25:20Z
Ok, I found the problem. Ugh. I don't understand the condition defaults very well.
keithdavis
2010-12-06T22:27:19Z
In fact, I don't know how to make these conditions work. I need it to run the Create Folder task ONLY if the folder does not exist, and then regardless, run the rest of the Job.
Support
2010-12-09T11:30:40Z
keithdavis wrote:

In fact, I don't know how to make these conditions work. I need it to run the Create Folder task ONLY if the folder does not exist, and then regardless, run the rest of the Job.



Create a Folder Condition and set Folder exists to false. Use default settings in Condition. Check the Condition set in the Job.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2010-12-09T14:54:11Z
Support wrote:

Create a Folder Condition and set Folder exists to false. Use default settings in Condition. Check the Condition set in the Job.



That's what I had before. I only want the Create Folder task to not run if the folder exists, not the whole the job. If the Create Folder task runs and the folder exists, it reports and error.
Support
2010-12-09T14:55:18Z
Then you can just open the Task and set the Condition set on the Job.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2010-12-09T14:59:09Z
Ok, so I don't know how to make that work, but I did figure out that all I need to do is turn that error off (directory exists.)
Support
2010-12-09T15:34:57Z
keithdavis wrote:

Ok, so I don't know how to make that work, but I did figure out that all I need to do is turn that error off (directory exists.)



Conditions can exist both on Job and Task level. They are separate and have the Condition tab in both Job and Task. Perhaps I misunderstood you but you can open the Task and check the Condition there (uncheck it in Job).

When doing this it will by default exit the Job at that moment (before running the Task). You can tell it to go to next Task.

But as you say, another way is to ignore the actual error.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top