Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
coffey88
Frequent Visitor

API activePage.getFilters() throws 500 after drill through from a page with bookmark applied.

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:
 settings: {
            panes: {
                filters: {
                    visible: true,
                    expanded: true
                },
            }
}
The activePage.getFilters works as expected. However when visible is false. I can debug to a 500 from PBIs api request.

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:
{
"$schema": "http://powerbi.com/product/schema#notSupported",
"target": null,
"filterType": 2,
"message": "Not supported filter type - can't serialize to json syntax.",
"notSupportedTypeName": "Passthrough"
}

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.

1 ACCEPTED SOLUTION
coffey88
Frequent Visitor

MS support said the 500 was expected when the filters pane is hidden. 🙃 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.

View solution in original post

1 REPLY 1
coffey88
Frequent Visitor

MS support said the 500 was expected when the filters pane is hidden. 🙃 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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.