Better error message when no recipients in QlikView Alert email
When an alert is triggered, i.e. the alert condition is true, on post reload by the Publisher / Distribution Service and there is no recipient the reload of the document fails, stating "The sourcedocument failed to save" and the Exception is a Save-failure.
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)
The error message is misleading and you start checking for anti virus errors, disk errors etc.
The reload / alert step should check if there is an email address (or several) and if there are not either complete the reload with a warning or information message, or if it fails, there should be an error message stating that the following Alert (ID + Description/Title) is triggered but there are no recipient email address.