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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Export report to PDF fails after a long time(5mins) when used with state and a custom visual

Expectation: report downloads and the custome visuals Do Not display 

Relatity:  pdf download will fail after 5 minutes of polling

 

If I remove the state, the report will download as expected.

 

I follow the code example pretty closely 

 

in js i use:

 

report.bookmarksManager.capture();

 

 

and in c#

 

var exportRequest = new ExportReportRequest
{
Format = FileFormat.PDF,
PowerBIReportConfiguration = new PowerBIReportExportConfiguration()
{
Pages = new[] { new ExportReportPage(request.PageName, bookmark: new PageBookmark { State = request.State }) },
Identities = effectiveIdentities.ToList(),
},
};

 

var export = await client.Reports.ExportToFileInGroupAsync(groupGuid, powerBiReportId, exportRequest);


This system work well, untill there is a custom visual involved. I expect an error symbol to show, however the report hangs at 0 percent for about 5 minutes (via client.Reports.GetExportToFileStatusInGroupWithHttpMessagesAsync), and then fails

 

This should be supported or documented in the limitations 

 

Is this a temporary issue, or planned to be fixed? 

Is there

 

documentaion resources:

https://powerbi.microsoft.com/en-ca/blog/export-report-to-pdf-pptx-and-png-files-using-power-bi-rest...

 

Status: New
Comments
v-chuncz-msft
Community Support

@timker

 

That is in preview. You may check this link and share feedback via Ideas.

timker
Advocate I

Thanks @v-chuncz-msft 

 

I was aware it's in preview,I'm assuming "preview features" are to get feedback, and to iron out early adpoter issues.

 

I needed a place to show an issue with the current preview implementation.

 

The devs are aware, and hopefully:

  • plan to fix
  • update the known issues documentation, so others can if it is useful for their requirements.

 

Cross post posting "preview bugs" to "ideas" seems weird, but happy to do it if the recommendation.