A reload task in QlikView fails with the following error in the task log:
Error The sourcedocument failed to save.. Exception=System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. || at QlikView.Doc.SaveAs(String _FileName, Int16 _Format) || at QVBWrapper.Document.Save(ILogBucket i_LogBucket, String i_SaveAsFileName)
This may be caused by an active virus scan locking the relevant files, or an invalid alert configured on the task.
Environment:
Virus Scan
Ensure that QlikView file locations (.qvw, qvd, etc..) are excluded from active virus scans. See QlikView Folder And Files To Exclude From Anti-Virus Scanning .
Invalid Alerts
Remove or edit the alerts configured on the document.
Alerts can be configured in the Distribution task. To verify:
- Open the QlikView Management Console
- Go to Documents > Source Documents
- Locate the failing document/task.
- Open the document/task
- Navigate to the Distribute tab
- Go to the Notify tab.
- Uncheck Send notification e-mail to recipients
- Make sure, there is enough disk space to save the QVW
For additional troubleshooting steps and root causes, see QlikView: Checklist For Reload/Publisher Task Failure.