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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Export report .pbix REST API

Hi everyone!

 

We're trying to export a pbix file from one of our reports in PowerBI Service. While doing so in the app.powerbi.com portal the download occurs just fine, however if we use Microsoft.PowerBI.Api.V2 assembly (which makes requests to the REST API) the following exception occurs:

 

System.Threading.Tasks.TaskCanceledException: A task was canceled.
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Microsoft.PowerBI.Api.V2.Reports.<ExportReportInGroupWithHttpMessagesAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.PowerBI.Api.V2.ReportsExtensions.<ExportReportInGroupAsync>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---

 

This happens when we use the async method, and the synchronous one just locks the execution, as if it blocked waiting an response from the server (which didn't come in 24 hours). It is worth saying that the same method works to download smaller files (15MB ~), however the report that generates this error has 700MB (when downloaded from app.powerbi.com). 

 

Is there a size limit for downloading files through the API? Or maybe some configuration that is missing?

 

Thanks in advance,

 

Matheus.

0 REPLIES 0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.