Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Solved! Go to Solution.
I don't think Direct Lake mode will get you a deterministic UX. There are random delays in the process. I would go with Direct Query to the database, not the endpoint.
Hi @abhiram342 ,
Thanks for posting in Microsoft Fabric Community.
Thanks for providing all the details. From what you're describing, it seems like the issue with PowerBIIntegration.Refresh() is due to how the data is being updated in Direct Lake Mode.
As mentioned by @lbendlin , since there can be random delays in propagating changes from the Fabric SQL Database to the Lakehouse, the Power BI visuals may not refresh consistently.
Possible Workaround:
You could try adding a small delay before using PowerBIIntegration.Refresh(). This gives the system extra time to make sure all changes are fully synced, making the refresh process smoother.
As @lbendlin mentioned, Direct Lake Mode may not offer a fully deterministic experience. If you're looking for more consistent results, using Direct Query directly to the database instead of the endpoint might provide a more stable connection.
Also, here's a link that discusses a similar scenario and provides some additional insights.
From Microsoft’s documentation:
Power Apps visual for Power BI - Power Apps | Microsoft Learn
Hope this helps. Please reach out for any assistance.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and a kudos would be appreciated.
Best Regards,
Vinay.
Hi @abhiram342 ,
Thanks for posting in Microsoft Fabric Community.
Thanks for providing all the details. From what you're describing, it seems like the issue with PowerBIIntegration.Refresh() is due to how the data is being updated in Direct Lake Mode.
As mentioned by @lbendlin , since there can be random delays in propagating changes from the Fabric SQL Database to the Lakehouse, the Power BI visuals may not refresh consistently.
Possible Workaround:
You could try adding a small delay before using PowerBIIntegration.Refresh(). This gives the system extra time to make sure all changes are fully synced, making the refresh process smoother.
As @lbendlin mentioned, Direct Lake Mode may not offer a fully deterministic experience. If you're looking for more consistent results, using Direct Query directly to the database instead of the endpoint might provide a more stable connection.
Also, here's a link that discusses a similar scenario and provides some additional insights.
From Microsoft’s documentation:
Power Apps visual for Power BI - Power Apps | Microsoft Learn
Hope this helps. Please reach out for any assistance.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and a kudos would be appreciated.
Best Regards,
Vinay.
Are you connecting to the Fabric SQL database in Direct Query mode? Why are you connecting via the shortcut rather then directly?
You are missing step 2.2.1 - data is patched to the database
Hi @lbendlin - thank you for response!
Are you connecting to the Fabric SQL database in Direct Query mode? Why are you connecting via the shortcut rather then directly?
>> No, I'm using Direct Lake Mode using shortcut. Our data model is based of Lakehouse sql analytics end point . ( for Edit Feature, I'm using Fabric SQL Database)
If I include Fabric SQL Database without shortcut, I believe I will lose direct lake mode i..e in order to get benfit from direct lake mode, I should have single source in data model i.e Lakehouse SQL Anlaytics endpoint instead of Lakehouse SQL Anlaytics endpoint and Fabric SQL Database analytics end point.
You are missing step 2.2.1 - data is patched to the database
>> I see the patching happened automatically , I didn't implemented any custom code.
Thanks,
Abhiram
I don't think Direct Lake mode will get you a deterministic UX. There are random delays in the process. I would go with Direct Query to the database, not the endpoint.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.