I have an SSRS report with some pre-selected parameters.
Every once in a while, a report parameter will randomly blank itself out and the subscription won't create the file.
Is there a way I can be emailed in the event that the server can't create the report?
I faced a similar problem, I ended up by creating configuring the Database Mail and creating an Operator to notifies me when the underlying job of the subscription fails.
ReportServer
database.SELECT
c.Name AS ReportName
, rs.ScheduleID AS JOB_NAME
FROM
dbo.Catalog c
JOIN dbo.Subscriptions s ON c.ItemID = s.Report_OID
JOIN dbo.ReportSchedule rs ON c.ItemID = rs.ReportID
AND rs.SubscriptionID = s.SubscriptionID
The JOB_NAME
column will give you the name of the job.
Jobs
folder look for the job and right click it to go to properties.Operator
created before and the condition to send the mail.