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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
databot_kd
Helper III
Helper III

Error 1 million rows limit only after applying RLS on SQL Endpoint and using fixed identity

Error 1 million rows limit only after using a fixed identiy connection for my semantic model.

databot_kd_3-1781782711090.png

Even though my selection/filter criteria only has 7000 rows. 

 

Before applying RLS on my sql endpoint and the report/model worked fine. 

After appllying RLS on my sql end point i get the above error. 

 

Keeping in mind i have RLS on SQL Endpoint for users who access that directly and i have separate RLS in semantic models as per below. 

 

1. Semantic Model uses fixed identity (service account) to retrieve data from Fabric SQL endpoint. All entities, to model . Model RLS filters based on user accessing model/report. 

2. security table (*many) links to entity table (one) and entity table (one) links to transaction table (many)

 

databot_kd_2-1781782590189.png

 

 

 
databot_kd_1-1781782573146.png
on my RLS table Manage roles (security[email]) = (USERPRINCIPALNAME())

 

 

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. This is a known issue with direct query. You can read more in the answer of this user with the issue referencing to this doc: https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery#million-row-limit

https://community.fabric.microsoft.com/t5/Desktop/The-resultset-of-a-query-to-external-data-source-h...

You might want to filter data before requesting for query or visual.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

5 REPLIES 5
databot_kd
Helper III
Helper III

Thanks all. we will move off direct lake on sql end point to lakehouse. 

v-hjannapu
Community Support
Community Support

Hi @databot_kd,

I would also take a moment to thank @blopez11  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Regards,
Community Support team.

GilbertQ
Super User
Super User

Hi @databot_kd 

 

As we have said, I would recommend using Directlike because in that way users are always gonna get the latest information, but because it is not using Directquery and not falling back you will then not run into this limitation.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

blopez11
Super User
Super User

@ibarrau Is correct that this is a limitation of DirectQuery.  Placing RLS on the SQL endpoint forces your DirectLake on SQL model to fallback to DirectQuery and thus you hit this limitation.  Doing this kind of defeats the performance improvements of DirectLake.  Not sure why you want users to query your lakehouse directly from the SQL endpoint, but you can either have them query your model instead, or if they really need to use SQL, migrate to OneLake security and use a DirectLake on OneLake model.  You implement granular role-based access on OneLake and it is enforced across all Fabric workloads.

ibarrau
Super User
Super User

Hi. This is a known issue with direct query. You can read more in the answer of this user with the issue referencing to this doc: https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery#million-row-limit

https://community.fabric.microsoft.com/t5/Desktop/The-resultset-of-a-query-to-external-data-source-h...

You might want to filter data before requesting for query or visual.

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

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.