Forum Discussion
bookmarksManager.getBookmarks fails
Hi, I have a simple test report which I have embedded in a C# project .Net 5.0. The report has one bookmark called "Reset", which clears all filters. The report loads successfully, apart from the bookmark js code on line 73 below, where the error is caught at line 79:
This is the error message I get:
The file powerbi.min.js version: powerbi-client v2.16.5
What I want to accomplish is to have all filters in the report being reset (according to the default state of bookmark "Reset") upon startup of the report. Because, when I develop reports, I tend to forget to reset all testing filters I have added before publishing to Power BI Service, so the report users get my testing filters.
Hope somebody can help!
/E
2 Replies
- AnonymousNot applicable
Hi Anonymous ,
According to the error message, it seems that you need to add the interact.min.js.map
In addition, there is a similar thread which suggest we use Chrome instead of Firefox, please refer to:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- AnonymousNot applicable
Hi,
Shouldn't the interact.min.js.map be loaded automatically by the Power BI js api? What could be the reason for it not being found? I am using latest Chrome, by the way.
Anyway, I suspect that a missing interact.min.js.map is not the reason for report.bookmarksManager.getBookmarks() failing. The embedded report loads fine and works, it is just the call to report.bookmarksManager.getBookmarks() that fails. A call to report.getPages() works fine.
/E