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

Visuals

Update methode isnt loading when im updating my visual.

 

I am trying to Create my own Visuals and im a bit new to the whole Power-bi/ Visual things.

I already set up a test-Dataset and a test Visual but im stuck to the point where all i do in the Update Methode isn´t working (the Dubugging is Hell on earth). I´ve tried to figure out where the update methode is called but without any success. in conclusion my update methode isnt called in any way...

Thx for the Help!

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @LukasSchlechter,

Your visual's update() method is called when you have supplied the necessary conditions to satisfy your dataViewMapping; the exception being unless you are using supportsEmptyDataView in conjunction with supportsLandingPage to have no data binding. In this case, the update method will fire as soon as the visual is instantiated, and thereafter for the scenarios outlined in the diagram here, as expected.

If you've ruled out the data binding potentially being incorrect, the next thing I'd look at is seeing if any errors are being suppressed by the developer visual.

An easy way to investigate is to use a try/catch block to identify the error to see if anything's being suppressed, and possibly to step through using the debugger statement in your code before any suspect lines (or even right as the update method is triggered, just to confirm it. I often also use console.debug() in code I'm trying out to ensure that the right methods are being hit, without interruptng my workflow too much.

If you're sure that the above starting points are not applicable to you, then ideally you'll need to share your code with us (preferably as a repository, so we can verify the combination of packages, capabilities and code to see if there's anything else that stands out.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

2 REPLIES 2
dm-p
Super User
Super User

Hi @LukasSchlechter,

Your visual's update() method is called when you have supplied the necessary conditions to satisfy your dataViewMapping; the exception being unless you are using supportsEmptyDataView in conjunction with supportsLandingPage to have no data binding. In this case, the update method will fire as soon as the visual is instantiated, and thereafter for the scenarios outlined in the diagram here, as expected.

If you've ruled out the data binding potentially being incorrect, the next thing I'd look at is seeing if any errors are being suppressed by the developer visual.

An easy way to investigate is to use a try/catch block to identify the error to see if anything's being suppressed, and possibly to step through using the debugger statement in your code before any suspect lines (or even right as the update method is triggered, just to confirm it. I often also use console.debug() in code I'm trying out to ensure that the right methods are being hit, without interruptng my workflow too much.

If you're sure that the above starting points are not applicable to you, then ideally you'll need to share your code with us (preferably as a repository, so we can verify the combination of packages, capabilities and code to see if there's anything else that stands out.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




i had issues with the dataViewMapping and now its working. The Exception handling was kinda helping but its not that ez to read if you just coded c#, python and java applications with good compiling programms.

Thank you for your Help!
Kind regards ,

Lukas

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.