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:
Task1: 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
Edited by user
2010-05-14T15:51:30Z
|
Reason: Not specified
ErikC attached the following image(s):
Uses Visualcron since 2006.