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.
After executing the last line, i.e.
return await GetExportedFile(ReportID, GroupID, export);
It takes me to the browser with a error pop-up. Only "error" written on the pop-up.
It does not showing any exception in Catch and report not downloaded!
public async Task<ExportedFile> ExportPowerBIReport(Guid ReportID, Guid GroupID, FileFormat format, int pollingtimeOutInMinutes, CancellationToken token, IList<string> pageNames = null)
{
try
{
var exportId = await PostExportRequest(ReportID, GroupID, format, pageNames);
var export = await PollExportRequest(ReportID, GroupID, exportId);
if (export == null || export.Status != ExportState.Succeeded)
{
// Error, failure in exporting the report
return null;
}
return await GetExportedFile(ReportID, GroupID, export);
}
catch (Exception ex)
{
// Error handling
throw ex;
}
}
Can someone help me in this ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.