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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors