Forum Discussion
Problem using page.getFilters()
YES! I am also having a similar problem!!! However my issue is with a call to setFilters(). It was previously working fine but something appears to now be broken, without any change being applied by us.
Failed to execute 'postMessage' on 'Window': TypeError: cannot read property 'instanceOfIVisualLevel' of undefined could not be cloned."
If any Power BI MS devs are reading this... please investigate ASAP!
I have updated our code to the latest version of the Power BI Javascript API, but still appears to be broken.
I can confirm that in my case;
1. page.setFilters() and visual.setFilters() are the methods that I am calling first.
2. These all fail with the errors identified above by the OP.
3. If the user interacts with the report (i.e. does some clicking), and then interacts with our HTML controls that are outside the Power BI Embedded iframe (i.e. and call the Power BI Javascript API in response to the updates) then the next calls to page.setFilters(), visual.setFilters() work successfully.
MS Power BI team, PLS HALP!
- jimmcslim8 years ago
Helper III
Can someone look into this, because it really does feel like something has broken in the back-end that has caused our app to break without any other changes having been made.
- AntonioCoelho8 years ago
Advocate II
I'm having the same problem. When calling page.getFilters() and page.setFilters()..