web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

SQL view for Bill of Materials (BOM) explosion

(1) ShareShare
ReportReport
Posted on by 70

Hello community,

I'm trying to build an SQL view for a BOM explosion, but I'm running into an issue when using a recursive function:
"The query references an object that is not supported in distributed processing mode."

So I'm looking for an alternative approach. Without the ability to use a recursive CTE, I'm running out of ideas.

The goal is to build a Power BI report to analyze component shortages in production.

Has anyone faced the same issue and found a solution?

Thank you for your help,

Emmanuelle G.

Categories:
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    1,125 on at
    For a Power BI report analyzing production component shortages, the most maintainable approach is to perform the BOM explosion during data preparation rather than at report query time.
    • If you're using Power BI, consider implementing the recursion in Power Query or a Dataflow.
    • If you're using Fabric or Synapse, create a pre-exploded BOM table through an ETL process (Data Factory, Dataflow Gen2, Spark, or a stored procedure where supported) and have Power BI consume that table.
    • If your BOM depth is fixed and relatively small, multiple self-joins are a practical workaround.
    This approach improves performance, avoids the limitations of distributed SQL engines, and provides a stable dataset for shortage analysis.
  • André Arnaud de Calavon Profile Picture
    306,376 Super User 2026 Season 1 on at
    Hi Emmanuelle,
     
    Can you tell us what Dynamics 365 application this question is related to? There are several different solutions in the Dynamics 365 family, like: Sales, Finance, Supply Chain Management, Project Operations, and Customer Insights. If you can clarify the product, we can answer the question or move it to the correct forum.
     
    Can you also share more details about your current attempt?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 77

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 45 Super User 2026 Season 1

#3
sannavajjala87 Profile Picture

sannavajjala87 29

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans