Forum Discussion
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"
}
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
1 Reply
- AmosHersch
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