Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
All,
I am trying to create a dataset in BI Desktop using a view that summarizes other views and when I run it in SSMS or BI I get his error.
DataSource.Error: Microsoft SQL: The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.
In SSMS I can run the select statement from the view using OPTION (force order) and I can get it to run succsefully, but my view wont accept that syntax so I figured I could call it in BI advanced editor like this:
Select * from myView OPTION( Force Order) but BI complains that there is a syntax error on the word option.
I tried wrapping this in a Stored Procedure and a function but get the same syntax error.
I even tried just taking the select statement from my view and using the option at the end of the statement and BI doesnt like that either.
Is there a way to use OPTIONS/Hints in BI desktop? I have been searching for days and cant come up with an answer.
Thanks in advance.
Hi @Anonymous
as I understand the only hint available for power bi is MAXDOP
have a look here
The root error I am having trouble with is:
The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions...
I have a view selecting from many others summarizing all kinds of financial data.
I was able to get the view to work in ssms using the option force order but cant get that to work in BI.
Any other info would be great if anyone knows but it appears that a lot of the options arent available in BI
Still talking to support but havent got anywhere yet with them.
@Anonymous interesting, I have to test it to see why it is not working. Maybe you want to open a support ticket on the support forum.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.