LowCodeStacks™
Sign in

Move a cloud flow into a solution, and fix 'missing dependencies' on import

Why flows belong in solutions, how to add existing flows (one at a time or in bulk), what to set up so they deploy cleanly, and how to read and fix 'Import failed due to missing dependencies'.

Power AutomateFix a problem9 min read

Checked against Microsoft Learn 10 sources · Updated By · drafted with AI help, checked by a personHow we write guides

A flow built straight in My flows works fine until you need to move it to test or production, hand it to someone else, or call it from an agent. Then you need it in a solution: a package of the flow and everything it depends on, which is how Power Platform moves work between environments. This guide covers getting flows in, and getting solutions to import.

What to do when a solution import fails with 'Import failed due to missing dependencies'. Select Show dependencies: the page groups the missing items into sections, and the three main ones each have their own fix. Applications: a Dynamics 365 or Microsoft app is missing or older in the target; install or update it, and for first-party apps the Deploy Dependencies option can install them and then import. Managed Solutions: your solution builds on another managed solution the target doesn't have; import the same version of that solution into the target first. Unmanaged Components: something you customized in the source but didn't include, such as a column, view or form; go back to the source, add those components to your solution and export again. All three fixes lead to importing your solution again. A note at the bottom: not sure what's missing? Unzip the solution file and open solution.xml; the MissingDependencies element lists each required component by name and ID.
The three main sections Show dependencies lists, and the fix for each.

Why bother

Flows in solutions ("solution-aware" flows) can:

  • move between environments with their dependencies, by exporting and importing the solution, or through pipelines;
  • use connection references, so each environment plugs in its own connections at import time;
  • use environment variables for values that change per environment, such as a site URL or an email address, instead of hard-coding them;
  • change owner in place. Outside a solution, the owner is built into the flow itself, so it can't be swapped;
  • be used by Copilot Studio agents, which need flows to be in a solution.

Tip

New environments with Dataverse create new cloud flows inside solutions by default. Admins can check this under Settings → Product → Features → Create new canvas apps and cloud flows in Dataverse solutions.

Add an existing flow to a solution

  1. In Power Automate, go to Solutions and open your solution, or create one with your own publisher.
  2. Select Add existing → Automation → Cloud flow.
  3. Choose the Outside Dataverse tab for flows not yet in any solution. Flows already in other solutions are on From Dataverse.
  4. Select the flow and select Add.

What a solution shows once a flow is in it, as of September 2026:

  1. Add existing, on the command bar, opens the menu where you choose Automation, then Cloud flow.
  2. Objects lists what the solution contains, by kind, with a count for each. Cloud flows (1) is selected here, so the list shows the flow that was added.
  3. Connection references is where the solution's connection references are listed. Check it before the first export (see below).
  4. The list shows each flow's Display name, Type (Cloud Flow) and Managed. No means the flow is unmanaged, as it is in a development environment.
A solution named Invoice Automation open in Power Automate, in the LowCodeStacks Dev environment. The command bar has New, Add existing, Publish all customizations and a Search box. The Objects pane on the left lists All (1), Agents (0), Apps (0), Cards (0), Cloud flows (1), selected, Connection references (0), Data workspaces (0) and Tables (0). The page is titled Invoice Automation, Cloud flows, and its list has one row: display name Invoice approval, name Invoice approval, type Cloud Flow, Managed No, Customized Yes.
Recreated by LowCodeStacks from Microsoft Learn screenshots (CC BY 4.0): a solution's Cloud flows list in Power Automate, interface as of September 2026, with made-up names.

To move many flows at once, an admin can run the PowerShell cmdlet Add-AdminFlowsToSolution to move some or all flows outside solutions in an environment.

Some flows outside solutions can't be added. Microsoft lists these cases under the solution's known limitations.

Make it deploy cleanly

Before the first export:

  • Connection references:
    • check the solution's Connection references and that each flow action uses one;
    • on import, you'll pick or create a connection for each reference in the target environment;
    • an unmapped reference makes actions fail with ConnectionNotConfigured.
  • Environment variables: replace hard-coded values such as site URLs, list names, recipients and IDs with environment variables, and set each environment's value at import time.
  • Child flows: add any child flow the parent calls to the same solution.
  • Only what you use: add only the parts of a table you actually changed (specific columns, views, forms), not the whole table. Whole tables drag in extra dependencies and layers.

"Import failed due to missing dependencies"

The solution refers to something that exists in the source environment but not in the target. Select Show dependencies. The Missing dependencies page groups the missing items into sections.

What the page shows, as of October 2025:

  1. The red bar says the import can't go on: Resolve all the dependencies and retry import.
  2. Managed Solutions lists each managed solution the target lacks, with its version, and the components your solution needs from it. Here the target needs LowCodeStacks Core (1.2.0.0).
  3. Unmanaged Components lists components that were customized in the source but aren't in your solution. Here it's the table lcs_invoiceline.
  4. Each row gives the component's Display name, Name/Id and Type, then what in your solution needs it (Required by) and that item's type. Narrow columns are cut off with an ellipsis.
  5. Nothing is missing here under Applications or Deprecated Applications, so those sections don't appear.
The Missing dependencies dialog for the solution InvoiceAutomation. Under the title, the line says you'll need to import the following items to this environment in order to import InvoiceAutomation, and a red error bar says missing dependencies are components required by the solution but are missing in the current environment, resolve all the dependencies and retry import, with a Learn more link. The list has the columns Display name, Name/Id, Type, Required by (cut off as Require...), a second Type, and Action. The Managed Solutions (1) section says these dependencies are part of other managed solutions and all the solutions listed must be installed before you can continue; under it, LowCodeStacks Core (1.2.0.0) (1) is expanded to show Invoice Category, lcs_invoicecategory, type Table, with its Required by and second Type cells cut off as Invoice ... and Mode.... The Unmanaged Components (1) section says these dependencies are unmanaged components that are not present and you must add them to the solution you're trying to import; it lists Invoice line, lcs_invoiceline, type Table, with the same cut-off Invoice ... and Mode... cells. At the bottom are the buttons Close and Download log.
Recreated by LowCodeStacks from Microsoft Learn screenshots (CC BY 4.0): the Missing dependencies page after a failed solution import, interface as of October 2025, with made-up names.
SectionIt meansFix
ApplicationsA Dynamics 365 or Microsoft app is missing or older in the targetInstall or update it (an admin can use the Install / Update buttons; anyone else can use Copy Install Link / Copy Update Link and send it to an admin). For first-party apps, the Deploy Dependencies option can install them and then import
Managed SolutionsYour solution builds on another managed solution the target doesn't haveImport the same version of that solution into the target first
Unmanaged ComponentsSomething you customized in the source but didn't include, such as a column, view or formGo back to the source, add those components to your solution, export again, and import
Deprecated ApplicationsYour solution depends on an app that's deprecated, so it can't be installed or updatedRemove those dependencies from your solution in the source, export again, and import

Tip

Not sure what's missing? Unzip the solution file and open solution.xml. The <MissingDependencies> element lists each required component by name and ID.

Other import errors and warnings:

  • "There was an error calculating dependencies … Missing component id [GUID]": search solution.xml for that GUID to find the component's name, then add it to the solution or to the target.
  • Version warning ("exported from an environment with a more recent version of Dataverse"): the target is behind the source. You can continue, but missing components are likely, so keep development, test and production on the same versions.
  • A managed solution can only depend on managed components. If you import as managed, everything it needs must also be managed in the target.

Habits that prevent it

  • Build in a development environment, in an unmanaged solution, and deploy to test and production as managed solutions.
  • Don't edit managed components directly in test or production. That creates an unmanaged layer that hides future updates.
  • Keep environments on the same versions, and install standard first-party solutions everywhere before importing ones that depend on them.
  • Avoid dependencies on deprecated apps. They can't be installed in a new environment.

Sources

Add LowCodeStacks as a preferred source on Google

Did this fix it?

Get the weekly email

New guides and updates from LowCodeStacks, every Tuesday. One email a week, no more.

From LowCodeStacks, Regina, SK, contact@lowcodestacks.com. You can unsubscribe any time, from the link in every email or in your privacy settings. See the Privacy notice.

Comments

No comments yet. Share what worked for you.

Sign in to comment. Comments show under a display name you choose, never your email.