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
wolfgang2
Frequent Visitor

Custom Power BI Visual Not Updating After Repackaging – New version fails to replace old version

Hi everyone,

I’m facing an issue with a Power BI custom visual update and wanted to see if anyone has experienced something similar.

Here’s what’s happening:

  • I made changes to an existing custom visual

  • I packaged the visual and uploaded the new .pbiviz file

  • Power BI replaces the old visual, but the new changes do not appear even If I interact with the visual

  • It looks like the older version/instance is still being used

  • However, if I:

    • create a new instance of the visual, or

    • navigate to another visual and come back
      then the new changes work correctly

So it seems like Power BI is caching the visual or not refreshing the visual instance properly after the update.

Has anyone encountered this before?

Any suggestions on how to force Power BI to fully reload the updated custom visual would be greatly appreciated.

Thanks in advance!

6 REPLIES 6
v-hashadapu
Community Support
Community Support

Hi @wolfgang2 , Hope you are doing well. Kindly let us know if the issue has been resolved or if further assistance is needed. Your input could be helpful to others in the community.

v-hashadapu
Community Support
Community Support

Hi @wolfgang2 , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

Ahmed-Elfeel
Solution Sage
Solution Sage

Hi @wolfgang2,

I hope you are doing well today ☺️❤️

 

So what i will tell you is just a workaround (not an approach but try it):

 

So Final Notes you should take care of it in the future:

  • Power BI aggressively caches visuals to improve load times
  • When you update an existing visual on a report page...Power BI may only call the visual update() method not its constructor leaving old states intact (This is why your logic needs to be in update())
  • Always increment the version number in your pbiviz.json file before packaging and uploading a new version

I hope this works for you ☺️❤️

if this post helps, then I would appreciate a thumbs up and mark it as the solution to help the other members find it more quickly.
v-hashadapu
Community Support
Community Support

Hi @wolfgang2 , Thank you for reaching out to the Microsoft Community Forum.

 

Power BI does not guarantee that an existing visual instance will be destroyed and when you upload a new .pbiviz with the same visual GUID, Power BI does not guarantee that existing visual instances on the report will be destroyed and recreated. The platform controls the visual lifecycle and may keep the existing instance alive, invoking update() but not the constructor.

 

This is why changes only appear after creating a new visual instance, switching visuals or reopening the report, those actions trigger a fresh instantiation. There is no supported mechanism to force Power BI to fully reload an already placed visual. As a result, custom visuals must handle all state and rendering logic inside update() and developers should not rely on constructor only initialization for changes to apply to existing visuals.

 

Visual API for Power BI Visuals - Power BI | Microsoft Learn

Power BI visual system integration - Power BI | Microsoft Learn

Power BI Custom Visuals – Data Visualization Tools | Power BI

We are not extensively relying on the constructor, only thing in the constructor are the required initializations like selectionManager, tooltipServiceWrapper and the main svg containers and groups (to avoid re-rendering on each update tick). I have license enforcement logic in the update() method itself which is not working. I've also tried console.log()/debug() and nothing gets logged in the browser console. Even the formatting settings are not updated:

wolfgang2_0-1766406299117.png

The new version (4.8.3.8) does not show up.
It doesn't matter if I interact with the visual or change data in the field wells.


Hi @wolfgang2 , Thank you for reaching out to the Microsoft Community Forum.

 

From what you are saying, the About pane still shows the old visual version and none of the new logs or formatting metadata appear. That means the updated .pbiviz package is not being loaded at all for the existing visual instance, so your new update() code never executes.

 

Power BI does not guarantee that visuals already placed on a report will be rebound to a newly uploaded package when the visual GUID remains the same. In that case, it can continue running the previously loaded bundle. Creating a new visual instance, switching visuals or reopening the report forces a fresh instantiation, which is why the new version works in those scenarios. There is currently no supported way to force an in place reload of an already placed custom visual. Removing and re-adding the visual (or changing the GUID during development) is the only reliable way to apply the updated package.

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.