Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Reporting Services Subscription problem


Reporting Services Subscription problem

Author
Message
nehal.j
nehal.j
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 101
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.
eric.muller
eric.muller
Mr or Mrs. 500
Mr or Mrs. 500 (562 reputation)Mr or Mrs. 500 (562 reputation)Mr or Mrs. 500 (562 reputation)Mr or Mrs. 500 (562 reputation)Mr or Mrs. 500 (562 reputation)Mr or Mrs. 500 (562 reputation)Mr or Mrs. 500 (562 reputation)Mr or Mrs. 500 (562 reputation)

Group: General Forum Members
Points: 562 Visits: 1304
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.
nehal.j
nehal.j
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 101
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.
Jason Selburg
Jason Selburg
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2803 Visits: 4101
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
nehal.j
nehal.j
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 101
Thanks,

I have implemented this code. and will observe few days.
nehal.j
nehal.j
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 101
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.
Daniel Bowlin
Daniel Bowlin
SSCrazy
SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)SSCrazy (3K reputation)

Group: General Forum Members
Points: 2950 Visits: 2629
If you are using the Enterprise Edition you should consider a Data Driven Subscription.
Greg Edwards-268690
Greg Edwards-268690
SSC Eights!
SSC Eights! (817 reputation)SSC Eights! (817 reputation)SSC Eights! (817 reputation)SSC Eights! (817 reputation)SSC Eights! (817 reputation)SSC Eights! (817 reputation)SSC Eights! (817 reputation)SSC Eights! (817 reputation)

Group: General Forum Members
Points: 817 Visits: 8252
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.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search