|
1 | 1 | --- |
2 | | -title: Missing dependencies during solution import in Power Apps |
| 2 | +title: Missing Dependencies During Solution Import in Power Apps |
3 | 3 | description: Works around an issue about missing dependencies that occurs when you import a solution in the target environment in Microsoft Power Apps. |
4 | | -ms.reviewer: matp |
5 | | -ms.date: 07/15/2025 |
6 | | -author: swatimadhukargit |
7 | | -ms.author: swatim |
| 4 | +ms.reviewer: |
| 5 | + - swatim |
| 6 | + - matp |
| 7 | + - v-shaywood |
| 8 | + - rkothaari |
| 9 | + - cdietric |
| 10 | +ms.date: 08/28/2025 |
8 | 11 | ms.custom: sap:Working with Solutions\Dependencies prevent a solution import |
9 | 12 | --- |
10 | 13 | # Missing dependencies error during solution import |
11 | 14 |
|
12 | | -This article provides a workaround for an issue about missing dependencies that occurs when you [import a solution](/powerapps/maker/data-platform/import-update-export-solutions) in Microsoft Power Apps. |
| 15 | +This article provides workarounds for a missing dependencies issue that occurs when you [import a solution](/powerapps/maker/data-platform/import-update-export-solutions) in Microsoft Power Apps. |
13 | 16 |
|
14 | 17 | _Applies to:_ Power Platform, Solutions |
15 | 18 |
|
16 | 19 | ## Symptoms |
17 | 20 |
|
18 | | -When you try to import a solution in Power Apps, you receive an error message like the following one: |
| 21 | +When you try to import a solution in Power Apps, you receive an error message that resembles the following message: |
19 | 22 |
|
20 | 23 | > Import failed due to missing dependencies. |
21 | 24 |
|
22 | | -You can't proceed with the solution import until the missing dependencies are resolved. |
| 25 | +In this situation, you can't continue the solution import until the missing dependencies issue is resolved. |
23 | 26 |
|
24 | 27 | ## Cause |
25 | 28 |
|
26 | | -The solution has dependencies on a component that exists in the source environment where the solution is deployed. However, the component doesn't exist in the target environment where the solution is imported. |
| 29 | +The solution is dependent on a component that exists in the source environment where the solution is deployed. However, the component doesn't exist in the target environment that the solution is imported into. |
27 | 30 |
|
28 | | -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. |
| 31 | +This issue might occur if applications are upgraded to their latest version (through Microsoft scheduled maintenance) in the source environment but not in the target environment. |
29 | 32 |
|
30 | | -## Workaround |
| 33 | +## Workaround 1: Resolve missing dependency errors |
31 | 34 |
|
32 | 35 | To work around this issue, follow these steps: |
33 | 36 |
|
34 | | -1. Select the **Show dependencies** button to navigate to the **Missing dependencies** page. |
| 37 | +1. Navigate to the **Missing dependencies** page by selecting the **Show dependencies** button. This page lists all missing components, and sorts them into the following categories: |
35 | 38 |
|
36 | | - This page lists all missing components and categorizes them into **Applications**, **Managed Solutions**, and **Unmanaged Components**. |
| 39 | + - **Applications** |
| 40 | + - **Managed Solutions** |
| 41 | + - **Unmanaged Components** |
| 42 | + > |
| 43 | + > [!TIP] |
| 44 | + > Another method to find dependencies of components is to open the solution file, expand it, and then open the *solution.xml* file. In this file, look for the `<MissingDependencies>` element that lists all missing dependencies. |
37 | 45 |
|
38 | | - > [!TIP] |
39 | | - > Another method to find dependencies of components is to open the solution file, unzip it, and then open the *solution.xml* file. In the file, look for the `<MissingDependencies>` element that lists all missing dependencies. |
40 | | -
|
41 | | -2. Expand each section of dependencies and resolve the issue based on the type of dependencies described in the following sections. Once the missing dependencies are fixed, retry the import. |
| 46 | +2. Expand each section of dependencies, and mitigate the issue based on the type of dependencies that are described in the following sections. After the missing dependencies are restored or updated, retry the import. |
42 | 47 |
|
43 | 48 | ### Missing dependencies coming from a Dynamics 365 application |
44 | 49 |
|
45 | | -This issue occurs when the solution relies on components from Dynamics 365 applications that are missing or outdated in the target environment. You can find these dependencies in the **Applications** section of the **Missing dependencies** page. Each entry provides details about the missing application in the following format: |
| 50 | +This issue occurs if the solution relies on components from Dynamics 365 applications that are missing or outdated in the target environment. You can find these dependencies in the **Applications** section of the **Missing dependencies** page. Each entry provides details about the missing application in the following format: |
46 | 51 |
|
47 | 52 | _<solution_name> (<solution_version>) from <application_name>_ |
48 | 53 |
|
49 | | -Next to the application name, you'll find an **Install** or **Update** button that redirects you to the Power Platform admin center. |
| 54 | +Next to the application name is an **Install** or **Update** button that redirects you to the Power Platform admin center. |
50 | 55 |
|
51 | | -:::image type="content" source="media/missing-dependency-on-solution-import/missing-dependencies-applications-section.png" alt-text="Screenshot that shows the Applications section of the Missing dependencies page." lightbox="media/missing-dependency-on-solution-import/missing-dependencies-applications-section.png"::: |
| 56 | +:::image type="content" source="media/missing-dependency-on-solution-import/missing-dependencies-applications-section.png" alt-text="The Applications section of the Missing dependencies page lists applications that are missing or outdated." lightbox="media/missing-dependency-on-solution-import/missing-dependencies-applications-section.png"::: |
52 | 57 |
|
53 | | - To resolve this issue: |
| 58 | +To work around this issue, use one of the following methods: |
54 | 59 |
|
55 | 60 | - If the application isn't installed in the target environment: |
56 | 61 |
|
57 | | - - System administrators can use the **Install** button, which redirects to the [application installation](/power-platform/admin/manage-apps#install-an-app) page in the Power Platform admin center. Choose and install the application. |
58 | | - - Non-system administrators can use the **Copy Install Link** button to copy the application installation link and request their system administrator to install the application. Alternatively, a system administrator can directly go to the [application installation](/power-platform/admin/manage-apps#install-an-app) page to install the application in the Power Platform admin center. |
| 62 | + - System administrators can use the **Install** button to be redirected to the [application installation](/power-platform/admin/manage-apps#install-an-app) page in the Power Platform admin center. Alternatively, a system administrator can directly go to the [application installation](/power-platform/admin/manage-apps#install-an-app) page to install the application in the Power Platform admin center. |
| 63 | + - Non-system administrators can use the **Copy Install Link** button to copy the application installation link and ask their system administrator to install the application. |
59 | 64 |
|
60 | 65 | - If the application is installed but outdated in the target environment: |
61 | 66 |
|
62 | 67 | - System administrators can use the **Update** button to open the application update page in the Power Platform admin center. |
63 | | - - Non-system administrators can use the **Copy Update Link** button to copy the application update link and request their system administrator to update the application. |
| 68 | + - Non-system administrators can use the **Copy Update Link** button to copy the application update link and ask their system administrator to update the application. |
64 | 69 |
|
65 | 70 | ### Missing dependencies coming from a first-party Dynamics 365 application |
66 | 71 |
|
67 | | -> [!IMPORTANT] |
68 | | -> This experience described below might not be available to the environments of all the regions yet. |
69 | | -
|
70 | | -When a solution depends only on components from first-party Dynamics 365 applications that are missing or outdated in the target environment, the system might be able to automatically update or install these components. In this case, no manual action is required from the user. The **Missing dependencies** page will display the **Deploy Dependencies** option. If you select the option and select the **Import** button, the system will first install or update the required dependencies and then proceed to import the solution. If the update or installation of a dependent application fails, the solution import will also fail. You can track the status of these updates or installations on the solution history page. |
| 72 | +A solution might depend on only components from first-party Dynamics 365 applications that are missing or outdated in the target environment. In this situation, the system might be able to automatically update or install these components, and no manual action is required from the user. The **Missing dependencies** page displays the **Deploy Dependencies** option. If you select this option, and then you select the **Import** button, the system first installs or updates the required dependencies, and then imports the solution. If the update or installation of a dependent application fails, the solution import also fails. You can track the status of these updates or installations on the solution history page. |
71 | 73 |
|
72 | | -:::image type="content" source="media/missing-dependency-on-solution-import/missing-dependencies-first-party-application.png" alt-text="Screenshot that shows the Applications section of the Missing dependencies page with a first-party application that can be auto installed or updated from the system." lightbox="media/missing-dependency-on-solution-import/missing-dependencies-first-party-application.png"::: |
| 74 | +:::image type="content" source="media/missing-dependency-on-solution-import/missing-dependencies-first-party-application.png" alt-text="The Applications section of the Missing dependencies page showing a first-party application that can be auto installed or updated from the system." lightbox="media/missing-dependency-on-solution-import/missing-dependencies-first-party-application.png"::: |
73 | 75 |
|
74 | 76 | ### Missing dependencies coming from another managed solution |
75 | 77 |
|
76 | | -This issue occurs when the solution relies on components from another managed solution that's missing in the target environment. You can find these dependencies in the **Managed Solutions** section of the **Missing dependencies** page. Expanding the section provides additional details. |
| 78 | +This issue occurs when the solution relies on components from another managed solution that's missing in the target environment. You can find these dependencies in the **Managed Solutions** section of the **Missing dependencies** page. Expand the section to see additional details. |
77 | 79 |
|
78 | | -:::image type="content" source="media/missing-dependency-on-solution-import/missing-dependencies-managed-solutions-section.png" alt-text="Screenshot that shows the Managed Solutions section of the Missing dependencies page." lightbox="media/missing-dependency-on-solution-import/missing-dependencies-managed-solutions-section.png"::: |
| 80 | +:::image type="content" source="media/missing-dependency-on-solution-import/missing-dependencies-managed-solutions-section.png" alt-text="The Managed Solutions section of the Missing dependencies page shows solution dependencies." lightbox="media/missing-dependency-on-solution-import/missing-dependencies-managed-solutions-section.png"::: |
79 | 81 |
|
80 | | -To resolve this issue, import the same version of the solution that's installed in the source environment into the target environment. |
| 82 | +To work around this issue, import the same version of the solution that's installed in the source environment into the target environment. |
81 | 83 |
|
82 | 84 | ### Missing dependencies on the "Active" solutions |
83 | 85 |
|
84 | 86 | This issue occurs when the solution relies on unmanaged customizations from the source environment that are missing in the target environment. You can find these dependencies in the **Unmanaged Components** section of the **Missing dependencies** page. Expanding the section provides additional details. |
85 | 87 |
|
86 | | -:::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"::: |
| 88 | +:::image type="content" source="media/missing-dependency-on-solution-import/missing-dependencies-unmanaged-components.png" alt-text="The Unmanaged Components section of the Missing dependencies page shows solutions that rely on unmanaged components." lightbox="media/missing-dependency-on-solution-import/missing-dependencies-unmanaged-components.png"::: |
| 89 | + |
| 90 | +To work around this issue, return to the source environment, include the missing components, export the solution again, and then import it into the target environment. |
| 91 | + |
| 92 | +## Workaround 2: Best practices to prevent missing dependency errors |
| 93 | + |
| 94 | +When you create a solution in Power Platform, you often reuse existing components for improved consistency and development speed. There are some key considerations for reusing existing objects across environments. |
| 95 | + |
| 96 | +### Component availability in target environments |
| 97 | + |
| 98 | +If your solution has dependencies on components (such as tables, flows, or apps) in the source environment, those components must also exist in the target environment when you deploy 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. |
| 99 | + |
| 100 | +### Select only necessary components |
| 101 | + |
| 102 | +To work around dependency issues, don't include entire tables or components if you need only a subset of their elements (for example, specific columns, views, or forms). Adding unnecessary elements can cause: |
| 103 | + |
| 104 | +- Increased solution complexity |
| 105 | +- Multiple managed layers that are applied to components |
| 106 | +- Potential conflicts during updates |
| 107 | + |
| 108 | +Instead, include only the parts of the component that your solution actively uses. |
| 109 | + |
| 110 | +### Avoid modifying components in managed solutions |
| 111 | + |
| 112 | +Don't make changes directly to components that are part of a managed solution. Such changes create an unmanaged layer on top of the managed component. This unmanaged layer can: |
| 113 | + |
| 114 | +- Override updates from the source managed solution |
| 115 | +- Cause inconsistencies across environments |
| 116 | +- Prevent changes (such as updates to Power Automate flows or table configurations) from being reflected correctly after deployment |
| 117 | + |
| 118 | +Always apply changes within an unmanaged solution or extend functionality by using solution layering. For more information about solution layering, see [Solution layers](/power-platform/alm/solution-layers-alm). |
| 119 | + |
| 120 | +### Avoid dependencies on deprecated applications |
| 121 | + |
| 122 | +> [!IMPORTANT] |
| 123 | +> This experience might not be available yet in the environments of all regions. |
| 124 | +
|
| 125 | +Avoid taking dependencies on deprecated applications. Deprecated applications are no longer available for installation or update. You can find these dependencies in the **Deprecated Applications** section of the **Missing dependencies** page. Expanding the section provides additional details. |
| 126 | + |
| 127 | +:::image type="content" source="media/missing-dependency-on-solution-import/deprecated-applications.png" alt-text="Screenshot that shows the Deprecated Applications section of the Missing dependencies page."::: |
| 128 | + |
| 129 | +Remove any dependencies between solution components and deprecated applications before importing your solution. |
| 130 | + |
| 131 | +## Related content |
87 | 132 |
|
88 | | -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. |
| 133 | +- [Organize your solutions](/power-platform/alm/organize-solutions) |
0 commit comments