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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DebbieE
Community Champion
Community Champion

Exporting Power BI reports using APIs and Power Automate Error 502

'We' are trying to export some Power BI reports into Power point 

 

It was tested successfully using a service user that has Admin access to the workspace where we have the reports

PowerAutomate.png

We have a solution that changes through time and we don’t know exactly which reports we need to export we need to have a way to dynamically export the reports.

 

We thought about doing this using a custom connector to iterate through the reports for the group:

https://learn.microsoft.com/en-us/rest/api/power-bi/reports/get-reports-in-group

and the calling the ...

https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file-in-group

now our issue is ...

 

Error 502.png



We are using Basic Authentication here using the same service user and in theory this is connected 

 


Has anyone tried to connect to the Power BI APIs above using basic authentication and should this work?



4 REPLIES 4
lbendlin
Super User
Super User

502 means internal server error.  Either there was an ephemeral issue on the server, or your request is malformed in a way that you are crashing the server.

 

You  say that the REST API sandbox tests work?

DebbieE
Community Champion
Community Champion

I believe so. Bearing in mind i have put this up for someone elses project work, so I would have to ask for more details

I would tell them to reconsider. The whole functionality around exports is rather fragile and not scalable for enterprise use.

DebbieE
Community Champion
Community Champion

As is the way, there is no possibility of changing their minds on this one

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.