I have SQL Server 2012 Standard edition. I have a report that is run and executes nearly 50% of the time, and I cannot seem to see a pattern why the report subscription is failing. If it failed all the time, it would be a little easier to track down the root cause.
The report is set to not timeout the report. Report Manager is also set to not timeout a report.
The timing is random. However, this is what I can extract from the log file.
email extension!WindowsService1!870! e ERROR: Error sending email. Exception: System.Net.Mail.SmtpException: The operation has timed out.
Thanks in advance for taking time to assist.
Marcus
Related
Can anyone please tell me what this error is
After running the report for long time, I got the above error in reporting server.
We have also increased the space in the Reporting server.
When I run the stored procedure of the report in SSMS it took just 33 seconds. Can I know how to fix this problem
Try to increase the "time out".
Steps to achieve this method:
Enter to data sets folder.
Choose your data set.
Go to the "Time out" field and increase the value.
for more documentation Setting Time-out Values for Report and Shared Dataset Processing
have a strange one. We are running Sql Server 11.0.3000. The report is giving an error
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'Audit_Detail'. (rsErrorExecutingCommand)
Invalid object name 'dbAudit.tblRangeReport'.
The thing is, the report uses 3 stored procs to go after data in a database called dbSalarySurvey. The three sp's do not mention the dbAudit.tblRangeReport. There are no functions or views in the 3 sp's that access that table. Further more, if i run the report in VS 2012 the report runs. If i run profiler on the dbAudit table when VS runs the report, the report does not query the dbAudit table. Only when running the report from the web browser do i get this error. This more detailed version of the error come from running the report on the Sql Server REporting services computer.
I have tried restarting the reporting services service. We have also deleted this one report from the reporting services server and republished it. Have also tried to republish the dataset. Other reports in this project that use the datasource and the same tables run.
Anyway, was wondering if anyone had any sugguestions.
Thanks
shannon
It's fixed. it was a pebkak error in the stored proc. It's really strange though. Honest to goodness, the proc was running in my dev env but not when running from a browser. I had already checked profiler like was suggested below and done the xml scan too. In the end.. just missed it i guess.
You need to trace the SQL to determine.
Are you connecting to the right database?
Are the procs you expecting to see, the ones actually being run?
The procs you are running are correct?
Open SQL Server Profiler
Start New Trace
Click Event Selection, Select the following events
Click - Show All columns
Go into Column Filters
and filter on your DB, and possibly even your login name (the login name of the SSRS server)
Once you've done that, call your report and look to make sure all the procs are called that you expect. Track issues from there.
Using SSRS 2008 R2
I have a background process that dynamically generates RDL for report generation. I am using SSRS in LocalMode with no user interaction or connections to the SQL Server Reporting Services. The only thing the user will ever see will be the final PDF.
I am using the Microsoft.Reporting.WebForms.LocalReport.Render to generate the report.
When an error occurs, the only message that gets returned is something like the following:
Warning: An error occurred while executing the subreport 'SUBREPORT_000005' (Instance: 0): The definition of the report '' is invalid. (rsErrorExecutingSubreport)
Warning: Warnings occurred while executing the subreport ‘SUBREPORT_000005’. (rsWarningExecutingSubreport)
These errors are obviously not very useful. In order to get the real error, I have to save all the reports to the disk and open the offending report in Report Builder 3.0, modify it to provide everything it needs and then execute the report. At this point, Report Builder will report a more detailed error such as Missing Fields, invalid syntax on formulas etc. This process is time consuming and slows down the debugging cycle.
Is there a way to configure the LocalReport to give me the more detailed error? The local report has a property called ShowDetailedSubreportMessages, but it makes no difference in the errors that it returns.
Any ideas?
I have asked this in other forums and so far it appears that this is not currently possible. So a manual approach through Report Builder seems to be the answer still.
When I executed reports in CRM 2011 by selecting more than 20 records it give the following error:
Microsoft.Reporting.WebForms.ReportServerException: An error has
occurred during report processing. (rsProcessingAborted) --->
Microsoft.Reporting.WebForms.ReportServerException: Query execution
failed for dataset 'DsPhoneCallBase'. (rsErrorExecutingCommand)
This is happening for both system reports and custom reports.
When you review the SSRS log you might find this error.
The SELECT permission was denied on the object
‘fn_GetGuidsFromString’, database ‘MicrosoftCRM_MSCRM’, schema ‘dbo’.
If so then this is a known issue supposedly fixed in UR8. You will find reference to it here http://blogs.msdn.com/b/crminthefield/archive/2012/04/20/podcast-and-overview-microsoft-dynamics-crm-2011-update-rollup-8.aspx
See this blog for a work around until you upgrade.
http://xrm4you.wordpress.com/tag/support/
If possible, attach a SQL Server Profiler to the database server and make sure to include "Events: Error" in the events selection. This will show you which statement fails and why.
You might also be able to find pointer in the reporting services log files:
%ProgramFiles%\Microsoft SQL Server\MSSQL.x\Reporting Services\LogFiles
Our company has a huge nasty report that takes about 50-60 minutes to run (it's for a university and lists all sorts of payment information for all students registered in courses). While it has been running each morning at 5am as a subscription, it recently stopped working and displays "An error has occurred during report processing." in the properties window for the subscription.
If I manually run the report from inside Visual Studio it will work every time, but the subscription will now always fail. I had our DBA turn on trace logging and it gave us no helpful information whatsoever. I've also set the subscription to run at different times throughout the day, with no success. The report is supposed to put an Excel file on a file share and it works for the other 5 subscriptions to this report (I have 6 subscriptions, only 1 of the 6 has a parameter set that returns values from a larger dataset). So this means that it has permission to write to the file share. Any ideas?
Could it be trying to write more than 65536 rows to the Excel file? If so it will just fail.
Also you might check the configuration for IIS to see if the report is causing a timeout.