Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Export to File for PowerBi Reports

(0) ShareShare
ReportReport
Posted on by

Hi All, I have created a flow to Export to File for PowerBi Reports in pdf format. I am getting the below error : 

 

The "Content-Type": "application/json", its usually generates as "Content-Type": "application/pdf", Please help me how to correct this error. I have verified PowerBi source credentials created using Microsoft account and Organizational.

 

{
"statusCode": 400,
"headers": {
"Pragma": "no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Frame-Options": "deny",
"X-Content-Type-Options": "nosniff",
"RequestId": "e0205f77-e065-4ae8-91d3-941bb5c8dfbc",
"Access-Control-Expose-Headers": "RequestId",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Cache-Control": "no-store, must-revalidate, no-cache",
"Date": "Fri, 18 Aug 2023 18:31:56 GMT",
"Content-Length": "116",
"Content-Type": "application/json"
},
"body": {
"error": {
"code": "InvalidRequest",
"message": "Export report was called with a bad request"
}
}
}

  • Nived_Nambiar Profile Picture
    17,911 Super User 2025 Season 1 on at
    Re: Export to File for PowerBi Reports

    Hi @titanic123 

     

    Could you share how you have configured the action properties for to use in flow ?

     

    Also refer these links :

     

    https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-ExportTo-Bad-Request/m-p/1722986

    https://community.fabric.microsoft.com/t5/Issues/Power-BI-REST-API-ExportToFileInGroup-stopped-working/idi-p/3006205

     

    I hope this would help you in resolving the error 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1