Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.