Skip to content

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

@pitanni

Description

@pitanni

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!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions