<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem using page.getFilters() in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/509590#M15710</link>
    <description>&lt;P&gt;For everyone interested, I'm assuming that the issue causing this forum thread is related to the last Awareness item listed on this page &lt;A href="https://powerbi.microsoft.com/en-us/support/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/support/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H3&gt;Customers using Power BI Embedded APIs to set report filters may experience error applying filters. This issue happens only if a report has Custom visuals. The fix will be deployed to production by end of day on 9/7. Next update @ 9/7/18 at 16:00 PDT.&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm not sure there's going to be any resolution before then.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2018 18:19:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-06T18:19:31Z</dc:date>
    <item>
      <title>Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/504821#M15517</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm having an issue where I can get a report embedded, and (as shown in the image) I can perform a getPages() on the report and it returns the explected results of enumerating the pages from the report. So then I pull out a particular page using the page(&amp;lt;pageName&amp;gt;) function and assign it to a variable, the problem comes in when I try to use page.getFilters() for some reason the promise is being broken, and so I am unable to get the filters that are on the page. I never had any trouble with this previously so I'm not sure what changed, but I'd really wish it would go back to just working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 408px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/116873i4D647699873451B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 23:20:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/504821#M15517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-31T23:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/507502#M15632</link>
      <description>&lt;P&gt;I'm still running into issues with this, but I've been able to find a workaround, once the user interacts with the page and applies a filter, then the getFilters() function started returning working promises again.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 00:00:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/507502#M15632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-05T00:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/507675#M15633</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failed to execute 'postMessage' on 'Window': TypeError: cannot read property 'instanceOfIVisualLevel' of undefined could not be cloned."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any Power BI MS devs are reading this... please investigate ASAP!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have updated our code to the latest version of the Power BI Javascript API, but still appears to be broken.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 05:48:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/507675#M15633</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-09-05T05:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/507725#M15637</link>
      <description>&lt;P&gt;I can confirm that in my case;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. page.setFilters() and visual.setFilters() are the methods that I am calling first.&lt;/P&gt;&lt;P&gt;2. These all fail with the errors identified above by the OP.&lt;/P&gt;&lt;P&gt;3. If the user interacts with the report (i.e. does some clicking), and then interacts with our HTML controls that are outside the&amp;nbsp;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()&amp;nbsp;work successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MS Power BI team, PLS HALP!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 06:28:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/507725#M15637</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-09-05T06:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/508716#M15677</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 04:09:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/508716#M15677</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-09-06T04:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/509106#M15691</link>
      <description>&lt;P&gt;I'm having the same problem. When calling page.getFilters() and&amp;nbsp;&lt;SPAN&gt;page.setFilters()..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 09:43:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/509106#M15691</guid>
      <dc:creator>AntonioCoelho</dc:creator>
      <dc:date>2018-09-06T09:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/509590#M15710</link>
      <description>&lt;P&gt;For everyone interested, I'm assuming that the issue causing this forum thread is related to the last Awareness item listed on this page &lt;A href="https://powerbi.microsoft.com/en-us/support/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/support/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;H3&gt;Customers using Power BI Embedded APIs to set report filters may experience error applying filters. This issue happens only if a report has Custom visuals. The fix will be deployed to production by end of day on 9/7. Next update @ 9/7/18 at 16:00 PDT.&lt;/H3&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm not sure there's going to be any resolution before then.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 18:19:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/509590#M15710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-06T18:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/509772#M15713</link>
      <description>&lt;P&gt;Thanks for spotting that @Anonymous&lt;/a&gt;&amp;nbsp;! I'm pretty certain that I'm not using custom visuals at all... but might be the best hope for a resolution at the moment.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 00:38:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/509772#M15713</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-09-07T00:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/511114#M15769</link>
      <description>&lt;P&gt;This is still a problem.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Sep 2018 23:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/511114#M15769</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-09-09T23:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/511320#M15771</link>
      <description>&lt;P&gt;This is an interesting Stack Overflow discussion...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/52122011/failed-to-execute-postmessage-on-window-googletagmanager/52223341#52223341" target="_blank"&gt;https://stackoverflow.com/questions/52122011/failed-to-execute-postmessage-on-window-googletagmanager/52223341#52223341&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically about Google Tag Manager, but a similar error, and alot of people reporting this RECENTLY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another SO post...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/52184392/powerbi-javascript-set-page-filters-without-set-report-filter-first" target="_blank"&gt;https://stackoverflow.com/questions/52184392/powerbi-javascript-set-page-filters-without-set-report-filter-first&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suggests the issue is with attempting to set a page filter BEFORE a report filter - and says that this can be reproduced on Microsoft's own hosted samples!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also consider:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/52122011/failed-to-execute-postmessage-on-window-googletagmanager/52223341#52223341" target="_blank"&gt;https://stackoverflow.com/questions/52122011/failed-to-execute-postmessage-on-window-googletagmanager/52223341#52223341&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 06:33:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/511320#M15771</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-09-10T06:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/511570#M15777</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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: &amp;lt;root&amp;gt; ; 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)&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Sep 2018 08:25:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/511570#M15777</guid>
      <dc:creator>Rich2852</dc:creator>
      <dc:date>2018-09-10T08:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/511911#M15792</link>
      <description>&lt;P&gt;I have logged a support case with microsoft. They are looking into a fix but they have the following work around:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://powerbi.microsoft.com/en-us/support/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/support/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 13:19:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/511911#M15792</guid>
      <dc:creator>Rich2852</dc:creator>
      <dc:date>2018-09-10T13:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using page.getFilters()</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/512258#M15800</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32769"&gt;@Rich2852&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I have logged a support case with microsoft. They are looking into a fix but they have the following work around:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/32769"&gt;@Rich2852&lt;/a&gt;&amp;nbsp;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!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 22:41:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Problem-using-page-getFilters/m-p/512258#M15800</guid>
      <dc:creator>jimmcslim</dc:creator>
      <dc:date>2018-09-10T22:41:38Z</dc:date>
    </item>
  </channel>
</rss>

