microsoft / ReportingServicesTools

Reporting Services Powershell Tools
MIT License
458 stars 213 forks source link

How to change link Shared Datasource in a Report? #383

Open pitanni opened 2 years ago

pitanni commented 2 years ago

Hello everybody, I have several relationships in this state (after a migration from a SSRS 10.0.5500.0: image

How can I connect the correct Datasource knowing the path?

I'm trying to do it like this: $datasources = Get-RsRestItemDataSource -RsItem $reportPath -ReportPortalUri $ReportPortalUri | Where-Object {$_.Name -eq $myDataSourceName} $datasources[0].Path = $NewDatasourcePath Set-RsRestItemDataSource -RsItem $reportPath -RsItemType Report -DataSources $datasources -ReportPortalUri $ReportPortalUri

But I get an error: Failed to update data sources for ... Invalid data source specified: @{...}

Please help!!!