SSRS Subscription Problem
Hi,
I have scheduled some report in SSRS ( SQL Server 2008 R2) , reports are generated at midnight and saved in a shared folder. It works fine generally, but On some days it fails, Job history shows success, but, files are not saved in shared folder.
What can be possible reason . Kindly help.
Thanking you in advance.
Regards,
Ram
Hi Ramprosad,
Based on the current description, I suggest you checking Event table in ReportServer database. If the Event table has no null values, it indicates the subscription data cannot delivery successfully. In this case, please manually restart Agent Job and Reporting
Services. If it’s not the case, please post the log file to the forum for further analysis.
Hope this helps.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support
Similar Messages
-
Email Recipient limits on SSRS Subscriptions - SharePoint Integrated mode
Hi I hope this is the right forum to post this question in.
I have had a requirement to setup our users to be able to create and manage there own mail delivery SSRS subscriptions, this is not a problem. However I have been asked to set a limit on the number of recipients they can specify in the "To" field,
and I am not sure how to do this.
We are running in SharePoint integrated mode (SharePoint 2010), with SSRS 2008 R2 and I cant find anywhere that I would set this up..... I have had a look through the rsreportserver.config and unable to find any nodes that allow me to set a limit, nor
have I been able to find it online. SharePoint doesnt seem to have anywhere to set this, and it seems to sit within SSRS.
The nearest I have got is someone has suggested that it can be limited on Exchange, but before I go down that route I wanted to find out if it is possible in either SharePoint or SSRS.
Could anybody offer some insight to this?
Thanks
TimHi Tim,
As per my understanding, there is no maximum number of recipients per subscription limitation in Reporting Services. Just as you said, it depends on the SMTP server. For example, Exchange Server 2013 supports 500 recipients as the Recipient limit. This is
the default limit for Exchange Server 2013 organizations. Administrators can change this value for their organization.
References:
Exchange Online Limits
Subscription and Delivery (Reporting Services)
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Hello all,
I need help in creating report subscription to run on every Wednesday for Year to last Friday.So we were to generate the report next week, we should generate it for 01/01/2014- 06/06/2014. I am new to SSRS subscriptions. Please help.
Thankswe should generate it for 01/01/2014- 06/06/2014.
Hi Lshi123,
In Reporting Services, we can create subscription to send report to specified E-mail address on a schedule. However, the execute time on the schedule cannot be the past date. So in your scenario, we cannot create subscription and generate it for 01/01/2014/-06/06/2014.
Here are some link about SSRS subscription for you reference.
http://msdn.microsoft.com/en-IN/library/ms160334.aspx
http://msdn.microsoft.com/en-us/library/ms154020.aspx
http://www.youtube.com/watch?v=sO0Y_IxdE8w
If I have anything misunderstand, please point it out and elaborate your requirement, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
Hello All,
After the server migration (old-new are identical servers in all aspects including HardWare) the SSRS subscriptions are having issues.
1. They will run as scheduled but mails are delivered late.
2. They ran on weekends even though it was not scheduled and not triggered from team.
3. Job history is not getting updated when subscription run on weekend.
Workarounds We Did but not solved:
1. SQL Services restarted.
2. SSRS restarted.
3. Manually tested the Subscriptions.
Please advise.
Regards, Pradyothana DP. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/Hi Pradyothana,
According to your description, the subscription doesn’t work fine when you migrate it from old server to a new server.
In your scenario, please use code below to find the corresponding job of the subscription, then check if the schedule both in the subscription and the job is the same.
use ReportServer;
Go
SELECT
c.Name AS ReportName
, rs.ScheduleID AS JOB_NAME
, s.[Description]
, s.LastStatus
, s.LastRunTime
FROM
ReportServer..[Catalog] c
JOIN ReportServer..Subscriptions s ON c.ItemID = s.Report_OID
JOIN ReportServer..ReportSchedule rs ON c.ItemID = rs.ReportID
AND rs.SubscriptionID = s.SubscriptionID
Besides, since you mentioned the email will be delivered on weekends though it hasn’t been scheduled, you could use Reporting Services trace Log File to find which schedule deliveries this report. Please refer to this article:
Troubleshooting Subscriptions: Part II, Using the Reporting Services Trace Log File .
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
SSRS Subscription LastStatus "Failure sending mail: Failure sending mail."
SSRS 2012, SQL 2012 SP2.
We have about 50 different daily subscriptions that go out. In the last month or so, probably over 30% of SSRS subscriptions are getting this error and no e-mail is sent. I have tested out the reports with the parameters and the reports run just
fine on demand for both the user and myself. I'll change the subscription forward for testing, and it will intermittently work or fail even when no traffic is hitting our database so I dont think it's a matter of performance.
I see nothing in the error logs, and I see nothing in the logtable 2, or 3 in ssrs as suggested by a few MSDB sites.
The only spot I can even see this error, is when viewing the subscription. I have done LOTS of searching, and most people get a helpful error after "Failure sending mail" where as I only get 'Failure sending mail: Failure sending mail"Hi,
Does your network is always available? Your scenario is so strange. Please check if you have missed something according to this article:
https://msdn.microsoft.com/en-us/library/ms159155.aspx. -
Issue in To: field on SSRS Subscriptions
Greetings!
Our organization just recently migrated to a new Microsoft Exchange server, at almost the exact same time as the workstations were upgraded to Windows 2013 and Office 2013. After the upgrade an issue with our SSRS Report subscriptions was discovered.
Report subscriptions that had been running fine prior, suddenly were failing. We were eventually able to figure out that if you entered just one email address in the To/CC/BCC fields it worked fine. As soon as you enter more than 1 email address
in any of those three fields, the email errors with 'The email address of one or more recipients is not valid'. We can take the exact same TO: line out of the Subscription line and paste it into Outlook and it works fine, so the address is valid.
It is just that after the first email address, It does not seem to recognize any additional addresses. Then I was examining the error message and noticed that when returned the to: line in the error message is this '[email protected], [email protected]'.
I know for SSRS subscriptions, email addresses need to be separated by semi colons so I check the subscription, and indeed there are semi colons in the subscription.
Does anyone have any idea what the issue here might be and how I can fix it before my users riot on me?Hi SSRSnewbie,
As per my understanding, I think this issue can be caused by incorrect email relay setting between the SMTP server and the report server. In order to troubleshoot this issue, the following suggestions are for your reference:
Suggestion1:
Please make sure there is no space between an email address and the semi-colon, and add a space between the semi-colon and the email address behind it. For example, try the below:
[email protected];
[email protected]
Suggestion 2:
Double check whether the configuration options for SMTP service is correct, please using the settings mentioned as below:
http://technet.microsoft.com/en-us/library/ms159155.aspx
If the issue is still existed, could you please post the settings in the RSreportserver.config file for SMTP server? Then we can make further analysis.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
one of the Sharepoint 2013 site collection has alternate access mappings created. Default site is .com and intranet is .local.
So when we add SSRS subscription in .com - they are not showing in .local and vice- versa. How do we fix this so the subscriptions are same in both .com and .local.Hi spanda,
Per my understanding that you have configured the alternate access mappings which Default site is .com and intranet is .local. But the subscription in one of the site will not list in another mapped site, right?
Actually, if you are on a different Alternate Access Mapping other than the Subscription was created on, we will get no subscriptions, Because we are using the method "Microsoft.ReportServices.SharePoint.UI.ManageSubscriptionPages"
to deal with the logic by creating the value for "m_reportUrl" using the current context of the URL the user is using and passing that to the "SubscriptionListControl". You can find the code in this article if you have some
knowledge of development:
SQL Server Reporting Services ignores Alternate Access Mappings When Checking for Report Subscriptions
I recommand you to submit an feedback at
https://connect.microsoft.com/SQLServer/
If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the level of service
provided.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Retrieve SSRS subscription info into SharePoint list
Hello,
Is there a solution to retrieve SSRS subscriptions info into a SharePoint list? Through TSQL I can access and get this information but I was trying to placed the info into a SharePoint list.
thank you.You can get it through a web service. Here is how it is done via PowerShell:
http://thesharepointfarm.com/2013/12/quickly-identifying-reporting-services-subscriptions/
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Problem with BLANK Value in SSRS Subscription
I have a report that I designed in Vis Studio 2005 and have deployed to SSRS 2005. I have no issues what so ever when running it interactively out of Report Manager. However when running it scheduled via a subscription, I am running into trouble.
This report has a parameter called "Label". It is set up as a String parameter, Allow Blanks, and Multi-Value. (It does not allow me to select Null values...tells me "The properties for the currently selected item are not valid.") I am getting Available and Default values from a query I have created in a separate dataset. This query pulls in all possible values for Label, including a BLANK value (there are values that are and should be Blank).
In my subscription, I want to select all Labels but label 98, including the BLANK. So when I go in to create or edit a subscription, I simply uncheck the 98 label. I can see a blank checked as well. However when the subscription runs, the subscription status tells me " Failure sending mail: Default value or value provided for the report parameter 'Label' is not a valid value." This ONLY occurs when I have the BLANK label selected in my dropdown list!
However, when I run this interactively out of Report Manager, doing the exact same thing (selecting all labels other than label 98, INCLUDING the Blank), it works properly.
What could be going on here? Kinda new at this and totally stumped.
TonyHi Tony,
I met a similar issue before. If I understand correctly, there has Null values in the list not Blank values.
Using Null values in a parameter in subscription is not allowed.
To solve the issue, please change the Null values to Blank values by modifying the query statement of report:
SELECT ... IsNull(column, "") FROM...
By the way, please update the SQL Server Reporting Services to latest version too.
For SQL Server 2005, the latest version is Cumulative Update package 6 for SQL Server 2005 SP3.
SQL Server 2005 SP3: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4
Cumulative Update #6 for SQL Server 2005 Service Pack 3
For SQL Server 2008, the latest version is Cumulative Update package 4 for SQL Server 2008 SP1.
SQL Server 2008 SP1: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=66ab3dbb-bf3e-4f46-9559-ccc6a4f9dc19
Cumulative Update #4 for SQL Server 2008 SP1
Please feel free to ask, if you have any more questions.
Thanks,
Jin ChenJin Chen - MSFT -
Hi,
I have a SSRS Report with a subscription scheduled to run quarterly Jan, Apr, Jul, Oct on the 1st of each month. The report ran this past Feb. 1st. I'm unsure why? Can this be fixed?
Thank you in advance.Hi CheriseW,
Per my understanding that your subscription which should run quarterly at Jan/1, Apr/1, Jul/1,Oct/1 suddenly run at 02/01/2015, right?
Does the problem occurred only once or many times? The issue can be caused by many factors:
When a scheduled operation is defined, the report server creates a corresponding job in SQL Server Agent and runs the job on the date and time specified in the schedule. So please first check if someone have changed the commend in the job steps or someone
run the commend manually:
1. Find the Job name of this subscription by execute the query below: Job Name=ScheduleID
use ReportServer;
SELECT USR.UserName AS SubscriptionOwner
,SCH.ScheduleID
,SCH.NextRunTime
,SCH.LastRunTime
,SCH.EndDate
,SCH.EventData
,SUB.EventType
,SUB.SubscriptionID
,SUB.ModifiedDate
,SUB.[Description]
,SUB.DeliveryExtension
,SCH.Name AS ScheduleName
,CAT.[Path] AS ReportPath
,CAT.[Description] AS ReportDescription
FROM dbo.Subscriptions AS SUB
INNER JOIN dbo.Users AS USR
ON SUB.OwnerID = USR.UserID
INNER JOIN dbo.[Catalog] AS CAT
ON SUB.Report_OID = CAT.ItemID
INNER JOIN dbo.ReportSchedule AS RS
ON SUB.Report_OID = RS.ReportID
AND SUB.SubscriptionID = RS.SubscriptionID
INNER JOIN dbo.Schedule AS SCH
ON RS.ScheduleID = SCH.ScheduleID
ORDER BY USR.UserName
,CAT.[Path];
2. Right click the Job to select the "Properties" and select "Steps", double click to edit the commend to see if some one have change it, by default, it is like below:
exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='836075c9-6945-4f26-8175-9da44c899af2'
The SQL Server Agent service may calculates an incorrect NEXT_RUN_TIME value for the job. Therefore, the job does not always run at the correct times. This issue occurs because an error causes a date value to be changed unexpectedly, the date value is used
to calculate the NEXT_RUN_TIME value. If you got the subscription execute at wrong time many times. please edit to reset the subscription to change the start date to now.
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support -
SSRS Subscription Error (rsInvalidDataSourceCredentialSetting)
Hi,
I just started using SSRS using SQL Server 2005. I've created several reports and have deployed these reports so they are available to use in Report Manager. I started playing around with subscriptions hoping to automate and schedule printouts for my end-users.
I am trying to subscribe to this one report and have filled in the necessary fields in the subscription page but after getting everything filled in, when I hit OK, I get the ff msg - "The current action cannot be completed because the user data source credentials
that are required to execute this report are not stored in the report server database. (rsInvalidDataSourceCredentialSetting)". I've looked this up online and found a Microsoft Technet page on changing the setting of the data source I'm using and is as follows
1.Go to the Data Sources properties page of the report that you want to automate.
2.For the Connect Using option, select Credentials stored securely in the report server.
3.In User Name and Password, type credentials that can be used to access the database. If you are using SQL Server as the data source, the user name must be valid for both logging on to the server and for accessing the database that contains the data for the
report.
4.If the user name and password are credentials for a Windows account, select Use as Windows Credentials. If the credentials are for a SQL Server user login, do not select this check box.
I have also tried using Credentials are not required. I have followed these tips and made the changes to my data source but I still get the same error msg.
Any help will be greatly appreciated. Thanks.If the credentials options are set to "none" - no credentials are required, then you need to go into the Reporting Services Configuration Manager and set the Unattended Execution Account. Otherwise, you should set the data sources to have stored credentials.
After that the only other cause of problems with subscriptions is if your report uses User!UserID - in RS 2005 and earlier we were very restrictive around the use of this property in subscriptions. As we have reviewed usage and scenariso, we have progressively
allowed more use of it.
I recomment trying to narrow down which data source is causing the trouble by eleminating data sources from the report and creating subscriptions to them...
You may find more infomration in the report server trace log files which could narrow down the source of the problem.
Hope this helps,
-Lukasz
Got a bug or feature request? Tell me about it at http://connect.microsoft.com. This posting is provided "AS IS" with no warranties, and confers no rights. -
Good day all,
I have been working in an SQL 200R2 environment, and recently moved to an SQL 2014 environment. I have well over 1000 subscriptions (both email and DDS) in my previous environment. I would like
to migrate these subscriptions to my new 2014 environment.
Is this possible, and is there a quick way around this?
Your help will be much appreciated, as it would be next to impossible to manually recreate all these in the new environment.
Many thanks
Regards
ZimisoHi Zimiso,
As
Lucas have provide some details information about how to do the migration from one server to another.
For the migration of subscription, we can use rs.exe which support for the SSRS 2008 r2 and later version to do migration by executing script. Here is a sample script for migration. You can download from:
https://azuresql.codeplex.com/releases/view/115207
This script will migrate the subscription to the new report server as well. For detail information and steps, please refer to the link below:
Sample Reporting Services rs.exe Script to Migrate Content between Report Servers
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
SSRS subscription creating duplicate job
We have this sporadic problem where when we go in to save an edit on a SSRS report subscription, it gives us a duplicate job number error. When I look at the Jobs in the Agent, there are duplicates, so I need to manually delete both duplicate jobs,
then the subscription save will work. If we delete just 1 of the jobs, the issue seems to clear for a while, but then reoccurs. This has happened to us on multiple reports, but not consistently. The subscriptions look fine. Has anyone
else run into this? Any ideas what is causing this to happen?I have the issue with version 10.50.1600.1 where one unique subscription ID has created three corresponding SQL jobs with the same name but unique job IDs. When I attempt to execute the job manually via SSMS, i.e. exec
sp_start_job@job_name
=
'0E02285B-4D85-4F5C-92C3-74F44F27B5ED', SQL Server throws the following error:
Msg 14293, Level 16, State 1, Procedure sp_verify_job_identifiers, Line 54
There are two or more jobs named '0E02285B-4D85-4F5C-92C3-74F44F27B5ED'. Specify @job_id instead of @job_name to uniquely identify the job.
So it would be helpful to know the root cause to avoid the same issue in the future.
Thanks,
Ben Lezin
Ben Lezin -
Ssrs subscription service Job not trigggering
Hi,
I am using sql 2012 standard edition-and server is configured n single box on azure vm-
there is DNS/AD/Sql/SharePoint/Project Server 2013 are all in same box on azure- no problem on performance complain till date on performance.
2 parties hosted their servers on this same box-
1st party have DNS name and AD with their company name say contoso.com
2nd party is my client-but here he uses office 365 enterprise edition- so don't required AD/DNS/etc- say TechNet.com
Issue- is-when I configured ssrs report subscription service-email are not triggering ?
this link I am looking to resolve email issue-
https://technet.microsoft.com/en-us/library/ms159155(d=printer,v=sql.110).aspx
Any suggestion pls
thnksHi mafab,
Generally, when you create an subscription, several things are added to the RS server:
A row is placed in the Subscriptions table.
A row is placed in the Schedule and ReportSchedule tables.
A SQL Server Agent job is created.
When the subscription runs several things happen:
The SQL Server Agent job fires and puts a row in the Event table
The RS server service has a limited number of threads (2 per CPU) that poll the Event table
When it finds an event, it puts a row in the Notifications table and
starts processing
So, from the snapshot you have provided, we can see that the subscription haven't run yet. the issue can be caused by many facotrs, it can be caused by the SQL Angent Job stoped or your SQL Sever Reorting Service is stoped at the time of the Last Run time,
it can also caused by someone changed the schedule time in the job like below:
Please try to find the details error message in the log file to help us better analysis about the root cause. The path of the log file like:(please find the correct date of the log file)
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles
Good blogs about troubleshooting of the subscription issue:
http://blogs.msdn.com/b/deanka/archive/2009/01/13/diagnosing-and-troubleshooting-subscriptions.aspx
http://blogs.msdn.com/b/deanka/archive/2010/02/16/troubleshooting-subscriptions-part-ii-using-the-report-services-trace-log-file.aspx
If you still have any problem, please feel feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
We use some reports in SCSM (standard and custom). About week ago one of custom reports lost formatting when send to e-mail in MHTML format. We didn't modify this report before issue.
Report display correctly:
1. In the SCSM console.
2. In the SSRS web interface.
3. In the e-mail when format isn't MHTML (report is attached to message)
4. In any supported format (including MHTML) after manual export.
5. In any supported format (including MHTML) when report is sent to SMB share by subscription.
Report display incorrectly (as plain text without images and formats) only when it is sent in MHTML format by e-mail subscription.
SSRS 2012 SP1.Hi Roman1974,
Do you use embedded charts within in tablix? If so, please try to insert rectangles into the tablix before inserting charts.
Which browser do you use to view the subscription? Some browsers may not perfectly support the MHTML format. You can test the issue using Internet Explorer.
As a workaround, you can enable HTML 4.0 format for subscription and configure subscriptions to use this format instead of MHTML. To do this, please remove "Visible="false" for the HTML4.0 rendering extension in the RSreportserver.config file:
<Extension Name="HTML4.0" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.Html40RenderingExtension,Microsoft.ReportingServices.HtmlRendering" Visible="false"/>
<Extension Name="MHTML" Type="Microsoft.ReportingServices.Rendering.HtmlRenderer.MHtmlRenderingExtension,Microsoft.ReportingServices.HtmlRendering"/>
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support
Maybe you are looking for
-
Dear Experts .. My client need a following Alert ..... EXP:-- If My Sales Order No 1 quantity is 100 and i delivered 110 base on sales Order No 1 at that time required to send a alert as per assign user... please Provide me the query for the same.
-
Hello, Could you let me know your views on the following: Scenario: Customer has an LDAP and would like to use it for any user authentication Question 1) How can a webdynpro application connect to LDAP for user authentication? Could you pls. elaborat
-
HT3383 Pages I have lost my use of Times New Roman
Previously I have used the font Times New Roman and now that font is no longer available to me I am not sure why or what has gone wrong, can someone please help! Also the spacing of the lettering on pages is all off. I am not extremely computer savvy
-
Help with Basics! Dragging and dropping clips
Good Morning! I've been frustrating myself for weeks just trying to get started. I've uploaded all my video clips through a firewire connection and they look fine. However, when I simply want to drag and drop a clip into the timeline it doesn't work.
-
Hello All, While loading data from 2lis_11_vakon to Infocube OSD_C15, we are getting ABAP dump: Runtime Errors UNCAUGHT_EXCEPTION Exception CX_RSR_X_MESSAGE The exception 'CX_RSR_X_MESSAGE' was raised, but it was not caught anywh