Forum Discussion
Problem using page.getFilters()
I'm also having the same issue in my application. I noticed Power Bi was reporting a fault on Friday about filtering if you were using custom visuals. I've created a new report, with no custom visuals and just one graph and I'm getting the same issue when filtering:
reportEmbed.min.js:1 Unhandled Promise rejection: Failed to execute 'postMessage' on 'Window': TypeError: Cannot read property 'instanceOfIVisualLevel' of undefined could not be cloned. ; Zone: <root> ; Task: Promise.then ; Value: DOMException: Failed to execute 'postMessage' on 'Window': TypeError: Cannot read property 'instanceOfIVisualLevel' of undefined could not be cloned.
at e.sendResponse (https://app.powerbi.com/13.0.6617.130/externals/windowPostMessageProxy.min.js:2:3035)
at https://app.powerbi.com/13.0.6617.130/externals/windowPostMessageProxy.min.js:2:4753
at t.invoke (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:449376)
at e.run (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:444540)
at https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:455835
at t.invokeTask (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:450060)
at e.runTask (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:445234)
at v (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:452421)
at e.invokeTask (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:451223)
at i.isUsingGlobalCallback.invoke (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:451082) Error: Failed to execute 'postMessage' on 'Window': TypeError: Cannot read property 'instanceOfIVisualLevel' of undefined could not be cloned.
at e.sendResponse (https://app.powerbi.com/13.0.6617.130/externals/windowPostMessageProxy.min.js:2:3035)
at https://app.powerbi.com/13.0.6617.130/externals/windowPostMessageProxy.min.js:2:4753
at t.invoke (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:449376)
at e.run (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:444540)
at https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:455835
at t.invokeTask (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:450060)
at e.runTask (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:445234)
at v (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:452421)
at e.invokeTask (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:451223)
at i.isUsingGlobalCallback.invoke (https://app.powerbi.com/13.0.6617.130/scripts/reportEmbed.min.js:1:451082)I have logged a support case with microsoft. They are looking into a fix but they have the following work around:
Customers may receive an error while setting or getting page-level filters or visual-level filters using the Power BI embedded javascript API. As a workaround, customers can pass in any filter object in load config. Engineers are investigating the issue. Next update @ 9/10/18 at 9:00AM PDT.
- jimmcslim8 years ago
Helper III
Rich2852 wrote:I have logged a support case with microsoft. They are looking into a fix but they have the following work around:
Rich2852 if I could give you +100 Kudos, I would! You are a legend! Let's hope the Power BI team comes out with a fix sooner rather than later, and hopefully some regression testing to ensure this doesn't happen again!