The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi there.
We have multipages reports. And we filter each page by region. For example, page 1 - USA, page 2 - Canada.
PowerBI.Js - last version
Everything works fine in June, but now its not working :
report.page(pageName).setFilters(arrF).catch(errors => {
// Handle error
});
Exception in file reportEmbed.min.js which located on https://app.powerbi.com/13.0.6517.123/scripts/reportEmbed.min.js:
What it means and how could I fix this problem?
Thanks for help.
We have the same problem. Page level filters are not set from JavaScript and same error is seen in console.
I have created a support ticket with Azure Support for this
@martin2 Thanks. If you will know new information or some updates, please write here.
There is now a notification about this on the status page https://powerbi.microsoft.com/en-us/support/
Users of the Power BI Embedded APIs for report filters may experience errors applying their filters. The fix will be deployed to production by end of day on 9/7. Next update @ 9/7/18 at 16:00 PDT.
I can add that I am using the depricated (but at least until last week functioning) angular-powerbi https://github.com/Microsoft/powerbi-angular component. It may be the cause of the problem.
@martin2 Thanks for your post! I look forward for this fix.
I use powerbi.js last version, so I think its not a sdk problem. It`s a powerBI service issue.
I don`t know why, but they changed text to This issue happens only if a report has Custom visuals.
But I don`t use custom visuals!
The fix did not help us unfortunately. However we have found a workaround. We are using page level filters but if we change to report level filtering the problem does not show
var embedContainer = $('#reportContainer')[0]; var report = powerbi.get(embedContainer); //Works report.setFilters(filterArray); //Fails report.getPages() .then(function (pages) { pages[0].setActive(); pages[0].setFilters(filterArray); })