<?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: API activePage.getFilters() throws 500 after drill through from a page with bookmark applied. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-activePage-getFilters-throws-500-after-drill-through-from-a/m-p/3262198#M42889</link>
    <description>&lt;P&gt;MS support said the 500 was expected when the filters pane is hidden.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":upside_down_face:"&gt;🙃&lt;/span&gt;&amp;nbsp;As a work around I have implemented to show the filter pane, getFilters(), hide the filters all behind a loading sign until everything is ready.&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 14:51:52 GMT</pubDate>
    <dc:creator>coffey88</dc:creator>
    <dc:date>2023-05-31T14:51:52Z</dc:date>
    <item>
      <title>API activePage.getFilters() throws 500 after drill through from a page with bookmark applied.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-activePage-getFilters-throws-500-after-drill-through-from-a/m-p/3242892#M42739</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;We have a report page with bookmark applied. After clicking an item to drill through to, the embed drills through successfully. However I am trying to get the current filters/visuals from the active page during the 'rendered' event. I have found that if I have the settings like this:&lt;BR /&gt;&amp;nbsp;settings: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; panes: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; filters: {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visible:&amp;nbsp;true,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; expanded:&amp;nbsp;true&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;The activePage.getFilters works as expected. However when visible is false. I can debug to a 500 from PBIs api request.&lt;/P&gt;&lt;P&gt;If their is no bookmark state applied, it does not 500. I wonder if it has to do with a filter that is within the bookmark state. When the filters are visible, I noticed this filter in the result of getFilters, that stood out to me:&lt;BR /&gt;{&lt;BR /&gt;"$schema": "&lt;A href="http://powerbi.com/product/schema#notSupported" target="_blank" rel="noopener"&gt;http://powerbi.com/product/schema#notSupported&lt;/A&gt;",&lt;BR /&gt;"target": null,&lt;BR /&gt;"filterType": 2,&lt;BR /&gt;"message": "Not supported filter type - can't serialize to json syntax.",&lt;BR /&gt;"notSupportedTypeName": "Passthrough"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I wonder if this is some how breaking the non-visible getFilters call? This was all reproducable in the PBI Playground. From a developer POV, the visibility of filters pane should not determine the result of the getFilters API call.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 May 2023 18:51:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-activePage-getFilters-throws-500-after-drill-through-from-a/m-p/3242892#M42739</guid>
      <dc:creator>coffey88</dc:creator>
      <dc:date>2023-05-18T18:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: API activePage.getFilters() throws 500 after drill through from a page with bookmark applied.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-activePage-getFilters-throws-500-after-drill-through-from-a/m-p/3262198#M42889</link>
      <description>&lt;P&gt;MS support said the 500 was expected when the filters pane is hidden.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":upside_down_face:"&gt;🙃&lt;/span&gt;&amp;nbsp;As a work around I have implemented to show the filter pane, getFilters(), hide the filters all behind a loading sign until everything is ready.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:51:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-activePage-getFilters-throws-500-after-drill-through-from-a/m-p/3262198#M42889</guid>
      <dc:creator>coffey88</dc:creator>
      <dc:date>2023-05-31T14:51:52Z</dc:date>
    </item>
  </channel>
</rss>

