Forum Discussion
How To keep Production and Development PBIRS on prem in sync. Move all RDL and PBIX files
Anonymous wrote:
I've also tried Out-RsRestFolderContent which appear to download PBIX files, but errors out on a linked report or anything that isn't in this list:
We only support items which are of type Report, DataSet, DataSource, Mobile Report or Power BI Report
Sorry I checked our code and it was the out-rsrestfoldercontent cmdlet that we are using. But I also forgot that I actually manually patched our version so that it only writes a warning, not an error when it comes across an unsupported type.
if you are interested I've attached the file I patched where altered lines 85-94 to add a try/catch block. This file lives in the ReportingServicesTools\Functions\CatalogItems\Rest folder where ever you've installed the module.
Thanks I'll give that a shot later today.
- Anonymous6 years agoNot applicable
Finally had some time and it's looking closer, but the updated version doesn't handle linked reports.
I would like to have those, but it would be ok if those are skipped.
- d_gosbell6 years ago
Super User
Yes, I just skipped the linked reports. There is no actual file format for those they, are just a record in the database. You could possibly look at building your own file by writing the data out as xml or json, but I'm not aware of anyone having done this already.
- Anonymous6 years agoNot applicable
Sorry I meant to say, when I get to a a folder with a linked report the script fails.
Just in case here's what I'm using:
#Out-RsRestFolderContent -RsFolder / -ReportPortalUri 'https://reports.site.com/Reports' -Destination C:\_TestingPBIRS -Recurse
Here's the error message:
Unsupported item type! We only support items which are of type Report, DataSet, DataSource, Mobile Report or Power BI Report
Thanks,
Sam