Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
CorradoPag
Frequent Visitor

Power BI Report Server: sending a notification when a scheduled refresh fails

Hi, is it possible to get notified when a report schedule failed in Power BI Report Server?

5 REPLIES 5
R1k91
Solution Supplier
Solution Supplier

@d_gosbell 's idea is great. you should definetely follow his suggestion

logs by default are here: C:\Program Files\Microsoft Power BI Report Server\PBIRS\LogFiles

under installation folder.


--
Riccardo Perico
BI & Power BI Engineer @ Lucient Italia

Blog | GitHub

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JeanMartinL
Advocate II
Advocate II

This should be built-in but it's not.

 

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.

 

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 <> 'Unknown' AND log.Status <> 'rsSuccess' AND log.TimeEnd > DATEADD(DAY, -1, GETDATE())

 

d_gosbell
Super User
Super User

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.

 

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.

Hi d_gosbell, thanks for the reply.
Where are the log files?
What do you mean by "build a process"? Are you talking about a shell script or a process created with Power BI?
Thanks again

Yes, something like a shell script or an SSIS package that would read the files which are normally stored at C:\Program Files\Microsoft Power BI Report Server\PBIRS\LogFiles as R1k91 mentioned earlier

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.