all groups > sql server reporting services > may 2007 >
You're in the

sql server reporting services

group:

Snapshop Subscription Strangeness on RS 2000


Snapshop Subscription Strangeness on RS 2000 Kramer
5/29/2007 8:02:07 AM
sql server reporting services:
Okay, the background: I've got an RS 2000 (SP2) server running on what
should be a patched and updated Windows 2000 Server box (I don't have
direct access to the server so I can't verify all the patches myself,
but since it is a production box I'm going to make the assumption that
critical patches have been installed). This is also the same box that
is running the SQL Server.

Now, here is the issue....I've got a single report, to which I have
created a number of linked reports (lets say 28 total, but that is
just a guess right now). All of these are set to run on a shared
schedule (about half weekly, and half monthly) and update a report
snapshot. Each also has an email subscription set up to go when the
snapshot is updated. What I'm seeing is that all of the report
snapshots are running as scheduled, but not all of the subscriptions
are being fired off when those snapshots complete. To make things
more exciting, there doesn't seem to be much reason behind which work
and which do not. Looking at the "Subscription" page for the reports
which did not work, I don't see any indication that the subscriptions
was even tried (no error messages). I also do not see anything in the
event log to indicate that the ReportServer service, or the SQL agent
were down when this was supposed to be happening.

I do not have the actual RS log files yet, so I cannot say what may or
may not be in there, but I have requested they be sent to me. I will
be glad to post any relevant information when I receive them.

So has anyone seen this? Do I have too many email subscriptions tied
to the same shared schedule? Do I have a problem with the SQL agent?

Any suggestions would be greatly appreciated.

Casey Kramer
Re: Snapshop Subscription Strangeness on RS 2000 Kramer
5/29/2007 8:55:43 AM
[quoted text, click to view]

Okay, here is some additional information, which seems to support my
theory that there may be too many things going on at once. it looks
like there was a deadlock problem. Is there any way around this? Do
I need to limit the number of subscriptions attached to a single
shared schedule?

ReportingServicesService!schedule!540!5/28/2007-05:02:06:: Error
processing event 'SnapshotUpdated', data = ad6d16c2-acb2-421b-
a0b1-75d944691a52, error = System.Data.SqlClient.SqlException:
Transaction (Process ID 67) was deadlocked on lock resources with
another process and has been chosen as the deadlock victim. Rerun the
transaction.
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at
Microsoft.ReportingServices.Library.InstrumentedSqlCommand.ExecuteNonQuery()
at
Microsoft.ReportingServices.Library.CatalogQuery.ExecuteQuery(String
query, Hashtable parameters, CommandType type, Boolean getReader)
at
Microsoft.ReportingServices.Library.CatalogQuery.ExecuteNonQuery(String
query, Hashtable parameters, CommandType type)
at
Microsoft.ReportingServices.Library.ReportExecutionSnapshotUpdateEventHandler.HandleEvent(ICatalogQuery
catalogQuery, String eventType, String eventData)
at
Microsoft.ReportingServices.Library.EventQueueWorker.ProcessSingleEvent(IEventHandler
eventHandler, EventQueueItem item)
Re: Snapshop Subscription Strangeness on RS 2000 Kramer
5/30/2007 8:59:44 AM
Since no one else is replying with ideas, I thought I would share what
my net searching has found so far:

Looks like this is not an uncommon error in some situations. The fix
seems to be to set the <MaxQueueThreads> element in the RS config file
to 1. By default it is 0, which means RS manages the threads, but it
looks like RS2000 isn't very good at it.

Once the change is made, and the scheduled report run is complete
(next Monday) I should be able to verify that it worked.

[quoted text, click to view]

AddThis Social Bookmark Button