<?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: Being alerted to scheduled refresh failures in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/4042068#M35973</link>
    <description>&lt;P&gt;Does this works other DBMS other than SRSS? Like PostgreSQL?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 08:45:50 GMT</pubDate>
    <dc:creator>Mubar22</dc:creator>
    <dc:date>2024-07-15T08:45:50Z</dc:date>
    <item>
      <title>Being alerted to scheduled refresh failures</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2311909#M22731</link>
      <description>&lt;P&gt;Running Jan 2021 PBI RS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is a good way to get proactivitly alerted to a scheduled refresh stopping?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes a scheduled refresh just stops happening and users have to let me know. Once I click 'refresh now' the schedule refreshing begins again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If PBI RS doesn't natively do this has anyone worked out a decent workaround?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 00:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2311909#M22731</guid>
      <dc:creator>robm135</dc:creator>
      <dc:date>2022-02-01T00:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Being alerted to scheduled refresh failures</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2313397#M22739</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188769" data-lia-user-login="robm135" class="lia-mention lia-mention-user"&gt;robm135&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your schedule refresh stops after 4 failures and 2 months of inactivity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-scheduled-refresh#schedule-refresh" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-scheduled-refresh#schedule-refresh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can check the usage metrics report by clicking on the ellipsis (3 dots) beside your report that will give you idea if the report was ideal or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 15:21:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2313397#M22739</guid>
      <dc:creator>AnkitKukreja</dc:creator>
      <dc:date>2022-02-01T15:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Being alerted to scheduled refresh failures</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2313992#M22743</link>
      <description>&lt;P&gt;thanks, but I'm referring to the powerbi report server. I know in cloud you can set an email alert for scheduled failure but this isn't an option for report server (at least for Jan 2021 which I'm running)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 21:35:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2313992#M22743</guid>
      <dc:creator>robm135</dc:creator>
      <dc:date>2022-02-01T21:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Being alerted to scheduled refresh failures</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2314748#M22745</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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;P&gt;&amp;nbsp;&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;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 07:48:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2314748#M22745</guid>
      <dc:creator>CDavies</dc:creator>
      <dc:date>2022-02-02T07:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Being alerted to scheduled refresh failures</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2316316#M22755</link>
      <description>&lt;P&gt;champion! that's works a treat&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 22:17:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/2316316#M22755</guid>
      <dc:creator>robm135</dc:creator>
      <dc:date>2022-02-02T22:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Being alerted to scheduled refresh failures</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/4042068#M35973</link>
      <description>&lt;P&gt;Does this works other DBMS other than SRSS? Like PostgreSQL?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 08:45:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Being-alerted-to-scheduled-refresh-failures/m-p/4042068#M35973</guid>
      <dc:creator>Mubar22</dc:creator>
      <dc:date>2024-07-15T08:45:50Z</dc:date>
    </item>
  </channel>
</rss>

