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


Beylie
2015-03-17T09:49:47Z
We we're polling a folder with almost 12,000 files to delete some items. The following error is returned:

Exception in Task: System.IO.IOException: The program issued a command but the command length is incorrect.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption, Boolean checkHost)
at System.IO.Directory.InternalGetFiles(String path, String searchPattern, SearchOption searchOption)
at VisualCronService.SearchAPI.GBOJMALLCMLMLNHFKFPIIPCCIDNIICBOHHBM(FileFilterClass , VariableReplacerClass ) in C:\sourcefiles\code\VisualCronService\Jobs\FileFilter\SearchAPI.vb:line 207
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.LGEKMJEBHMPHOPBNFEILIMOCHGEDBBMJKKAL.FBCJBHDLIFGNJMDPLNNPNMFPDKJJBDFDEIIB() in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\File\clsProcessTaskFileDelete.vb:line 39

We could get it to work by deleting 7,000 of the files. Task then worked without an error. Please advise.
Sponsor
Forum information
Beylie
2015-03-17T13:00:34Z
Just picked up another job that fails for the same reason. 30,000+ files in the folder.

EDIT

In addition to this, if a file is locked, the following error is generated:

Exception in Task: System.ComponentModel.Win32Exception (0x80004005): Error 183 deleting file '\\npwsybc2\C$\Windows\Temp\FXSAPIDebugLogFile.txt': Cannot create a file when that file already exists.
at ZetaLongPaths.ZlpIOHelper.DeleteFile(String filePath)
at OBOKIIHBDBPMCFALPGECCIFHCDJPEDKODDGK.LGEKMJEBHMPHOPBNFEILIMOCHGEDBBMJKKAL.FBCJBHDLIFGNJMDPLNNPNMFPDKJJBDFDEIIB() in C:\sourcefiles\code\VisualCronService\Jobs\TaskProcesses\File\clsProcessTaskFileDelete.vb:line 60

Shouldn't it state that the file is locked or in use instead of "Cannot create a file when that file already exists."?
Support
2015-03-17T15:22:06Z
It does not make much sense. Much be something else like permissions of a certain file or folder. Did a quick files and deleted 50.000+ files in a folder.

1. what happens if you copy all the files to a new folder and then try to delete that in VisualCron?
2. what happens if you mannually delete the file FXSAPIDebugLogFile.txt?
3. if you were able to delete file 2 what happens if you re-run it?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Beylie
2015-03-18T11:05:07Z
The issue persists if I move the files to another folder.

I've picked up now that the Test option only works intermittently. Eg. Click "Show filtered files", no files returned, click it again, files are returned, click again, files, returned, click again, no files returned etc.

Sometimes it does not return files for 10x in a row. Sounds like a timeout or buffer issue. I've asked our networks guys to check and they're not seeing any network congestion.

Using Explorer I can browse the remote folder everytime without issue.
Support
2015-03-18T13:57:32Z
What about our questions?

And:

4. can you delete that new folder (with all files) manually without a problem?

I think the problem is not the quantity but some of the files. Please try to split the files in two until you can reproduce it on a lesser amount. When you can do that please zip the files. How large is this zip?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top