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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Different Values in Update Function's options.type

Hi,

While developing a custom visual, I noticed the update function's option.type property contains values that are not defined in the TypeScript definitions. 

On the very first load, the type has a value of 254. The ResizeEnd value is 36 instead of 32. 

Does 254 mean the first load?

This is what I have as the type definitions. 

 

const enum VisualUpdateType {
        Data = 2,
        Resize = 4,
        ViewMode = 8,
        Style = 16,
        ResizeEnd = 32,
        All = 62,
}

 

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Anonymous,

254 is currently unknown to us from an API perspective, and it is assumed that it is the first update based on analysis. There is an issue here tracking it, so you are welcome to add your feedback here. I ask MS to address it any time I get an opportunity to check-in with the team for support and it's still ongoing. The issue also shows a (somewhat hacky) way of type checking it.

The 36 type isn't explicitly mentioned in the above issue, but this appears to be a bug in the API with the enum and it should either be 32, or the API needs to be changed to match it. I created a PR here for that proposed change which has again been sitting there for MS to approve.

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 @Anonymous,

254 is currently unknown to us from an API perspective, and it is assumed that it is the first update based on analysis. There is an issue here tracking it, so you are welcome to add your feedback here. I ask MS to address it any time I get an opportunity to check-in with the team for support and it's still ongoing. The issue also shows a (somewhat hacky) way of type checking it.

The 36 type isn't explicitly mentioned in the above issue, but this appears to be a bug in the API with the enum and it should either be 32, or the API needs to be changed to match it. I created a PR here for that proposed change which has again been sitting there for MS to approve.

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)




Anonymous
Not applicable

Hi @Anonymous ,

 

As far as I know, 254 should be the VisualupdateType which should be supplied in the VisualUpdateOptions.

 

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.