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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
elevenyi11
New Member

Power bi rest api Export file error "Export report was called with an unsupported file format"

Hello!

While trying to test REST Api for export to file, i am facing the below issue.

Now I can export pdf,pptx, jpeg files, but I can not export  XLSX,CSV files.

https://docs.microsoft.com/en-us/rest/api/power-bi/reports/exporttofile

export step sample:

1.PostExportRequest

2.PollExportRequest

3.ExportPowerBIReport

4.GetExportedFile


"error": {
       "code": "InvalidRequest",
       "message": "Export report was called with an unsupported file format"
}

1 ACCEPTED SOLUTION
AmosHersch
Microsoft Employee
Microsoft Employee

Hi @elevenyi11 ,

 

Is your report a paginated report? The files format for whom you get the error are only supported when exporting a paginated report.

See here the available formats and their limitations: Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn

View solution in original post

1 REPLY 1
AmosHersch
Microsoft Employee
Microsoft Employee

Hi @elevenyi11 ,

 

Is your report a paginated report? The files format for whom you get the error are only supported when exporting a paginated report.

See here the available formats and their limitations: Reports - Export To File - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.