Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Reporting Services Subscription problem Expand / Collapse
Author
Message
Posted Wednesday, May 28, 2014 10:32 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, August 25, 2014 9:10 PM
Points: 5, Visits: 79
Hi,

I have created one subscription for a report and For Each user i am updating parameters of the report and manually trigger that subscription via T- SQL. After triggering event system must send email with PDF attachement to the users.I have put delay of 35 seconds in between report. But sometime SSRS Sends duplicate emails and some times it skips one of the report from the queue.
Post #1575438
Posted Friday, May 30, 2014 9:36 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 10:32 AM
Points: 295, Visits: 826
Lacking your query you're using to trigger those subscriptions, and probably a whole host of other information, there is really no analysis to be done.

However, this scenario sound like a great candidate for a "data-driven subscription".

Google that and you should find some useful information on a better way to handle this.
Post #1576158
Posted Sunday, June 1, 2014 5:32 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, August 25, 2014 9:10 PM
Points: 5, Visits: 79
Thanks for the help,

Senario 1 : I am sending different clients same report with different data. For Example Client 1 wants reports for xyz region and Client 2 requires for other region.

I have created subscription for report once and then pick subscription Id and ScheduleId from Report server table to manually trigger

I am retrieving all setups from database for clients defined email address and regions. Looping through cursor I am processing those details and updating Email Address and Report Parameters in the [ReportServer].[dbo].[Susbcriptions]

Then using below SQL send PDF to the clients.

exec ReportServer.dbo.AddEvent @EventType='SharedSchedule', @EventData=@ScheduleID

WaitFor Delay 00:00:45 - To allow report processiong to be finished.


Problem1: When Looping through cursor - sometimes client 2 never gets report.

Senario2: For Example, I want to send different license details License 1, License 2 and License 3 to the one client.
Using above method sometimes clients gets License 1 details report 2 times and then License2 details report skipped.

Hope this will provide more information. I am using SQL SERver 2008 Reporting services.
Post #1576449
Posted Sunday, June 1, 2014 6:51 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 7:50 PM
Points: 2,717, Visits: 3,854
Does this help? I sounds like you are already doing something similar. I have had reports of needing to wait for a timeout. Now that I think of it, maybe transactions would help.

http://www.sqlservercentral.com/articles/Development/2824/


______________________________________________________________________

Personal Motto: Why push the envelope when you can just open it?

If you follow the direction given HERE you'll likely increase the number and quality of responses you get to your question.

Jason L. Selburg
Post #1576453
Posted Sunday, June 1, 2014 8:21 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, August 25, 2014 9:10 PM
Points: 5, Visits: 79
Thanks,

I have implemented this code. and will observe few days.

Post #1576456
Posted Monday, June 2, 2014 4:47 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, August 25, 2014 9:10 PM
Points: 5, Visits: 79
I have different types of reports that sends out to the client. I have created different stored procedure for different types of reports and every procedure runs as SQL Job in every 15 minutes. During that 15 minutes if report has been schedule then I am updating report parameter using below code and sends out to the client.

UPDATE [ReportServer].[dbo].[Subscriptions]
SET [Parameters] = ''
,ExtensionSettings=''
WHERE subscriptionId=@SubscriptionId


UPDATE [ReportServer].[dbo].[Subscriptions]
SET [Parameters] = @ParameterString
,ExtensionSettings=@ExtensionSetting
WHERE subscriptionId=@SubscriptionId

EXEC msdb..sp_start_job @job_name = @ScheduleID

WAITFOR DELAY '00:01:30'

In my case two stored procedures are executing concurrently and try to execute above code for different subscriptionId and ScheduleId.

Randomly reports are not sent out to the client and I have checked ExecutionLog2 it is also missing entry.
Post #1576793
Posted Tuesday, June 3, 2014 7:21 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Tuesday, September 16, 2014 7:35 AM
Points: 2,819, Visits: 2,563
If you are using the Enterprise Edition you should consider a Data Driven Subscription.
Post #1576962
Posted Wednesday, June 4, 2014 6:54 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 8:19 AM
Points: 1,249, Visits: 6,700
Daniel Bowlin (6/3/2014)
If you are using the Enterprise Edition you should consider a Data Driven Subscription.


+2
Also make sure that your email server is not a constraint.
We one had a similar issue, and it was email server refusing concurrent connections.
SSRS log file would give some clues to this.
Post #1577307
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse