Reply
Regular Visitor
Posts: 31
Registered: ‎07-13-2015
Accepted Solution

What's the "Upgrade Path" for a Custom Visual?

I'm just fixing some bugs in a custom visual I've written and works fine using the developer tool in the service.

 

However, when I package and import the new version in either the dekstop or the service, I get asked if I want to upgrade my visual and this seems to work, but then nothing actually changes for any instances using the custom visual in the report.

 

I couldn't find any documentation on this, but here's my assumptions on what needs to happen with my pbiviz.json:

 

  • Update version (have updated from 1.0.0 to 1.0.1)
  • guid needs to remain the same (if I change this then I understandably get two instances of my visual in the palette)

The only way I can see my changes is to forcibly delete the visual from the palette and re-import it, which will destroy any visual instances in the report, and doesn't really seem to be a suitable experience for end-users. I've also tried cut/pasting just to see if that works but it seems not.

 

Is there something else I need to do in order to get this to update any existing visual instances? Is there some kind of cache or event that we need to manage in our visual code?

 

Not sure if it helps, but I'm using Desktop 2.64.5285.741


Accepted Solutions
Moderator
Posts: 1,610
Registered: ‎12-02-2016

Re: What's the "Upgrade Path" for a Custom Visual?

Correct. If visual is in Marketplace it will be loaded from our CDN since it's much faster for end users.

 

To test new change you can change GUID and revert it back before publication to marketplace.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post


All Replies
Regular Visitor
Posts: 31
Registered: ‎07-13-2015

Re: What's the "Upgrade Path" for a Custom Visual?

[ Edited ]

Apologies for the double-post but I may have figured this out. Would be good if the team could confirm my thoughts though?

 

As the visual is currently in the marketplace, it looks like if I keep the guid the same, Desktop or the service will poll the CDN for a visual matching that guid and just use that regardless of version in the file being uploaded?

 

If so, and I want to test locally, then the steps will be to temporarily assign a new guid, package and verify?

Moderator
Posts: 1,610
Registered: ‎12-02-2016

Re: What's the "Upgrade Path" for a Custom Visual?

Correct. If visual is in Marketplace it will be loaded from our CDN since it's much faster for end users.

 

To test new change you can change GUID and revert it back before publication to marketplace.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Highlighted
Regular Visitor
Posts: 31
Registered: ‎07-13-2015

Re: What's the "Upgrade Path" for a Custom Visual?

Awesome - thanks very much, @v-viig!