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.


al355
  •  al355
  • No customer Topic Starter
2014-04-14T16:14:28Z
We would like the ability to exclude the non availability of a folder from List File errors. For example we have a folder

Files/In/

underneath which we have daily folders

Files/In/2014-04-11/
Files/In/2014-04-12/

if there are no files sent to us then there will be no folder

We would like to do a 'List Files' and but if the folder does not exist then an error is thrown at present

[Exception in Task: System.IO.DirectoryNotFoundException: Could not find a part of the path '...\2014-04-14'.

The exclude options are

Unhandled errors
Task times out
No File(s) found

We would appreciate if

'Folder not found'

could be added

Thanks,

Alex
Sponsor
Forum information
Support
2014-04-15T07:20:36Z
In what cases does this Task throw an error? I mean, if you watch the base folder no errors should be thrown at all (as no file is found) - only if the base folder is not missing. Or how are you configuring this now?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
al355
  •  al355
  • No customer Topic Starter
2014-04-15T07:42:33Z
If we look for files in this folder

../<today's date>/

and the folder does not exist (the folder will only exist if there is a file for today available) then the file list task throws an exception that the folder does not exist. We would like to be able to exclude this exception from the On Error because if the folder does not exist then in this case that is not an error but a valid situation.
Support
2014-04-15T07:45:00Z
But how would you define that in the current Task? That you want that specific folder. Are you thinking of using it as source folder or?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
al355
  •  al355
  • No customer Topic Starter
2014-04-15T07:53:18Z
Please have a look at the attached screenshot
al355 attached the following image(s):
Support
2014-04-15T08:14:54Z
I understand. I thought you wanted to use another base folder first.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-04-15T08:25:40Z
Please test this version:

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

We have added "Directory not found" error.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-04-15T11:33:58Z
Did this version work for you?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
al355
  •  al355
  • No customer Topic Starter
2014-04-15T18:06:26Z
Thank you, the new version works fine.
Scroll to Top