The report server cannot process the report or shared dataset

北战南征 提交于 2019-12-06 16:33:08

问题


I have a problem when I deploy my report project to a remote ssrs with the shared datasource. When I'm using the SQL Server data tool to "preview" my report, it's looks like have no problem. But when Y deply the project, this error message appear

The report server cannot process the report or shared dataset. The shared data source 'DataSource1' for the report server or SharePoint site is not valid. Browse to the server or site and select a shared data source. (rsInvalidDataSourceReference)


noteworthy that the datasource it's pointing to the remote database


回答1:


If you are using a reportserver, then perform the following steps:

  1. Be sure you're on a version of IE this will not work correctly in Chrome
  2. Go to your report server
  3. Click on the yellow arrow towards the right of your report name
  4. Click on 'Manage'
  5. Click on 'DataSources'
  6. Make sure the Credentials/data source settings are pointing to the right places.

You would be amazed how many times this will happen because of a credentials issue or how the data source is setup.

Without more information about what kind of server you are using, this is all I can think of suggesting.




回答2:


I Tried this Solution :-

Deploy All Data Sources and reports to report server once again.

This solution solve my problem




回答3:


I was able to bulk update and fix the problem by updating the data source link using the T-SQL below.

 begin tran
update dbo.DataSource
set Link = c.ItemID 
from dbo.DataSource ds 
inner join dbo.Catalog c
on ds.Name = c.Name
and c.Type = 5
where ds.link is null

select ds.Link oldlink, c.ItemID 
from dbo.DataSource ds 
inner join dbo.Catalog c
on ds.Name = c.Name
and c.Type = 5
--where ds.link is null


select *
from dbo.DataSource ds 
where ds.link is null

rollback tran
-- commit tran 

http://tsqlblog.blogspot.co.uk/2011/05/rsinvaliddatasourcereference-on.html




回答4:


Initially I used a Datasourse that pointed to a local DB. When I create a remote ssrs and redply the project on server, I change manually the shared datasource.

Like I use a shared data source, every report has link to this shared datasource. The problem is that this link point to a old version of the datasource.

to solve the problem I refresh the link to the new datasource



来源:https://stackoverflow.com/questions/24126706/the-report-server-cannot-process-the-report-or-shared-dataset

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!