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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.