SSRS data set variables not read by the other data source query - reporting-services

I have an issue in querying 2 datasets in SSRS. I have 4 datasets out of which 3 points to 1 data source and 1 point to the second data source.
The parameters of the report get the values from the datasets of 1 data source. Then once the parameters are assigned a value, I am using these to query the other data source to display the results. However, when I run the report, I get the following error:
Declare a scalar variable #Date1.
It could be due to the data sources being on 2 separate servers.
Anybody faced this issue before?

Related

How to use two different data sets into two different result sets in a single report of SSRS

"Cannot read the next data row for the data set error converting data type nvarchar to float" while using two different datasets in a single SSRS report.
But the same works with 2 different reports.
Please help me with this.
Thanks in Advance!!!

Calling a dataset and table related to it using parameter in SQL Server Reporting Services

I have 3 different datasets and each having a different table and a parameter which is having 3 values, for each value it has to call one dataset and as well as the related table to that dataset what can be done to make it possible.

SSRS report : How to change DataSource dynamically

I have 5 different sql servers instances with same initial catalog/database and I want to create a consolidate SSRS report which can hit all these 5 servers dynamically.
To achieve this I have created a datasource DDL with hard coded values as Server1,Server2...
All I want is when I choose Server 1 in datasource ddl then my main dataset should connect to Server 1 database,I can achieve this by dynamic connection string in local environment but when I deploy it to report server it does not work.
Please suggest whether it is feasible or not ?
You can achieve this by creating 5 reports in 1 and only displaying the active one.
Add all 5 data sources to your report
Setup a data set for each of the 5 data sources (sounds like you can just copy the first data set definition and change the data source)
Copy whatever charts or tablixes are using the dataset 5 times so that each copy uses a different data source
Setup a report parameter called something like "datasource" and specify 5 available values (these shoulr relate to your 5 data sources)
Setup each of the charts or tablixes to only appear if the "datasource" parameter matches their selected data source
As an extra bonus you can lay each of the charts and tablixes on top of each other so that from the user perspective it looks like there is only 1 chart/tablix and it changes data. In reality 5 different tablixes are appearing/disappearing just all in the same position.

ssrs linked reports not updating

I have created a linked report in ssrs. I have made a action from the values in a Pivot matrix to another report which shows just raw data. My Pivot matrix is perfect however when I click on a value for example 9 and takes me to my raw data report I only get back 8 results. My parameters pass through fine.I ran a query in sql server to see that result did not come back in the report and that record was created on a different date than the other 8 that came back which were all created on the same date.
Note some linking works fine if I click on the value of 10 it will bring back 10 results.
The scenario I have is the matrix has a count value of items on a particular day. For example day 1 has 10 assets sold and when I click on that value it is meant to show the 10 assets in another report. Sometimes only less will show. could this be a cache error or a coding error?
Thanks

SSRS 2008 - Object Reference not set to an instance of an object

Issue I get for one of my shared data sets only on certain parameters. If the parameter returns nothing for that dataset then I seem to come across this problem, there is a tablix in this report that uses the shared dataset and if I remove the tablix but keep the shared dataset I still get the error on the report preview.
The dataset uses a MDX query (SSAS) to get its data, if I run the query from the query designer it returns 2 rows but the dates in the rows are outwith the scope of my report so the report would return 0 and I assume thats my issue.
Anyone got any ideas/tips?
Uses SQL Server 2008 R2
Thanks
Managed to get round this issue by having an embedded data set rather than a shared one.
Gets around the issue, very annoying though!