Skip to main content

Solution Layering in Dynamics 365 CE / CRM / Dataverse (Managed vs Unmanaged Explained)

Solution layering is one of the most misunderstood concepts in Dynamics 365 CE / CRM / Dataverse. Many production issues happen because architects and developers don’t fully understand which customization “wins” when multiple solutions modify the same component.

This blog explains solution layering in a simple and practical way.


What is Solution Layering?

Solution layering means:

When multiple solutions modify the same component (form, field, view, etc.), Dataverse decides which customization is applied based on the solution layer order.

Every customization sits on a “layer”.


🔥 Types of Layers in D365

There are two major types:

1. Unmanaged Layer

  • Created when you customize directly in the environment
  • Highest priority (usually overrides managed)

2. Managed Layer

  • Created when you import a managed solution
  • Multiple managed solutions can stack on each other

📌 Architect Callout:
Unmanaged layer is like “local override”.


Layer Priority Rule (Most Important Concept)

The order of application is:

Unmanaged Customizations (Top Priority)

Managed Solutions (Latest Imported Wins)

System/Default Layer (Base)

So:

  • The most recently imported managed solution will override older managed solutions.
  • Any unmanaged change will override managed layers.

📌 Simple Layering Example

If 3 solutions modify the same form:

Layer Order

Solution

Highest

Unmanaged Customization

Middle

Managed Solution v2

Lower

Managed Solution v1

Base

System Default

Result:
The system uses the top-most layer customization.


⚠️ Why Layering Creates Problems in Production

Common real-world issues:

  • A form change is deployed but doesn’t appear
  • A field behaves differently than expected
  • A business rule seems overwritten

Usually the reason is:
👉 Another managed solution or unmanaged customization is overriding it.


🛠️ How to Check Solution Layers

You can check solution layers by:

  • Opening the component (field/form/view)
  • Selecting Solution Layers
  • Viewing which solution is controlling it

💡 Best Practice:
Always check solution layers when troubleshooting missing changes.


Architect Best Practices for Layering

Follow these rules:

  • Avoid unmanaged changes in Production
  • Keep solution ownership clear (one team owns one module)
  • Import solutions in correct order
  • Use patch solutions only for short-term fixes
  • Clean unmanaged layers by moving changes into managed releases

Conclusion

Solution layering defines which customization is active in Dataverse. Managed solutions stack, unmanaged overrides everything, and the latest import usually wins. Architects must control layering to avoid production conflicts and upgrade failures.


Comments

Popular posts from this blog

Automation using Azure DevOps for Dynamics 365 CE / CRM / Dataverse

In enterprise Dynamics 365 CE / CRM / Dataverse projects, manual deployments create long-term problems such as: inconsistent releases missing components in Production unmanaged customization pollution deployment failures due to dependencies rollback complexity lack of traceability That is why modern organizations implement Azure DevOps automation for Dynamics 365 CE / CRM using CI/CD pipelines. This blog explains how to architect a complete automation strategy using Azure DevOps for D365 CRM projects. Why Azure DevOps for D365 CRM? Azure DevOps provides: version control (Git repos) build & release pipelines approvals and governance artifact management deployment automation integration with Power Platform tools 📌 Architect Callout If you don’t have CI/CD, you don’t have enterprise ALM. 1. Target ALM Architecture (Enterprise Standard) Recommended Environment Setup A proper CRM ALM environment chain: ...

Architecting Beyond the Box: D365 CE, Power Platform & Azure in the Real World

  Architecting Beyond the Box: D365 CE, Power Platform & Azure in the Real World In most enterprise programs, Dynamics 365 CE and the Power Platform are not the system—they are part of a much larger digital ecosystem. CRM is expected to orchestrate processes, surface insights, integrate with core platforms, and scale with the business. This is where architecture matters more than features. As architects, our job is not to “make it work,” but to make it sustainable . The Common Trap: Overloading the Platform A frequent anti-pattern I see is treating Dataverse and Power Apps as a full replacement for enterprise integration or processing layers: Heavy synchronous plugins for complex business logic Power Automate flows performing batch processing CRM used as a reporting engine Direct point-to-point integrations between systems It works—until it doesn’t. You start seeing: Timeouts in plugins and flows API throttling ...

Data Loss Prevention (DLP) policies in Dynamics 365 CRM / CE / Power Platform

Data Loss Prevention (DLP) policies in Dynamics 365 CRM / CE / Power Platform are one of the most powerful governance tools Microsoft provides. And ironically, they are also one of the most ignored. Most organizations start their Power Platform journey with excitement: build apps quickly automate approvals connect to systems enable citizen developers scale adoption Then, after a few months, someone discovers: flows sending data to personal emails connectors using consumer services SharePoint + Outlook + external connectors mixed together sensitive customer data going into unmanaged apps integrations built without IT visibility And suddenly the organization realizes: D365 CRM / CE / Power Platform is not just productivity. It is also data movement. That’s when DLP enters the conversation—usually too late. What DLP Really Controls Many people think DLP is just: “Block some connectors.” But in reality, DLP defines the mos...