<?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: Power BI Report Server: sending a notification when a scheduled refresh fails in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3081615#M28875</link>
    <description>&lt;P&gt;This should be built-in but it's not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Personnally I use the following query on the ReportServer database to get the failed refreshes and I'm using our monitoring system to throw an alert if it returns any rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WITH latest AS
( SELECT ItemPath, MAX(TimeStart) AS LatestTimeStart FROM dbo.ExecutionLog3 WHERE ItemAction = 'DataRefresh'  GROUP BY ItemPath ),
scheduled AS
(
	SELECT c.Path
	FROM dbo.Catalog c 
		INNER JOIN dbo.ReportSchedule rs ON c.ItemID = rs.ReportID
)
SELECT *
FROM dbo.ExecutionLog3 log
	INNER JOIN latest ON latest.ItemPath = log.ItemPath AND latest.LatestTimeStart = log.TimeStart
	INNER JOIN scheduled ON latest.ItemPath = scheduled.Path
WHERE latest.ItemPath &amp;lt;&amp;gt; 'Unknown' AND log.Status &amp;lt;&amp;gt; 'rsSuccess' AND log.TimeEnd &amp;gt; DATEADD(DAY, -1, GETDATE())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 14:44:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-15T14:44:00Z</dc:date>
    <item>
      <title>Power BI Report Server: sending a notification when a scheduled refresh fails</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3074792#M28820</link>
      <description>&lt;P&gt;Hi, is it possible to get notified when a report schedule failed in Power BI Report Server?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 14:43:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3074792#M28820</guid>
      <dc:creator>CorradoPag</dc:creator>
      <dc:date>2023-02-10T14:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server: sending a notification when a scheduled refresh fails</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3075626#M28827</link>
      <description>&lt;P&gt;There is no built-in feature to do this. The failure information would be in the log files, so you could build a process to ingest those and notify you from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it's also technically possible to find that information in the database, but the schema is not documented and accessing the database directly like that is only supported for the ExecutionLog views. If you access the other tables /views you could deadlock with internal Report Server processes and affect the stability of your system. But you will probably find blog posts from people who have figured out approaches like this.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 23:27:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3075626#M28827</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-02-10T23:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server: sending a notification when a scheduled refresh fails</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3081568#M28874</link>
      <description>&lt;P&gt;Hi d_gosbell, thanks for the reply.&lt;BR /&gt;Where are the log files?&lt;BR /&gt;What do you mean by "build a process"? Are you talking about a shell script or a process created with Power BI?&lt;BR /&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 14:20:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3081568#M28874</guid>
      <dc:creator>CorradoPag</dc:creator>
      <dc:date>2023-02-15T14:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server: sending a notification when a scheduled refresh fails</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3081615#M28875</link>
      <description>&lt;P&gt;This should be built-in but it's not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Personnally I use the following query on the ReportServer database to get the failed refreshes and I'm using our monitoring system to throw an alert if it returns any rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;WITH latest AS
( SELECT ItemPath, MAX(TimeStart) AS LatestTimeStart FROM dbo.ExecutionLog3 WHERE ItemAction = 'DataRefresh'  GROUP BY ItemPath ),
scheduled AS
(
	SELECT c.Path
	FROM dbo.Catalog c 
		INNER JOIN dbo.ReportSchedule rs ON c.ItemID = rs.ReportID
)
SELECT *
FROM dbo.ExecutionLog3 log
	INNER JOIN latest ON latest.ItemPath = log.ItemPath AND latest.LatestTimeStart = log.TimeStart
	INNER JOIN scheduled ON latest.ItemPath = scheduled.Path
WHERE latest.ItemPath &amp;lt;&amp;gt; 'Unknown' AND log.Status &amp;lt;&amp;gt; 'rsSuccess' AND log.TimeEnd &amp;gt; DATEADD(DAY, -1, GETDATE())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 14:44:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3081615#M28875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-15T14:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server: sending a notification when a scheduled refresh fails</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3081627#M28876</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="109790" data-lia-user-login="d_gosbell" class="lia-mention lia-mention-user"&gt;d_gosbell&lt;/a&gt;&amp;nbsp;'s idea is great. you should definetely follow his suggestion&lt;/P&gt;&lt;P&gt;logs by default are here: C:\Program Files\Microsoft Power BI Report Server\PBIRS\LogFiles&lt;/P&gt;&lt;P&gt;under installation folder.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 14:50:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3081627#M28876</guid>
      <dc:creator>R1k91</dc:creator>
      <dc:date>2023-02-15T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server: sending a notification when a scheduled refresh fails</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3085839#M28926</link>
      <description>&lt;P&gt;Yes, something like a shell script or an SSIS package that would read the files which are normally stored at&amp;nbsp;&lt;SPAN&gt;C:\Program Files\Microsoft Power BI Report Server\PBIRS\LogFiles as R1k91 mentioned earlier&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 01:17:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-sending-a-notification-when-a-scheduled/m-p/3085839#M28926</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-02-18T01:17:21Z</dc:date>
    </item>
  </channel>
</rss>

