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.
As part of our migration to fabric, we are trying to get out of synapse.
Since Microsoft deprecated export to data lake from dynamics 365 F&O, we have been trying to mirrow our process and those include the queries the entities use in F&O (I do understand that they are large queries but I did not write them, microsoft did).
We are able to run those queries on the serverless, but when I try to run the same queries on fabric dw I get:
Internal Query Processor Error: The query processor could not produce a query plan. For more information, contact Customer Support Services.
This issue is happening with 1/3 of the queries we are trying to migrate. I do have an open case, but it is going nowhere, because I have a feeling the person has no idea what I am talking about.
Has anyone faced the same issue? And how did you solve it? (without re writting the query, I know I can do that).
Hi @AstridM
Welcome to the Microsoft Fabric Community Forum.
The error message โInternal Query Processor Error: The query processor could not produce a query planโ is a recognized limitation in Microsoft Fabric Data Warehouse (DW), particularly when running large, complex queries such as those generated from Dynamics 365 Finance & Operations (F&O) entities.
These queries typically involve extensive joins, multiple CTEs, and deeply nested logic, which may exceed the current capabilities of the Fabric DW query optimizer. Since these queries run successfully in Synapse Serverless SQL, it is advisable to continue using Synapse Serverless for these workloads until further improvements are made in Fabric DW.Meanwhile, enabling Query Insights and reviewing Capacity Metrics in Fabric can help identify where the optimizer encounters issues, making it easier to pinpoint unsupported features or resource limitations. Running queries through the Fabric Migration Assistant may also help detect syntax or structural concerns.
If you prefer not to rewrite your queries, you might consider modularizing them into smaller, materialized steps using intermediate staging tables. Alternatively, for transformation or ingestion tasks, executing the logic in a Fabric Lakehouse notebook (using Spark or PySpark) can provide additional flexibility.
Regards,
Karpurapu D,
Microsoft Fabric Community Support Team.
Hi @AstridM
We have not yet received a response from you regarding your query if you find the response helpful, kindly mark it as the accepted solution and provide kudos, as this will aid other members with similar queries.
Thank You.
Hello! I am running into the same issues. I do not think the response from Karpurapu D is sufficient and this problem is Not Resolved.
Project Technical Context: In the environment I am working with, we are building a data platform in Fabric Lakehouse, and pulling in data from D365 leveraging Synapse Link for Dataverse. In Fabric Lakehouse, the raw tables from D365 are landing in the schema "dbo" and we are leveraging EntityUtil to create database views, in the schema "bronze_d365_views". We are building in a "greenfield" environment, and we are leveraging the latest Microsoft technologies.
Example of entities / database views that are failing due to the same "query processor error": dimensioncombinationentity and dimensionsetentity. Both of these entities fail on the same column displayvalue. There may be more, but these are critical ones because they are the "base" views that many other entities leverage. These are causing a great many of important entities to fail - some examples of critical entities that is causing failures for: VendVendorV2Entity, SalesOrderLineV2Entity, CustCustomerDetailV2Entity, LedgerJournalLineEntity, EcoResProductV2Entity, etc.
We encountered another entity / database view that has a similar error: financialdimensionvalueentityexistinglistview. This one results in the error "The query processor could not produce a query plan because a worktable is required, and its minimum row size exceeds the maximum allowable of 8060 bytes. A typical reason why a worktable is required is a GROUP BY or ORDER BY clause in the query." Pulling the query open, we see some order by statements that look to be necessary for grabbing the right data (there's a subselect top 1, after grabbing rows, then ordering them to grab the correct single row). So what is the solution - break the vetted, accurate logic?
The solution "If you prefer not to rewrite your queries, you might consider modularizing them into smaller, materialized steps using intermediate staging tables." seems to be missing the point.
There needs to be validated, accurate, and turnkey integration of Entities from D365 to Fabric - and having users modify Microsoft-approved Entity business logic introduces significant risk in getting the logic wrong and/or miscalculating important fields as part of the modification process. Because of the "query processor error", users canโt run the views, users donโt know what the data is supposed to look like for testing purposes as users attempt to fix and break down the EntityUtil-generated logic into parts. Creating Spark or PySpark code / notebooks also requires editing the business logic provided out of D365, with all the same risks.
There needs to be a solution for people building in a greenfield context, in a modern Fabric Lakehouse / Warehouse context, that does not involve manually modifying the database views / business logic that comes from D365 / EntityUtil.
Hi @DataAnalyticsG
Thank you for your comprehensive response. You have highlighted a key challenge for teams working in Fabric environments, particularly when using EntityUtil-generated views from Dynamics 365 with Synapse Link for Dataverse. It is reasonable to expect consistent performance from these system-generated queries in Fabric Data Warehouse. However, when core entities such as DimensionCombinationEntity and DimensionSetEntity encounter query processor errors or exceed row size limits, related views and processes can be affected. These issues, including difficulties generating query plans or exceeding the 8060-byte row size limit, often arise from complex queries and wide schemas common in D365. While alternatives like Spark notebooks or restructuring logic may help, they can introduce risks to critical business data. Sharing these examples and leveraging tools like Query Insights is important to identify areas for improvement. Your feedback is appreciated and underscores challenges faced by many users.
In the meantime, we suggest you to reach out to the Microsoft support fro better assistance, making sure to reference the specific entities and columns (such as DisplayValue) that are failing. Sharing telemetry using Query Insights and tracking capacity metrics may also assist Microsoftโs engineering teams in identifying the root causes and prioritizing fixes.
You can submit a ticket through the Microsoft Power BI Support Portal:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
Thank you for being part of Fabric Community Forum.
Regards,
Karpurapu D,
Microsoft Fabric Community Support Team.
Hi @AstridM
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. If your issue resolved, kindly mark the helpful response and accept it as the solution to assist other community members in resolving similar issues more efficiently. If not, please provide detailed information so we can better assist you.
Thank you.
Hi @AstridM
We are following up once again regarding your query. Could you please confirm if the issue has been resolved?If so, kindly mark the helpful response and accept it as the solution to assist other community members in resolving similar issues more efficiently. If not, please provide detailed information so we can better assist you.
Thank you for your understanding and participation.
Sorry I didnt reply before, I am working with microsoft and they are trying to understand the source of the issue, this is yet to be solved
Hi @AstridM
Thanks for the update. Hope your issue gets resolved soon. when it does, please share the insights with the community as it can be helpful to others.
Hello, the issue apparently is the use of a fuction on some views on F&O and since fabric does not support fuctions on the dw, that looked like it was causing the errors.
Here is what they wrote
The team was finally able to root cause the issue. The problem occurs to the fact that the query uses a scalar UDF (GetValidFromDateInContextInfoAsTable) which canโt run in distributed mode in Fabric DW โ we call these non-inlineable scalar UDFs. For user queries, we have a process to rewrite queries like this one so that it runs optimally in Fabric DW. However, I understand that this query is produced on the fly by Dynamics AX. It seems that Dynamics is not optimized for Fabric DW quite yet. Iโm wondering if youโd consider opening a ticket with them for visibility, chances are they have a workaround, or you may need to wait until Dynamics is supported in Fabric Data Warehouse.
Hi @AstridM
Thank You for the update. I hope your issue was resolved after contacting Microsoft support. If you need any additional help, please feel free to reach out to us and we will assist you further.
Thank You.