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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Error 401 only while uploading pbix files using rest api

 

I have to upload a pbix using rest api but I am unable to do so. I am getting 401 error when I am trying to publish the reports whereas I am able to download the pbix files. (Tried in browser itself)

https://docs.microsoft.com/en-us/rest/api/power-bi/imports/postimport

I tried in the browser and using postman but received the same error.

 

power bi import.png


I have given all the permissions to the app then too I am getting Error 401.

 

app permision.png


What do I need to change/modify?

3 REPLIES 3
GilbertQ
Super User
Super User

Hi there

Have you created the app with the correct permissions in Azure Active Directory?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi

Yes I granted the permissions to the app. Still I am facing the issue. I am able to refresh using rest api and I am able to download the pbix but I am unable to upload it.

Here's the image

grant admin permission issue.PNG

You then should be able to upload

What permissions do you have on the App Workspace?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors