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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. 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
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Top Solution Authors