This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Summary:
If a report used Bootstrap without specifying an embedUrl, the BookmarksManager will not work.
Detail:
According to the Bootstrap API documentation, the embedUrl is not a required property ( https://github.com/microsoft/PowerBI-JavaScript/wiki/Bootstrap-For-Better-Performance#bootstrap-embe... ). So when I use this API, I don't specify the embedUrl because I don't know it at that moment and later I load the report using a complete embed configuration (so far everything works fine)
The BookmarksManager is initialized when the bootstrap process begins and at that moment it keeps a copy of the embeb configuration that does not have the embedUrl. The problem is that when the report is fully loaded using a complete embed configuration, the copy of the config that the BookmarksManager had is not updated. So when the BookmarksManager is used, it calls the isRDLEmbed function that does not check if the embedUrl is undefined and it will crash on the line "return embedUrl.toLowerCase().indexOf("/rdlembed?") >= 0"
Workaround:
For now I have specified an embedUrl ( "https://app.powerbi.com/reportEmbed" ) when bootstrapping, but I don't think that it's a good idea to hard-code that url in my program because I guess it could change in the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.