Showing results for 
Search instead for 
Did you mean: 
New Member

Bookmark export functionality in REACT pbi report


I have implemented a pbi report using the react implementation similar to this demo .

I am trying to implement export functionality via the bookmark method similar to the JS bookmark method here .


Unfortunately trying to capture the report state via:

produces this error:

powerbi.js:1256 Uncaught (in promise) TypeError: Cannot read property 'toLowerCase' of undefined


This seems to be attributed to the values in bookmarksManager.config being undefined and never getting populated and this appears to also be the case in react demo.

Is there a way to populate the values in bookmarksManager.config and export reports using this method in a react implementation?




Frequent Visitor

I got something working but it's hacky:


 report.on('rendered', async () => {
  report.bookmarksManager.config = report.config; // this stops the errors for now
  const bookmarks = await report.bookmarksManager.getBookmarks();


Really frustrating though. Looks like there's a bug in the js package.

getBookmarks calls isRDLEmbed which expects this.config.embedUrl to be defined, but it's only defined on the report, not the bookmarksManager.


Also the official docs about loading a bookmark by name using static config doesn't seem to work either:


Tried downgrading to 2.14.1 as suggested here

But the only thing that worked for me was setting bookmarksManager.config



Looks like there's already a pr that'd stop the error. Not sure it'd fix the whole problem though, since the bookmarkManager still wouldn't have config defined.

Not applicable



Did you ever figure out the solution for this? I am getting the same error when calling "apply(...)".

Helpful resources

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors