|
Hi, I'm trying to ahange data sources of multiple SSRS Report with Powershell to one shared data source on my reporting server. Here my code: But I'm getting the following error when calling "SetItemDataSources"-method: Argument "1" having the value "ReportingWebService.DataSource[]" of "SetItemDataSources" can not be converted to type "ReportingWebService.DataSource[]". The question is: What's wrong? The types are the SAME! Thanks!
(comments are locked)
|
|
I got it now! Here's the working solution:
(comments are locked)
|
|
Thanks, Worked like a charm. One Small correction in the second one, need to update the $url
(comments are locked)
|
|
Declaring and Defining the $url variable is missing. Other than that, It works perfect
(comments are locked)
|
|
David Levy wrote a script that changes the credentials of SSRS reports using PowerShell that I think you might want to compare with yours on how he uses I think your line Well, thanks. But I know the script by David Levy already. It doesn't help me. I want to change the reference inside the report from development to production SHARED datasource. David Lavy's script just changes credentials of an EMBEDED data source. Anyway, my guess is: "[ReportingWebService.DataSource[]]" is Reporting Service 2000 class, not 2005... Maybe I'm wrong...
Feb 07 '12 at 02:38 PM
eghetto
Debug confirmes that both variables are of the same type but DIFFERENT ASSEMBLIES! "nhdifv-s" vs. "lrc8sdta" [DBG]: PS C: > $dataSources.GetType().Assembly.FullName --> nhdifv-s, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null [DBG]: PS C: > $myDataSource.GetType().Assembly.FullName --> lrc8sdta, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null [DBG]: PS C: > $dataSources.GetType().FullName --> ReportingWebService.DataSource[] [DBG]: PS C: > $myDataSource.GetType().FullName --> ReportingWebService.DataSource[]
Feb 07 '12 at 02:52 PM
eghetto
(comments are locked)
|

