Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Power BI report - Referenced tables are not allowed when switching sources

We´ve always being able to switch the datasource of our published reports using the cmdlet Set-PBIDatasource as long as we keep identical metadata in souce and destination.


Now we´ve got a report which contains a table built upon referenced tables and we´re not able to do the same. And error with no much information is returned:


Invoke-PowerBIRestMethod : One or more errors occurred.

+     Invoke-PowerBIRestMethod  -Url $endPoint -Method POST -Body $Upda ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], AggregateException
    + FullyQualifiedErrorId : One or more errors occurred.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod


With the same report we can switch between databases in the Desktop version, but it fails with the service one.


I´d appreciate any inputs, recommendations or comments.

Many thanks in anticipation!


Community Support
Community Support

Hi @jgongil ,


You may finish the work of switching between databases in Power BI Desktop, then publish it to Power BI Service.


Best Regards,



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Amy,


Thank you for your quick response.


That approach is feasible for a small scale environment, but in my case I had an automated process which publishes the same report across different workspaces and then updates the datasources to point to different databases (using PBI cmdlets). 

I'm thinking of removing referenced tables from the report and change the design so I can keep the compatibility with the automated process.


I was wondering whether this limitation is documented somewhere and I missed it?


Thanks again,



Helpful resources

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors