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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Power BI JavaScript API - Error Visual getFilters on report level

Hi,

 

I'm using the Power BI JavaScript API and when using the getFilters method I get an http error 500 from Power BI. No description is returned. 

 

It only happens with some reports that were working fine a couple of weeks ago.

 

Has something changed in the API?

Status: New
Comments
v-chuncz-msft
Community Support

@AntonioCoelho 

 

The online demo works fine. You may try getting a network trace using a tool like fiddler.

AntonioCoelho
Advocate I

Hi,

 

I can not reproduce in the demo as well. 

 

After further investigation, the error is 500 but no connecting is made in fiddler. I also checked the network tab on the browser and can not see anything. 

 

The error is happening using the method "getFilters" from a visual. I can see the visual and interact with it. But when trying to get the filters from the report, I receive the following error with no details.

 

Browser Console Log:

 Error.png

 

Code:

visual.getFilters(models.FiltersLevel.Page)
   .then(function (pageFiltersParam) {

   }).catch(function (error) {
    console.error(error);
   });