Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Power BI Import REST API returns 403 Forbidden despite the push sceeding

When I send a POST Request to import a pbix file with https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimportingroup


the request works and the report appears in the workspace, however the server returns a 403 error.

 

This is clearly a bug as if the request has worked why is it returning a 403.

Status: New
Comments
v-qiuyu-msft
Community Support

Hi @Anonymous, 

 

Would you please share detail steps for us to reproduce the issue? Thanks. 

 

Best Regards,
Qiuyun Yu 

Anonymous
Not applicable

I am using a Powershell script that connects to workspace A, downloads the pbix file and then pushes that file to another workspace B.

 

I am an admin of both workspaces, the script runs successfully in downloading the file, and then uploading it to the other workspace.

 

Despite this I will get the error

System.Net.WebException: The remote server returned an error: (403) Forbidden.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()