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.
Hi,
We are trying to embedded paginated report to Asp.net MVC application. While trying for that facing issue on Generate token step and getting 'Bad Request' error. With the similar parameters we are able to generate token for regular PowerBI Report.
We are using Microsoft.PowerBI.API nuget package for generate token and embedd purpose.
Sample code :
var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: View,
identities: new List<EffectiveIdentity> { new EffectiveIdentity(
username: userId.ToString(),
reports: new List<string>{ reportId.ToString()})});
tokenResponse = client.Reports.GenerateTokenAsync(groupId, reportId, generateTokenRequestParameters).Result;
Are we missing some parameter here?. Thanks in advance.
Solved! Go to Solution.
Hi @josephrxavier ,
According to the offical blog, steps of embedding paginated report is similar as embedding Power BI Report. Please check whether you have conigufred the capacity correctly.
Here are some offical blogs about how to Embed paginated reports.
For reference:
Embed Power BI paginated reports
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the suggestions. I tried to check more on embedding paginated report and found like we need to use service principal account for embedding instead of master user. So checking on this direction. Please correct me if it is wrong.
Hi @josephrxavier ,
You can also try to see if you got any meaningful information in the response body. Sometimes it has more detailed info about the reason you got the bad request error.
Please note that some scenarios aren't supported, for example if your paginated report has a Power BI Dataset as a Datasource (that's coming soon), or if one of your Datasources is configured with SSO enabled.
Hi @josephrxavier ,
According to the offical blog, steps of embedding paginated report is similar as embedding Power BI Report. Please check whether you have conigufred the capacity correctly.
Here are some offical blogs about how to Embed paginated reports.
For reference:
Embed Power BI paginated reports
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
23 | |
3 | |
2 | |
2 | |
2 |