sql server 2008 - SSRS scheduled reports not executing - -


we have number of reports scheduled run throughout week. reports setup agent job reports , use sp_send_dbmail send report in html format. last week or so, multiple reports have failed send, while others going through in same day. it's been intermitten issue days reports seem go through, don't have alerts notify me of failed reports.

i looked through log files reportserver \program files\microsoft sql server\msrs10_50.mssqlserver\reporting services\logfiles ; error messages comes frequently:

error: pollingmaintenance: restarting maintenance thread following exception:  method or property cannot called on null values.    @ system.data.sqlclient.sqlbuffer.get_string()    @ microsoft.reportingservices.library.instrumentedsqldatareader.<>c__displayclass3d.<getstring>b__3c()    @ microsoft.reportingservices.library.sqlboundarywithreturn`1.invoke(method m)    @ microsoft.reportingservices.library.eventqueueworker.getnextqueueitem(idatarecord record)    @ microsoft.reportingservices.library.queuepollworker.processdata(idatareader reader)    @ microsoft.reportingservices.library.dbpoll.pollingfunction()    @ microsoft.reportingservices.library.dbpoll.pollingmaintenance(). library!windowsservice_827!8d4!07/10/2015-05:54:19:: info: pollingmaintenance: polling cycle completed. 

other that, i'm not seeing useful info in executionlogstorage table under laststatus ( says rsprocessaborted on few records).

i tried running query failed reports, ones failed today aren't coming up:

select     c.name [reportname],     sb.[description] [subscriptiondescription],     sb.deliveryextension [deliverytype],     sb.laststatus [lastrunstatus],     sb.lastruntime [lastruntime],     c.path [reportpath],     'http://sql-server/reports/pages/report.aspx?itempath='+replace(replace(c.[path],'/','%2f'),' ','+')+'&selectedtabid=propertiestab&viewmode=list&selectedsubtabid=subscriptionstab' [subscriptionlink],     sc.scheduleid [sqlagentjobname],     sb.subscriptionid     reportserver.dbo.reportschedule rs     inner join reportserver.dbo.schedule sc on rs.scheduleid = sc.scheduleid     inner join reportserver.dbo.subscriptions sb on rs.subscriptionid = sb.subscriptionid     inner join reportserver.dbo.[catalog] c on rs.reportid = c.itemid , sb.report_oid = c.itemid     (sb.laststatus 'failure%' or sb.laststatus 'error%' or sb.laststatus '%not valid%')     order lastruntime asc 

this resolved; required more digging events table , found agent job scheduled update old subscription on report. said report causing issues on month ago, , deleted subscription , created new report using same query. job updating report seemed queuing events in events table, , kept timing out there no subscription report. cleared out events other day , few remaining, reports have been going out on schedule. links posted in last comment above cover main areas pointed in right direction.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -