Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
6 | |
3 | |
2 | |
2 |