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


ErikC
  •  ErikC
  • Free support Topic Starter
2010-05-14T15:38:40Z
I'm testing 5.5.9(2) at the moment and have an issue with a folder condition on a delete folder task:

My job is a looping job (huh? Yes, made one my own with conditions).
It loops for every directory in a folder and uses every time in the job the next found folder.
Sometimes I'm making a temporary folder and I copy some files in there and this folder should be deleted when it is present (condition).
The first time I create a temp folder, copy files to it, delete it, it all goes fine.
The second time I do not make a temp folder, do not copy files, but the temporary directory name is still the same as my 1st run, so the dir is gone. It was deleted the 1rst run. The folder condition to check if the folder is there should response with a false result. It gives me an error:

Error in JobProcess (TaskConditionCheck), ex: Object reference not set to an instance of an object.
Exception in Task: Could not find a part of the path 'F:\Jobs\ElektronischePostbus\toProcess\'.


I will explain the job some more:

Task
1: prints current workday to the screen
2: creates a dirlist and puts it in a file
3: disables the 2nd task at 1st run
4: looks in the file from task 2 an gets the top most folder name
5: uses a text lookup table to match the foldername from task 4 and returns (if found) a new folder name
6: if task 5 gives a folder name, it writes a tempfilename to the screen (used variable for this)
7: copies files from the folder (task 4) and copies it to a new path within the tempfoldername from task 6
8: uploads the files within the tempfolder
9: if the tempfolder is found (condition) delete it
10: modify the file from task 2: remove directoryname from task 4
11: if task 4 has output rerun the job
12: enable task 2 again

Task 9 is failing here. It deletes the folder containing the tempfolders.

Hope it make sense..

😮 😮 BTW this is my 500st post. Celebration, lets have some pie!!😮 😮


Regards
Erik
ErikC attached the following image(s):

Uses Visualcron since 2006.
Sponsor
Forum information
Support
2010-05-19T12:38:53Z
Do you use any Variable for the Condition on Task 9? Perhaps you could export that Condition set and send to us?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Free support Topic Starter
2010-05-19T12:46:59Z
Condition for task 9
Condition type: Folder
Active: Checked
Folder Path: F:\Jobs\ElektronischePostbus\toProcess\{STRING(Trim|{TASK(bc4f22b8-6af6-4544-9b04-b34edb236487,StdOut)})}
Folder Exist: True

Task 9
Task Type: Folder delete
Folder path: F:\Jobs\ElektronischePostbus\toProcess\{STRING(Trim|{TASK(bc4f22b8-6af6-4544-9b04-b34edb236487,StdOut)})}
Recursive: Checked

By exporting, you mean the conditions.xml from the backup file?
Uses Visualcron since 2006.
Support
2010-05-19T12:55:57Z
So, this Condition alone fails if you just run that Task?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2010-05-19T13:28:33Z
We managed to reproduce this and have fixed this. Thank you for the report.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Free support Topic Starter
2010-05-19T15:39:52Z
Thanks!

Regards
Erik
Uses Visualcron since 2006.
Support
2010-05-19T15:58:25Z
Please test uploaded 5.6.0.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
ErikC
  •  ErikC
  • Free support Topic Starter
2010-05-20T09:25:45Z
Hi Henrik,

I do not receive an error anymore with this version. Thanks.
It does what it's supposed to do.

Regards,
Erik
Uses Visualcron since 2006.
Scroll to Top