<?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: Refresh Failure Alert for Multiple Dashboards in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Refresh-Failure-Alert-for-Multiple-Dashboards/m-p/2538058#M24300</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="390585" data-lia-user-login="ChandanJha25" class="lia-mention lia-mention-user"&gt;ChandanJha25&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Lucien&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 07:24:01 GMT</pubDate>
    <dc:creator>v-luwang-msft</dc:creator>
    <dc:date>2022-05-25T07:24:01Z</dc:date>
    <item>
      <title>Refresh Failure Alert for Multiple Dashboards</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Refresh-Failure-Alert-for-Multiple-Dashboards/m-p/2519900#M24175</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took charge of a BI engineering function having around 400 dashboards. I noted that for the scheduled refresh failures, the emails were going to the individual folks causing lot of bottlenecks in terms of operations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of adding the email group(security enabled email group), is there a way to put this across all dashboards in one go. It will save the team their previous time and will also get an edge in creating a utlity to be used in future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;&lt;P&gt;Chandan Jha&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 08:54:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Refresh-Failure-Alert-for-Multiple-Dashboards/m-p/2519900#M24175</guid>
      <dc:creator>ChandanJha25</dc:creator>
      <dc:date>2022-05-17T08:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Failure Alert for Multiple Dashboards</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Refresh-Failure-Alert-for-Multiple-Dashboards/m-p/2528662#M24253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="390585" data-lia-user-login="ChandanJha25" class="lia-mention lia-mention-user"&gt;ChandanJha25&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you use this query&amp;nbsp; (connected to your PBI report server) in an SSRS report and schedule the SSRS to email out the failures:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;WITH cte_LastRefresh AS
(

SELECT 
       MAX(SubscriptionHistoryID) AS SubscriptionHistoryID
       ,SubscriptionID
FROM dbo.SubscriptionHistory 
WHERE [Status] = 2
GROUP BY SubscriptionID

) 

SELECT 
          c.Name                                      as [Report Name]
      --rs.scheduleid
      ,c.path                                  as [Report Path]  
      ,sub.[Description]                 as [Schedule Name]
      --,sub.[LastStatus]                      as [Last Status]
         ,SUBSTRING(sh.Details,CHARINDEX('Message":"',sh.Details)+10,200)+ '...' AS [Error Detail]
      --CASE WHEN sub.[InactiveFlags] = 0 THEN 'Enabled'
             --     WHEN sub.[InactiveFlags] = 128 THEN 'Disabled'
             --     ELSE 'Other' 
             --END  as [Enabled]
      --,sub.[EventType]                       as "Event Type"
      ,CONVERT(Varchar(17),sub.[LastRunTime],113) as [Last Run Time]
         ,SUBSTRING(u_own.UserName,CHARINDEX('\',u_own.UserName)+1,10) as [Created by]
         ,SUBSTRING(u_mod.[UserName],CHARINDEX('\',u_mod.[UserName])+1,10) as [Modified by]
         ,CASE WHEN jsch.next_run_date = 0 THEN '-'
               ELSE Convert(Varchar(17),msdb.dbo.agent_datetime(jsch.next_run_date, jsch.next_run_time),113) 
             END as [Next Run Time]
        --,CASE c.[Type] WHEN 2 THEN 'SSRS'
             --                  WHEN 5 THEN 'Data Source'
             --                  WHEN 7 THEN 'Report Part'
             --                  WHEN 8 THEN 'Shared Dataset'
             --                  When 13 Then 'Power BI'
             --                  ELSE 'Other'
             -- END AS "ReportType"
             ,sub.LastStatus
  FROM [dbo].[Subscriptions] sub
       INNER JOIN dbo.[Catalog] c ON sub.report_oid = c.itemid
       INNER JOIN [dbo].Users u_own ON c.CreatedByID = u_own.UserID
       INNER JOIN [dbo].Users u_mod ON c.ModifiedByID = u_mod.UserID
       INNER JOIN dbo.ReportSchedule rs ON sub.SubscriptionID = rs.SubscriptionID
       INNER JOIN cte_LastRefresh lr ON rs.SubscriptionID = lr.SubscriptionID
       INNER JOIN dbo.SubscriptionHistory sh ON lr.SubscriptionHistoryID = sh.SubscriptionHistoryID
       LEFT OUTER JOIN msdb.dbo.sysjobs j ON CAST(rs.ScheduleID AS VARCHAR(100)) = j.name
       LEFT OUTER JOIN msdb.dbo.sysjobschedules jsch ON j.job_id = jsch.job_id
WHERE 1=1
       AND sub.LastStatus like '%failed%'
       AND jsch.next_run_date &amp;lt;&amp;gt; 0
       AND Convert(smalldatetime,msdb.dbo.agent_datetime(jsch.next_run_date, jsch.next_run_time)) &amp;gt; getdate() 
order by 2&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;To learn more details ,refer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2311909" target="_blank"&gt;https://community.powerbi.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2311909&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Lucien&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 08:11:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Refresh-Failure-Alert-for-Multiple-Dashboards/m-p/2528662#M24253</guid>
      <dc:creator>v-luwang-msft</dc:creator>
      <dc:date>2022-05-20T08:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Failure Alert for Multiple Dashboards</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Refresh-Failure-Alert-for-Multiple-Dashboards/m-p/2538058#M24300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="390585" data-lia-user-login="ChandanJha25" class="lia-mention lia-mention-user"&gt;ChandanJha25&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Lucien&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 07:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Refresh-Failure-Alert-for-Multiple-Dashboards/m-p/2538058#M24300</guid>
      <dc:creator>v-luwang-msft</dc:creator>
      <dc:date>2022-05-25T07:24:01Z</dc:date>
    </item>
  </channel>
</rss>

