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.
How do I get my Paginated Report to work without changing powerbi.js to use rdlEmbed instead of reportEmbed?
I am trying to make AppOwnsData for .NET Core work with my Paginated Reports.
Using PowerBI-JavaScript powerbi-client, I call powerbi.embed(reportContainer, config) and I get "This content isn't available.".
var config =
{
type : 'report'
, tokenType : models.TokenType.Embed
, accessToken : txtAccessToken
, embedUrl : txtEmbedUrl
, id : txtEmbedReportId
, permissions : permissions
, settings :
{
background: models.BackgroundType.Transparent
, bars :
{
actionBar :
{
visible : false
}
}
, panes :
{
pageNavigation :
{
visible : false
}
}
}
};
var reportContainer = $("#report-container").get(0);
report = powerbi.embed(reportContainer, config);
If I change the following powerbi.js code to use "rdlEmbed" instead of "reportEmbed" it works.
Line 6521
Create.prototype.getDefaultEmbedUrlEndpoint = function () {
return "reportEmbed";
};
Line 8623
Report.prototype.getDefaultEmbedUrlEndpoint = function () {
return "reportEmbed";
};
The Paginated Reports were SSRS Reports that I opened in Power BI Report Builder and Published to the Power BI Service. The reports use Direct Queries and have Parameters.
Upgrading did not help:
- Microsoft.PowerBI.API 3.21.0 to 3.23.0
- PowerBI-JavaScript 2.16.5 to 2.18.0
The accessToken and embedURL work in the Microsoft Power BI Embedded Playground.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.