I'm having an issue with an SSRS report using SQL Server Authentication.
I'm creating the report in VS2017 (SSDT), latest update 05/11/2018.
Creating a pretty basic report with 2 data sources. The data sources appear to be valid and passes test.
Test Connection:
When I attempt to preview the report SSRS throws the obtuse error
An error occurred during local report processing
By changing the credentials from SQL Server Authentication to Windows Authentication I can preview the report just fine:
There are no reported login failures in the logs of the target SQL server so it would appear that the report is failing prior to the login.
I'm a little befuddled and appreciate any insights the community could provide.
Convert your data set to shared data set. I also faced the same problem when i upgraded my ssdt.
Related
We have a new SSRS 2019 Server. I navigate to the SSRS Report Manager web page, click New and select a Paginated Report which opens Report Builder. I can create a Data Source connecting to another MS SQL Server 2016 database successfully - I'm embedding the data source not using a shared one. I can create a dataset (select * from table) and if I go into the query designer and click the red exclamation point I get results as expected. I add a table to the report, add some of the fields from the query and when I run it I get the error:
Cannot create a connection to the data source.
In the lower left of Report Builder it tells me what report server I'm currently connected to and if I disconnect THEN run it again it works fine.
Any suggestions? I'm positive it's something to do with our new report server but I'm confused why I can connect and run the query in the query designer but it won't connect just running the report. Thanks much!
The connection is working from the machine you are designing on, but not from the Report Server. When Report Builder is connected to the server, it tries running the report using the server version of the connection which is why you get this behavior.
If you look closely, there are two different Test Connection buttons. One in the Connection Properties and one in the Data Source Properties. One of these works, but the other won't (if you are connected to the Report Server).
So it comes down to standard connection troubleshooting on the server: check firewalls, drivers, etc.
I am using some SSRS reports in some applications that I developed using Visual Studio.
Recently I noticed that my report server url is giving me the following error message.
"The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. (rsReportServerDisabled) Get Online Help
For more information about this error navigate to the report server on the local server machine, or enable remote errors"
I can't go delete the encryption details and try to set the data connections again as many posts suggest because there are a lot of SSRS reports in this server and I don't know the username and passwords to connect to all databases.
Further, I noticed the following.
My SSRS home page displays this error message
Some applications using reports hosted in this report server displays the same message
Other few applications using reports hosted in this report server works as expected without any error messages
Where should I look and what should I do about this? Any help is much appreciated.
Thanks in advance.
I have 2 Reporting Services servers, one is Reporting Services 2012 and the other 2016.
There are reports and folders on both servers.
I am using Microsoft Report Viewer (WinForms dll) 10.0.0.0 in a WPF page
wrapped on a winforms component to connect in Remote mode to my report server.
I am NOT using 2005 reporting services or reports anywhere and have
recompiled the reports in my report writer.
When I try to view a report in my WPF page I just get this message:
"Remote report processing requires Microsoft SQL Server 2008 Reporting Services or later"
How can I stop this message and see my report appear?
Thanks in advance.
Dave K.
Additional....
I did a break point just after the reportviewer.RefreshReport() and dug deep and found this exception which shows ReportingServices2005 (but why??)...
at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SoapVersionMismatchException.ThrowIfVersionMismatch(SoapException e, String expectedEndpoint, String message, Boolean includeInnerException)
at Microsoft.Reporting.WinForms.SoapReportExecutionService.ServerReportSoapProxy.OnSoapException(SoapException e)
at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod1 initialMethod, ProxyMethod1 retryMethod)
at Microsoft.Reporting.WinForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)
at Microsoft.Reporting.WinForms.SoapReportExecutionService.LoadReport(String report, String historyId)
at Microsoft.Reporting.WinForms.ServerReport.EnsureExecutionSession()
at Microsoft.Reporting.WinForms.ServerReport.get_AutoRefreshInterval()
Found what it was. I was using the report browser service "ReportService2010.asmx" in the url when 'Viewing' the reports. Of course this is only used when getting a list of reports etc. from the repository.
I also now use the CustomSSRSCredentials class from The request failed with HTTP status 401: Unauthorized IN SSRS which is very good.
Now all working.
Replications Steps
I have deploy a report onto Report Manager 2012 and can't seem to run it . It gives me the following error. I checked the connection the the datasource in Report manager and works ok.
I have also set up an execution account on Reporting Services configuration manager.
Error
An error has occurred during report processing. (rsProcessingAborted)
Cannot create a connection to data source 'DataSource1'.
(rsErrorOpeningConnection) The ConnectionString property has not been
initialized.
Does anyone know how to fix this ?
The execution account is my windows nt account . The datasoource is on another server. Reports works fine in Sql Server data tools 2012.
Solved . Made the datasources and datasets shared and it now works.
I am working on SharePoint 2013. Database is on SqlServer 2008R2. Both SP and DB are on different machines. I am creating a webPart which is associated with usercontrol. I'm writing the logic in cs file of usercontrol, to write data collected from the form into Data table of sql server.
Connection string: Server=myServerAddress;Database=myDataBase;User
Id=myUsername; Password=myPassword;
But it is failing and throwing an error like "Login failed for user".
Please guide.
You may be running into the Double Hop Problem (also see why NTLM fails). To know for sure use ULSViewer to drill into the SharePoint Error details. From the SQL side check the default trace. "default trace gives you the reason for login failure in plain English"
If it is the double hop causing the error, you may want to look into configuring Kerberos or switching to using an External List instead of a web part and using the Secure Store Service with BCS.