Forum Discussion
PowerBI Visuals API updating issue
- 10 months ago
Hi TheoAu ,
As the Troubleshooting steps didn't helped in solving the issue, I would suggest to raise support ticket using Microsoft's official support ticket channel using below link:
Create a Fabric and Power BI Support Ticket - Power BI | Microsoft Learn
Thank you.
Hi TheoAu ,
Thank you for reaching out to Microsoft Fabric Community.
This behavior happens because Power BI sometimes reloads the visual’s container when switching pages but doesn’t trigger the visual’s update event.
To fix it, make sure your visual refreshes itself when it becomes visible again - for example, by handling visibility or resize events inside your visual logic.If you prefer not to modify the code, you can temporarily refresh the report page or toggle between edit/view mode as a workaround.
The root cause is a known limitation in the Power BI Visuals API, and Microsoft is tracking it in Power BI Visual API; update method not called when changing tabs · Issue #519 · microsoft/PowerBI-visuals-tools
as already mentioned by you.
Until it’s resolved, ensuring the visual re-renders when returning to a page (via visibility or resize triggers) is the recommended approach.
- TheoAu10 months agoFrequent Visitor
Hi, thank you for your answer !
I tried to make the visual refresh itself by:
- Using the fetchMoreData function: no result, the update function is still not called.
- Calling the update() function myself, but I can't pass the VisualUpdateOptions param as I only have VisualConstructorOptions in the constructor.
Do you have any workarounds to make the visual refresh itself directly in the code? I would prefer not to force the user to refresh the report or toggle the edit/view mode. You also said to use visibility or resize triggers? Are these powerbi visuals api functions?Have a nice day