Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am trying to export pbix report to my local machine. I have admin access on the workspace and am able to list the reports. However, I'm getting "unauthorized..." error while trying to export the report. Appreciate any help here.
Here is the code I'm using
Connect-PowerBIServiceAccount
Export-PowerBIReport -Id XXXXX -WorkspaceId XXXXX -OutFile .\ExportReportByPowershell.pbix -Verbose
Error Message:
Export-PowerBIReport : Operation returned an invalid status code 'Unauthorized'
At line:12 char:3
+ Export-PowerBIReport -Id $reportId -WorkspaceId $workspace.Id -OutF ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...rtPowerBIReport:ExportPowerBIReport) [Export-PowerBIReport], HttpOperationException
+ FullyQualifiedErrorId : Operation returned an invalid status code 'Unauthorized',Microsoft.PowerBI.Commands.Reports.ExportPowerBIReport
VERBOSE: Request Uri: https://api.powerbi.com/v1.0/myorg/groups/xxxxx/reports/xxxxx/Export
VERBOSE: Status Code: Unauthorized (401)
Solved! Go to Solution.
Download a report from the Power BI service to Power BI Desktop - Power BI | Microsoft Learn
There's a long list of restrictions when it comes to PBIX download. Validate that your scenario is not covered by that list.
Can you please share those requirements with me. I didn't see much in the documentation. Thanks!
Download a report from the Power BI service to Power BI Desktop - Power BI | Microsoft Learn
That worked, thank you. Going by the error, I was wondering if there was a limitation with accessing the report. I see that the Large Semantic Model was set on the report. I am able to export after turning that off.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |