QDSMain.Exceptions.DistributionFailedException: Distribute failed with errors to follow. ---> QDSMain.Exceptions.WritePermissionkException: Failed to get write permission for file: D:\QLIKVIEWLIVE\Stoplights\Stoplights.qvw ---> System.IO.IOException: The process cannot access the file 'D:\QLIKVIEWLIVE\Stoplights\Stoplights.qvw' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
10/18/2016 23:33:04.4428335InformationNotifying all triggers of new state:FinishedWithErrors
10/18/2016 23:33:04.4428335InformationNotifying all triggers of new state:FinishedWithErrors - completed
10/18/2016 23:33:04.4448337InformationSaving Task Result
It's been happening time to time for a while, we don't know what might be the issue that triggers this error.
I've been searching for similar solutions to this errors, and it has been proposed that the issue might be the Antivirus, but in this case the error is recurrent during, normally 6 hours (because it happens at night), until we do a manually reload through the desktop version and the systems recovers by itself until it happens again, and usually the antivirus scans takes a lot less time
Can anybody know if there is anything what can be done about this?
There are big differences even when it finishes successfully, from ~150 secs to ~40 secs, which leads me to think that there is some background process (backup, sync, security?) which is indeed happening during reloads. Anyway, antivirus must have all QlikView extensions disabled (not just QVW, but also PGO, SHARED, META, QVD, INI and CONFIG in Qlik folders).
You should check then the Windows Event Viewer and see what else is happening in the OS level to get the files locked.
Of course it could be a bug, but even if it was, it is really hard to find out because the failures are not consistent.