The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
In the Playground I can use the URL Parameter rp to pass parameter values to the Report but this does not work when using the PowerBI-JavaScript.
Hi @DJBadin,
>>If I change the following powerbi.js code to use "rdlEmbed" instead of "reportEmbed" it works.
Power bi embedded use different API to handle common power bi contents and paginated report.
In addition, you can also take a look at the following link about use filter on embed paginated report:
Filters (Parameters) for RDL (Paginated) report in... - Microsoft Power BI Community
Regards,
Xiaoxin Sheng