I've got a report that works perfectly in development previews. But when I deploy I get the following error:
In the Dev Environment the Error displayed is:
Error 4 The data source 'myDataSource' cannot be found. c:\reporting services projects\reports\rest_of_path\my_report.rdl 0 0
On the reporting services side the error it shows is:
The data source connection information has been deleted. (rsInvalidDataSourceReference)
By itself the datasource deploys just fine and it's present on the server so it doesn't make sense that it "can't find" it. What is going on?
P.s. I found a way to make it work on the server by manually assigning the datasource link that's lost in deployment. But I'd rather not have to do this every time I deploy a new report.
- go to Report Manager(http:///reports/pages/Folder.aspx)
- Click on the Folder in which u have reports
- U will be directed into contents tab where u will find Show Details at the right top corner
- Click on Show Details
- Check in the particular report and click the edit button corresponding to it
- Go to the properties tab and click on it
- U will find a menu on left hand side, click on Data Sources link
- There u will find radio button selected for A share data source(by default) and a browse button.
- Click on the browse button u will find the tree structure of the datasource and the reports folder.
- select the datasource in the datasource folder and select OK. (From a post on http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/622dc981-4378-4331-b2fc-e377660464df/)