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

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
jhart-moq
Regular Visitor

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

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
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.