cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

GenerateTokenInGroupAsync method returned Operation returned an invalid status code 'BadRequest'

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);

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

 

0 REPLIES 0

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors