July 23, 2018 at 9:23 am
hi
we have over 600 ssrs reports in sql 2012 over time some reports started to fail for various reasons , I need to identify
failing ones, and wondered if there is an easy way to list all those which are failing to open without having to run each reports manually?
I am only interested in those which fail to run so I can troubleshoot them
thanks in advance
July 23, 2018 at 9:52 am
You can get the status of the last attempted subscription from the database. This is the query I use, which I'm pretty sure I stole parts of from somewhere many many years ago, however, should get you there, or at least help:
--(Lack of) Indenting courtesy of SSCs text editor.... -_-
SELECT EL.InstanceName,
COALESCE(C.Path, 'Unknown') AS ItemPath,
C.Name AS ReportName,
EL.UserName,
EL.ExecutionId,
CASE (EL.RequestType)
WHEN 0 THEN 'Interactive'
WHEN 1 THEN 'Subscription'
WHEN 2 THEN 'Refresh Cache'
ELSE 'Unknown'
END AS RequestType, -- SubscriptionId,
EL.Format,
EL.Parameters,
CASE (EL.ReportAction)
WHEN 1 THEN 'Render'
WHEN 2 THEN 'BookmarkNavigation'
WHEN 3 THEN 'DocumentMapNavigation'
WHEN 4 THEN 'DrillThrough'
WHEN 5 THEN 'FindString'
WHEN 6 THEN 'GetDocumentMap'
WHEN 7 THEN 'Toggle'
WHEN 8 THEN 'Sort'
WHEN 9 THEN 'Execute'
ELSE 'Unknown'
END AS ItemAction,
EL.TimeStart,
EL.TimeEnd,
EL.TimeDataRetrieval,
EL.TimeProcessing,
EL.TimeRendering,
CASE (EL.Source)
WHEN 1 THEN 'Live'
WHEN 2 THEN 'Cache'
WHEN 3 THEN 'Snapshot'
WHEN 4 THEN 'History'
WHEN 5 THEN 'AdHoc'
WHEN 6 THEN 'Session'
WHEN 7 THEN 'Rdce'
ELSE 'Unknown'
END AS Source,
EL.[Status],
CASE WHEN EL.[Status] = 'rsSuccess' THEN 1 ELSE 0 END AS Success,
EL.ByteCount,
EL.[RowCount],
EL.AdditionalInfo
FROM ReportServer.dbo.ExecutionLogStorage EL
LEFT OUTER JOIN ReportServer.dbo.Catalog C ON EL.ReportID = C.ItemID;
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
July 23, 2018 at 1:59 pm
newbie389 - Monday, July 23, 2018 9:23 AMhiwe have over 600 ssrs reports in sql 2012 over time some reports started to fail for various reasons , I need to identify
failing ones, and wondered if there is an easy way to list all those which are failing to open without having to run each reports manually?
I am only interested in those which fail to run so I can troubleshoot them
thanks in advance
Heh... if the users aren't complaining, I'd put them in the "To be deleted soon" locker because it would seem that none of the users care enough to report the problems. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply