Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 49061

GenerateTokenRequest returns Operation returned an invalid status code 'BadRequest' error

$
0
0

We are using the PowerBI embed feature to embed PowerBI reports in our MVC .Net application. It works for all kind of reports excepts for Paginated reports. For paginated reports when we try to generate a token using GenerateTokenInGroupAsync method, it returns Operation returned an invalid status code 'BadRequest' error.

 

We are using the following piece of code to generate token, are we missing anything here for Paginated reports?

---------------------------------------------------------------------------------------------------------------------------

GenerateTokenRequest generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view");

var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(WorkspaceID, report.Id, generateTokenRequestParameters);


Viewing all articles
Browse latest Browse all 49061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>