Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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,
}
Solved! Go to Solution.
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
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
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
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.