Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I've read many posts related to this issue, but anyone resolves my problem.
Untill now we used to reload reports using Windows' scheduled tasks, but we've decided to use Qlikview Server Reload from QMC. We've configured six daily reloads, and there are two tasks which always fail with the following error:
(2016-07-05 13:26:24) Error: The sourcedocument failed to save.. Exception=System.IO.IOException: The process cannot access the file 'XXXXXXXXX.qvw' because it is being used by another process.
(2016-07-05 13:26:24) Error: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
(2016-07-05 13:26:24) Error: at System.IO.File.InternalDelete(String path, Boolean checkHost)
(2016-07-05 13:26:24) Error: at QVBWrapper.Document.ReplaceSourceFile(ILogBucket logBucket, String replaceFromFileName, String replaceToFilename)
(2016-07-05 13:26:24) Error: at QVBWrapper.Document.Save(ILogBucket i_LogBucket, String i_SaveAsFileName)
(2016-07-05 13:26:24) Information: Closing the document.
(2016-07-05 13:26:25) Information: Closed the QlikView Engine successfully. ProcessID=36808
(2016-07-05 13:26:25) Error: The task "XXXXXXXX.qvw" failed. Exception:
(2016-07-05 13:26:25) Error: QDSMain.Exceptions.DistributionFailedException: Distribute failed with errors to follow. ---> QDSMain.Exceptions.ReloadFailedException: Reload failed ---> QDSMain.Exceptions.LogBucketErrorException: The sourcedocument failed to save.. Exception=System.IO.IOException: The process cannot access the file 'XXXXXXXX.qvw' because it is being used by another process.
(2016-07-05 13:26:25) Error: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
(2016-07-05 13:26:25) Error: at System.IO.File.InternalDelete(String path, Boolean checkHost)
(2016-07-05 13:26:25) Error: at QVBWrapper.Document.ReplaceSourceFile(ILogBucket logBucket, String replaceFromFileName, String replaceToFilename)
(2016-07-05 13:26:25) Error: at QVBWrapper.Document.Save(ILogBucket i_LogBucket, String i_SaveAsFileName)
(2016-07-05 13:26:25) Error: at QDSMain.ReloadTask.Reload(String fileName, TaskResult taskResult, String sectionAccessUserName, String sectionAccessPassword, eReloadOptions reloadOption, String variableName, String variableValue, Boolean moniterCpuUsage)
(2016-07-05 13:26:25) Error: --- End of inner exception stack trace ---
(2016-07-05 13:26:25) Error: at QDSMain.ReloadTask.Reload(String fileName, TaskResult taskResult, String sectionAccessUserName, String sectionAccessPassword, eReloadOptions reloadOption, String variableName, String variableValue, Boolean moniterCpuUsage)
(2016-07-05 13:26:25) Error: at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)
(2016-07-05 13:26:25) Error: --- End of inner exception stack trace ---
(2016-07-05 13:26:25) Error: at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult)
(2016-07-05 13:26:25) Error: at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)
(2016-07-05 13:26:25) Information: Task Execute Duration=00:08:21.5389917
(2016-07-05 13:26:25) Information: TaskResult.status=Finished
(2016-07-05 13:26:25) Information: Notifying all triggers of new state:FinishedWithErrors
(2016-07-05 13:26:25) Information: Notifying all triggers of new state:FinishedWithErrors - completed
(2016-07-05 13:26:25) Information: Saving Task Result
Why some reports reload successfully and others not?
Thanks
If feel somebody has open the document at the reload time or if you have not disabled the windows task ...those task might have opened the document because of which your reload is getting failed
Thanks by your reply Avinash.
Nobody can access to those documents, I'm the only user who can view them and I've not opened them.
I've checked to disable Window's scheduled tasks without success .
Cheers
Did you deleted the Windows Scheduled task for reloading. if not then that is the issue.
Delete the task then try to reload in the QMC.
Hi
I've deleted all scheduled tasks but the issue is not solved. Today the documents have been reloaded again, 4 of them correctly and the two which I mentioned have failed again.
Cheers
Hi,
Goto Task Manager and kill any qvb process are running. Please delete the process where no task are running.
Might be it got locked due to some reason.