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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Export report in Power Automate: "PowerBINotAuthorizedException"

Hi, 

 

I'm using the action "Export To File for Power BI Reports" in Power Automate flow. It was working fine before, until recently it produces the error below. 

 

"error": {
"code""PowerBINotAuthorizedException",
"pbi.error": {
"code""PowerBINotAuthorizedException",
"parameters": {},
"details": [],
"exceptionCulprit"1
}}
 
Any ideas?
4 REPLIES 4
Anonymous
Not applicable

This was working fine for me last week but now I am also experiencing basically this same issue with two minor differences:

- I am authenticating with an AzureAD service principal not a Azure AD User

- I am using the export-to-file-in-group api endpoint

{"error":{"code":"PowerBINotAuthorizedException","pbi.error":{"code":"PowerBINotAuthorizedException","parameters":{},"details":[],"exceptionCulprit":1}}}

 

I'd like to point out this service principal can authenticate just fine and perform other API requests that require authentication without issue, such as:

- get-pages-in-group

- get-report-in-group

Anonymous
Not applicable

I'd like to report that my issue is now resolved today. No actions were taken on my end, looks like it was just a temporary bug in the PowerBI platform. 

I tested this morning by dropping the account back to a Contributor role in the workspace.  I was able to successfully export images again.  It appears that the issue has been resolved in our tenant.   

rjhale
Helper IV
Helper IV

I started seeing the same thing this past Friday.  We confirmed that the user account that is doing the export is a member of the security group that allows for exporting of images in Power BI.  Nothing else has changed in our workspace or dataset permissions.  The interesting/odd part is that if we give that account admin rights to the workspace where that dataset is published, it can export images using that Power Automate action.  If we drop the rights back down to Contributor (the role that account has always had), the problem returns.  

 

I'm wondering if Microsoft changed something about how the permissions work with this policy?  

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors