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 everyone,
I am developing a custom visual and have a serious error that only occurs in the following scenario:
Error description:
I am getting an error when I drill up in a custom visual with a large dataset (more than 30,000 rows).
Everything works fine. However, when I initialize the page (init visual):
Steps to reproduce the error:
Technical note: I console.log the VisualUpdateOptions object and noticed that the updateId in options is changed after the drill up operation.
Images:
- Console.log
- capabilities.json
- Update function in visual.ts: I tried removing all the logic code, keeping only the this.host.fetchMoreData() call for testing, but the error still occurs.
I'm not sure if this is a bug in my code or a bug in Microsoft's API.
If anyone has encountered a similar case, knows the exact cause or how to fix it, please help.
Thank you very much!
Hi @Hieudao ,
Thanks for reaching out to the Microsoft fabric community forum.
This looks like a tricky scenario related to how the fetchMoreData() API behaves after a drill-up when a new updateId is generated. From your description, it seems that during drill-up or page navigation, Power BI might be triggering a new data load session internally, which resets the updateId and breaks the continuation token for incremental data retrieval. Once this happens, the visual can no longer fetch more data because the old data segment reference becomes invalid.
Try the below workaround:
Check if dataView.metadata.segment is null after drill-up if so, it means Power BI has reset the dataset session.
Reset your internal data state (like cached rows or flags) whenever a new updateId is detected. That ensures the visual starts a new data load process instead of continuing the old one.
Make sure the dataReductionAlgorithm (e.g., window.count) and fetchMoreData() calls are tied to the new session and not to the previous state.
Please go through the below document:
Visual API for Power BI Visuals - Power BI | Microsoft Learn
This articles explains how the API Power BI visuals API supports large datasets (via fetchMoreData()), how to configure dataReductionAlgorithm.window.count, how to detect dataView.metadata.segment, and how to handle incremental vs aggregated segments.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.โฏ
Best Regards,
Community Support Team
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.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 |