<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Receive email for Refresh failure in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/423805#M5802</link>
    <description>&lt;P&gt;You can schedule refresh at the dataset level. Goto Schedule refresh and select below option at the bottom of where you enter the schedule time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send refresh failure notification to me&lt;/P&gt;</description>
    <pubDate>Wed, 23 May 2018 15:15:47 GMT</pubDate>
    <dc:creator>seena</dc:creator>
    <dc:date>2018-05-23T15:15:47Z</dc:date>
    <item>
      <title>Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/331574#M3160</link>
      <description>&lt;P&gt;Is it possible to setup email alerts if a scheduled refresh fails?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 04:23:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/331574#M3160</guid>
      <dc:creator>gemidriver</dc:creator>
      <dc:date>2018-01-03T04:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/332213#M3193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="40737" data-lia-user-login="gemidriver" class="lia-mention lia-mention-user"&gt;gemidriver&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the moment, it is not supported to setup email alert for scheduled refresh failure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Yuliana Gu&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 01:38:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/332213#M3193</guid>
      <dc:creator>v-yulgu-msft</dc:creator>
      <dc:date>2018-01-04T01:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/332234#M3195</link>
      <description>&lt;P&gt;ok so it isn't supported&lt;/P&gt;&lt;P&gt;is there something that can be used ?&lt;/P&gt;&lt;P&gt;we have some schedules failing to refresh, and it would be great to be able to be notified in some way&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 02:19:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/332234#M3195</guid>
      <dc:creator>gemidriver</dc:creator>
      <dc:date>2018-01-04T02:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/346402#M3612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="40737" data-lia-user-login="gemidriver" class="lia-mention lia-mention-user"&gt;gemidriver&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;scheduled refresh history will be recorded in Power BI Report Server database hosted on SQL Server. Maybe you could configure an alert in SQL Server when the state of scheduled refresh is recorded as "Failure" which will send an email to specific&amp;nbsp;&lt;SPAN&gt;recipients.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Reference: &lt;A href="https://workingondata.wordpress.com/2017/11/02/pbirs-scheduled-data-refresh-execution-history/" target="_self"&gt;PBIRS scheduled refresh data refresh: Execution history&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c" target="_self"&gt;Query Details of given SSRS Report from ReportServer Database tables&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A href="https://stackoverflow.com/questions/10755469/send-e-mail-from-a-trigger" target="_self"&gt;Send an email from a trigger&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://solutioncenter.apexsql.com/get-an-alert-when-a-certain-record-changes/" target="_self"&gt;Get an alert when a certain record changes in SQL Server&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yuliana Gu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 06:49:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/346402#M3612</guid>
      <dc:creator>v-yulgu-msft</dc:creator>
      <dc:date>2018-01-27T06:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/349321#M3702</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Any ideas on tables/columns to monitor?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 20:21:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/349321#M3702</guid>
      <dc:creator>gemidriver</dc:creator>
      <dc:date>2018-01-31T20:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/423805#M5802</link>
      <description>&lt;P&gt;You can schedule refresh at the dataset level. Goto Schedule refresh and select below option at the bottom of where you enter the schedule time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Send refresh failure notification to me&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 15:15:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/423805#M5802</guid>
      <dc:creator>seena</dc:creator>
      <dc:date>2018-05-23T15:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/424049#M5805</link>
      <description>&lt;P&gt;please explain?&lt;/P&gt;&lt;P&gt;we have different types of error messages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;refresh at dataset level?&lt;/P&gt;&lt;P&gt;we have to setup a refresh on each report&lt;/P&gt;&lt;P&gt;what i would like is someway of knowing if a refresh has failed&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 22:42:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/424049#M5805</guid>
      <dc:creator>gemidriver</dc:creator>
      <dc:date>2018-05-23T22:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/424532#M5822</link>
      <description>&lt;P&gt;Scheduled refreshing is done at the dataset level for the Power BI Service. Reports will use the latest data that is in the dataset it connects to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's limited email notification settings for a refresh failure, but you can tick the 'Send refresh failure notification email to me'. I can confirm this works (example below) :). I'm not sure if this sends an email to all owners of the workspace or not, someone else may be able to confirm that.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 11:33:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/424532#M5822</guid>
      <dc:creator>PeterNesbitt</dc:creator>
      <dc:date>2018-05-24T11:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/424552#M5823</link>
      <description>&lt;P&gt;we are using the on premise report server - not the cloud version&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 11:52:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/424552#M5823</guid>
      <dc:creator>gemidriver</dc:creator>
      <dc:date>2018-05-24T11:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/424698#M5826</link>
      <description>&lt;P&gt;Ahh yes! My apologies, I jumped the gun.&amp;nbsp;:manfrustrated: It seems&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;you and I both&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;did not read the reference articles that&amp;nbsp;&lt;SPAN&gt;Yuliana Gu posted above. Noteably,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://workingondata.wordpress.com/2017/11/02/pbirs-scheduled-data-refresh-execution-history/" target="_self"&gt;https://workingondata.wordpress.com/2017/11/02/pbirs-scheduled-data-refresh-execution-history/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That contains all the details we are after :)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 14:47:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/424698#M5826</guid>
      <dc:creator>PeterNesbitt</dc:creator>
      <dc:date>2018-05-24T14:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/542394#M8447</link>
      <description>&lt;P&gt;How do we request that this feature is added to the On Premise version of Power BI Report Server?&amp;nbsp; We have internal clients that are requesting this, and although there are ways documented in the message string around it, it would be much easier for our internal clients to have the "Send me a notification email if the refresh fails" option available.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 14:00:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/542394#M8447</guid>
      <dc:creator>matthewtmitchel</dc:creator>
      <dc:date>2018-10-15T14:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/737593#M10937</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="40737" data-lia-user-login="gemidriver" class="lia-mention lia-mention-user"&gt;gemidriver&lt;/a&gt;&amp;nbsp; The feature which you are looking for is now available with the latest update :)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/sending-refresh-notifications-to-others/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/sending-refresh-notifications-to-others/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://powerbiblogscdn.azureedge.net/wp-content/uploads/2019/06/refreshnotificationstoowner.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 13:06:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/737593#M10937</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2019-07-11T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/738154#M10947</link>
      <description>&lt;P&gt;that looks like it is for cloud&lt;/P&gt;&lt;P&gt;we use on prem&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 22:07:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/738154#M10947</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-11T22:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Receive email for Refresh failure</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/738565#M10954</link>
      <description>&lt;P&gt;We have setup a couple of SSRS reports to make it easier to see the status of the refreshes across the server, the top level report shows the status of all data refreshes. You could schedule this report to be delivered via email and indeed you could schedule a version of it to be delivered that only showed recent failures. Its not quite what you want but its better than nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query to get the status of the refreshes is here (NOTE this can be broken by changes to the underlying ReporTServer DB schema in future relases of SSRS-PBI Server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SELECT
	sj.name AS SQLAgentJobName
	,c.name AS ReportName
	,c.[path] AS ReportPath
	,c.ItemID
		, CASE 
		WHEN s.laststatus = 'Completed Data Refresh' THEN s.laststatus
		WHEN LEFT(s.laststatus,19) =  'Data Refresh failed' THEN 'Data Refresh failed'
		ELSE 'Status Unknown'
		END AS ShortStatus
	, 'http://yourservername/yourserverpath/manage/catalogitem/properties' + c.[path]  AS managePath
	, REPLACE(  LEFT(c.[path], CHARINDEX('/',c.[path],2)) , '/' ,'') AS basepath
	,s.[Description] as SubscriptionName
	, rs.SubscriptionID
	, s.laststatus

	,sh.SubscriptionHistoryID
	, CASE s.laststatus
		WHEN 'Completed Data Refresh' THEN 1
		ELSE 0
		END AS successFlag
	, CASE s.laststatus
		WHEN 'Completed Data Refresh' THEN 0
		ELSE 1
		END AS FailFlag
	, s.eventtype
	, s.LastRunTime
	, CASE jsch.next_run_date
            WHEN 0 THEN cast('n/a' as char(10))
            ELSE	convert(char(10), 
							CONVERT(datetime, 
									CONVERT(char(8),
											jsch.next_run_date)
									)
							,120)  
					+ ' ' 
					+ left(
							STUFF(
									(stuff(
											(replicate(
														'0', 
														6 - len(jsch.next_run_time)
													  )
											)
											+ convert(VARCHAR(6),
														jsch.next_run_time
													  )
											,3
											,0,
											':'
											)
									)
									,6
									,0,
									':'
								  ),
							8)
        END AS NextRunTime
	, sj.date_created
	, sj.date_modified
	, 1 AS ct
FROM ReportServer.dbo.ReportSchedule rs 
		INNER JOIN msdb.dbo.sysjobs sj
            ON rs.ScheduleID = CAST(sj.name AS uniqueidentifier)
			and 101 = sj.category_id
			LEFT OUTER JOIN msdb.dbo.sysjobschedules jsch
				ON sj.job_id = jsch.job_id
        INNER JOIN ReportServer.dbo.Subscriptions s
            ON  rs.SubscriptionID = s.SubscriptionID
			AND 'DataModelRefresh' = s.eventTYpe
        INNER JOIN ReportServer.dbo.[Catalog] c
            ON s.report_oid = c.itemid
		LEFT OUTER JOIN (SELECT MAX(SubscriptionHistoryID) AS SubscriptionHistoryID, SubscriptionID FROM dbo.SubscriptionHistory GROUP BY SubscriptionID) sh
			ON rs.SubscriptionID = sh.SubscriptionID&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jul 2019 08:52:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Receive-email-for-Refresh-failure/m-p/738565#M10954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-12T08:52:15Z</dc:date>
    </item>
  </channel>
</rss>

