sharepoint and ssrs report error with xml datasource - reporting-services

I have a sharepoint 2013 farm with sql server 2012 installed in sharepoint integrated mode. reporting service is running on web front end server. I create reports that contains data sources from sql server tables and sharepoint lists and then put them in web page via report viewer webpart and they work properly.
Now I need to filter results from sharepoint list according to report parameter value so I try to connect to sharepoint lists with xml type datasource. so I create datasource with this settings:
Data Source Type: XML
Connection String: http://mysiteurl.com/_vti_bin/lists.asmx
Dredentials: Stored credential > Use as Windows credentials
and create a dataset and set to use this data source. It can connect to sharepoint list because return list’s fields but when I run the report get the following error:
Query execution failed for dataset 'a'. (rsErrorExecutingCommand)
Failed to execute web request for the specified URL.Unauthorized: The remote server returned an error: (401) Unauthorized. (rsXmlDataProviderError)
Any idea? Any solution?

Possibly a double hop problem. See here: http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a8ce234f-dffc-46ed-8b88-5de4f8626ac1/the-remote-server-returned-an-error-401-unauthorized-rsxmldataprovidererror?forum=sqlreportingservices

Related

Reusing the service account in an SSRS data source

SQL Server 2016 reporting. The SSRS service runs as an account that has read access in the database I'd like to run reports from.
I'd like to create a server level data source object that would use the Windows service account to connect, instead of storing the credentials in the data source itself. Is there a way to do so?
The "Without any credentials" option doesn't work, I've tried.

SSRS subscription with Oracle data source

We have an SSRS with Oracle as data source. Creating report Works, but creating subscriptions doesn't.
On the Data Source configuration page,i use Oracle internal user and enabled "Credentials stored securely on the report server". If i click Test Connectiong, it says the connectiong was succesful.
Creating a subscription gives the error "Subscriptions cannot be created because the credentials used to run the report are not stored, or if a linked report, the link is no longer valid."
Something i found out is that the reports i create have as data source :
Data Source=localhost;Initial Catalog=Production and Windows Integrated Security as credentials.
Shouldn't Oracle be the data source and what can i do to correctly configure the subscriptions?
seems datasource credentials are your windows credentials, try changing it to your oracle database credentials. check below link for more information of connection strings.
https://learn.microsoft.com/en-us/sql/reporting-services/report-data/oracle-connection-type-ssrs

Why do I have to enter credentials in Report Builder for shared data source?

I am using Report Server 2012 and Report Builder 3.0. I defined a Analysis Services Data Source on the server where I provide windows credentials to access the server.
When I want to add a dataset in Report Builder based on this data source I have to enter credentials. Why? They are defined in the shared data source on the server....
My understanding was, that the data source defined on the report server will use the credentials defined in the data source and not the credentials of the calling client application.

Deployment of Crystal Reports with ms access database as backend

I've created a Crystal Report project with MS Access DB backend on our development server in 1st. Step. The path is smth. like H:...\db\my.db. After compiling the project, I've deployed it on another Server and start it over mstsc.exe to open a remote session on it.It functions.
In step 2 I inserted a subreport with a data source in the same db and linked it with the main report over id field. Checked it on development server and copied to production one. Now, when I try to stat the report I'm prompted to log in and the Server and Db name are shown to be ones from development server.
Is there any way to set all reports data sources and links programmatically at the runtime?
Can you use integrated security? Or did you want the connection's userID and password stored with the report?

ReportViewer Error in ASPX for Remote SSRS

I get the following error:
In remote mode, the Report Viewer control requires session state be
enabled or Report Server connection information specified in the
config file.
Windows 2008 server, IIS 7, Dot Net 3.5
sessionState=InProc
After rebooting, I still get the error.
Do you have the Report Server connection information setup in the Config file of your webservice?
Take a look at http://msdn.microsoft.com/en-us/library/ms251661.aspx
Working in remote mode, you need to specify the reporting service connection string for report viewer to function.