Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |