Open pitanni opened 2 years ago
Hello everybody, I have several relationships in this state (after a migration from a SSRS 10.0.5500.0:
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
$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: @{...}
Failed to update data sources for ... Invalid data source specified: @{...}
Please help!!!
Hello everybody, I have several relationships in this state (after a migration from a SSRS 10.0.5500.0:
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!!!