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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ravigol
Frequent Visitor

issue with Export page in PowerBI Report to PDF

Trying to Export PwoerbI report by calling below methods in PowerBI APi  using ServicePrinciple.

Step1; Posting Export Request using below method.

client.Reports.ExportToFileInGroupWithHttpMessagesAsync (groupId, reportId, exportRequest).Result;

Step2; Checking Export status using below method .

client.Reports.GetExportToFileStatusInGroupWithHttpMessagesAsync(groupId, reportId, exportId).Result;

Export status is Failed then Retrying 3 times from step1.

Step3; Export status is Succeeded   then trying to Export the file  with below method.

client.Reports.GetFileOfExportToFileAsync(groupId, reportId, export.Id).Result;

But gettign below response from API if we try to export only one Page  but for  other pages export is wokring.

Resposne:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Service Unavailable</title>
<style type="text/css">
body, p, h1 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
}
h2 {
  font-family: Arial, Helvetica, sans-serif;
  color: #b10b29;
}
</style>
</head>
<body>
<h2>Service Unavailable</h2>
<p>The service is temporarily unavailable. Please try again later.</p>
</body>
</html>

Please let us know  if any inof on this.

0 REPLIES 0

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors