Skip to main content
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.

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


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:

and the calling the ...

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?

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?

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.

Community Champion
Community Champion

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

Helpful resources

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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


Power BI Monthly Update - May 2024

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