Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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>