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


jhutchison14
2011-11-11T19:58:05Z
We have an archive task that takes text files from a network path, puts them in a zip file, and writes that file to an \archive directory in the same network path. It deletes the text files upon completion.

The task runs and does everything it's supposed to do correctly. The problem is that it reports "Access to the path ... is denied" and shows the task, and therefore the job, as failed.

The log file is below, with internal information changed:

11/11/2011 12:54:54 PM Info Task started: Archive Client Text Files (140)
11/11/2011 12:54:56 PM Err Error in CompressZipFolder, ex: System.UnauthorizedAccessException: Access to the path '\\servername\it$\Files\Client\Archive\Client_20111111.zip' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at SevenZip.SevenZipCompressor.CompressFilesEncrypted(Stream archiveStream, Int32 commonRootLength, String password, String[] fileFullNames)
at SevenZip.SevenZipCompressor.CompressFilesEncrypted(String archiveName, Int32 commonRootLength, String password, String[] fileFullNames)
at SevenZip.SevenZipCompressor.CompressFiles(String archiveName, String[] fileFullNames)
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.DEIOCOLCLLOAPDPOCJGIJNMJFBLPAAPKGIBB.LLFHBCFKEPCADBBLGKCGDNAEJENGGDBNDNPG()
11/11/2011 12:54:56 PM Info Task completed: Archive Client Text Files (140)
Sponsor
Forum information
Support
2011-11-11T20:44:28Z
Are you using a Credential - you need that to access the network share.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
jhutchison14
2011-11-11T22:05:12Z
Originally Posted by: Support 

Are you using a Credential - you need that to access the network share.


Thanks for the quick response.

Ah yes, I forgot to mention this. We setup the task with administrator credentials to rule that out. In addition, all folders and files involved were checked to make sure there weren't any deny permissions or anything strange like that.
Support
2011-11-11T22:32:14Z
Right now you are using a "hidden" folder (it$) - could you try using a "normal" UNC path?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
jhutchison14
2011-11-14T14:09:49Z
We just tried that, but we get the same behavior when the task is run.
Support
2011-11-14T20:59:06Z
Strange thing about the error is that VisualCron is trying to delete the archive file. Is it already existing? Have you tried a new file?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
jhutchison14
2011-11-14T21:11:06Z
Originally Posted by: Support 

Strange thing about the error is that VisualCron is trying to delete the archive file. Is it already existing? Have you tried a new file?



No, it shouldn't be trying to delete any files except for the .txt files that go into the archive. Each archive uses a date variable to create the zip file, so there should never be the same filename. We have tried a new file in a new directory, with an without using the date variables in the filename. The task completes but reports failure each time.
Support
2011-11-14T21:12:59Z
But is the archive created?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
jhutchison14
2011-11-14T21:18:02Z
Originally Posted by: Support 

But is the archive created?



Not quite sure what you're asking. The archive does not exist before the task is run, as the task is only run daily. However, when the task runs, the archive is created successfully with all files inside.
Support
2011-11-14T21:24:16Z
1. Are you using "Delete source file after"?
2. do you have more than one "archive item" in the Compress Task?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
jhutchison14
2011-11-14T21:33:43Z
Originally Posted by: Support 

1. Are you using "Delete source file after"?
2. do you have more than one "archive item" in the Compress Task?



1. Yes
2. Yes, there are a total of 2. The first is *.txt and the second is ftp.log
Support
2011-11-14T21:35:28Z
Could you please test this version: http://neteject.com/down...Cron/VisualCron6.0.4.exe 

We have fixed a Credential error that affects the second archive item. Hopefully this resolves the issue. Please get back to us with feedback.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
jhutchison14
2011-11-14T21:51:44Z
Originally Posted by: Support 

Could you please test this version: http://neteject.com/down...Cron/VisualCron6.0.4.exe 

We have fixed a Credential error that affects the second archive item. Hopefully this resolves the issue. Please get back to us with feedback.[/quot

Thanks. That fixed the problem. The task reports sucess after running.

Support
2011-11-14T21:52:53Z
Great, thanks for the feedback!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top