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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

powerbi-client-react Report.refresh() throwing undefined error

All of the refresh buttons for our reports have stopped working. Report.reload() works fine but they try/catch for our refresh request hits catch with an error on "undefined".

 

We're closing GitHub issues on 01/01/2025 · Issue #122 · microsoft/powerbi-client-react suggests to raise the issue here. Is anyone else having this problem or know of a fix?

3 REPLIES 3
robyfauvess
Regular Visitor

Hello,

 

I have done all tests requested. There are no issues refreshing the reports locally nor there are in powerbi.com. The workpace is accessible and correctly configured.

The reports my colleageue is referring to used to work correctly until we updated the components lately and as he mentioned if we use the reload method instead of the refresh it works correctly. We do not want to use the reload method currently as it will have an impact on performances but the fact it's working proves the issue is not within reports or the online service but somewhere in the react components or our use of them.

 

 

 

 

Anonymous
Not applicable

No. This is on the powerbi-client-react Report.refresh method. When I make the request, it always returns an "undefined" error.

MSmithAccesso_0-1730971204867.pngMSmithAccesso_1-1730971230080.png

If I do reload, it works fine but there seems to be an issue specifically with the refresh method:

MSmithAccesso_2-1730971291584.png

 

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Is your issue that the refresh report button has no effect when used? Or is the button grayed out and not working?
Is this issue on Power BI Service or Power BI Desktop?


If this is a Power BI Service issue, you can download it locally and test if it can be successfully refreshed in Power BI Desktop.

 

Please check if the credentials of the data source in your semantic model are configured correctly, and what connection mode the data is connected (import/directquery/live connection), and if you need to configure the gateway for refreshing.


Lastly, are your reports in your Personal workspace or App workspace? If in App workspace, can you please ask if your teammates can refresh this report successfully.

 

For reference: 
Data refresh in Power BI - Power BI | Microsoft Learn

Install an on-premises data gateway | Microsoft Learn

Configure scheduled refresh - Power BI | Microsoft Learn

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.