Skip to content

Commit fd29c1f

Browse files
committed
writer updates
1 parent 4aa297e commit fd29c1f

1 file changed

Lines changed: 33 additions & 29 deletions

File tree

support/power-platform/dataverse/working-with-solutions/missing-dependency-on-solution-import.md

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,7 @@ The solution has dependencies on a component that exists in the source environme
2727

2828
This issue might occur when applications are upgraded to the latest version through Microsoft scheduled maintenance in the source environment, but they aren't upgraded in the target environment.
2929

30-
## Best practices to prevent missing dependencies
31-
32-
When creating a new solution in Power Platform, it's often beneficial to reuse existing components rather than building from scratch. This approach promotes consistency and accelerates development. However, there are several important considerations to keep in mind when working with existing objects across environments.
33-
34-
### Ensure component availability in target environments
35-
36-
If you're adding existing components (such as tables, flows, or apps) to a solution, those components must also exist in the target environment when deploying the solution—whether via deployment pipelines or manual import. Failing to do so will result in missing dependency errors during import.
37-
38-
### Select only necessary components
39-
40-
Avoid adding entire tables or components to a solution if you only need a subset of their elements (for example, specific columns, views, or forms). Adding unnecessary elements can lead to:
41-
42-
- Increased solution complexity
43-
- Multiple managed layers being applied to components
44-
- Potential conflicts during updates
45-
46-
Instead, selectively include only the parts of the component that your solution actively uses.
47-
48-
### Avoid modifying components in managed solutions
49-
50-
Do not make changes directly to components that are part of a managed solution. Doing so creates an unmanaged layer on top of the managed component. This unmanaged layer can:
51-
52-
- Override updates from the source managed solution
53-
- Cause inconsistencies across environments
54-
- Prevent changes (such as updates to Power Automate flows or table configurations) from being reflected correctly after deployment
55-
56-
To ensure smooth deployments and maintain solution integrity, always apply changes within an unmanaged solution or extend functionality using solution layering best practices.
57-
58-
## Workaround
30+
## Solution 1: Resolve missing dependency errors
5931

6032
To work around this issue, follow these steps:
6133

@@ -114,3 +86,35 @@ This issue occurs when the solution relies on unmanaged customizations from the
11486
:::image type="content" source="media/missing-dependency-on-solution-import/missing-dependencies-unmanaged-components.png" alt-text="Screenshot that shows the Unmanaged Components section of the Missing dependencies page." lightbox="media/missing-dependency-on-solution-import/missing-dependencies-unmanaged-components.png":::
11587

11688
To resolve this issue, return to the source environment, include the missing components, export the solution again, and then import it into the target environment.
89+
90+
## Solution 2: Best practices to prevent missing dependency errors
91+
92+
When you create a new solution in Power Platform, you often reuse existing components for improved consistency and development speed. There are some key considerations to keep in mind when reusing existing objects across environments.
93+
94+
### Ensure component availability in target environments
95+
96+
If your solution has dependencies on components in the source environment (such as tables, flows, or apps), those components must also exist in the target environment when deploying the solution. This requirement applies to both pipeline deployments and manual importing. If components are missing in the source environment, a missing dependency error occurs during import.
97+
98+
### Select only necessary components
99+
100+
Avoid taking dependencies entire tables or components if you only need a subset of their elements (for example, specific columns, views, or forms). Adding unnecessary elements can lead to:
101+
102+
- Increased solution complexity
103+
- Multiple managed layers being applied to components
104+
- Potential conflicts during updates
105+
106+
Instead, include only the parts of the component that your solution actively uses.
107+
108+
### Avoid modifying components in managed solutions
109+
110+
Don't make changes directly to components that are part of a managed solution. Doing so creates an unmanaged layer on top of the managed component. This unmanaged layer can:
111+
112+
- Override updates from the source managed solution
113+
- Cause inconsistencies across environments
114+
- Prevent changes (such as updates to Power Automate flows or table configurations) from being reflected correctly after deployment
115+
116+
Always apply changes within an unmanaged solution or extend functionality using solution layering. For more information on solution layering, see [Solution layers](/power-platform/alm/solution-layers-alm)
117+
118+
## Related content
119+
120+
- [Organize your solutions](/power-platform/alm/organize-solutions)

0 commit comments

Comments
 (0)