Export & import

How to fix nesting-limit errors on import

A nesting-limit error usually means the source workflow has been converted honestly, but the exported representation is carrying too many wrapper scopes, conditions, or branch containers on top of the real logic. The solution is usually structural flattening, not manual rebuild.

6 min readUpdated Apr 3, 2026nestingimport errorscopes
Quick answer
In shortPower Automate allows up to eight levels of nested actions; trivial wrapper scopes often need to be flattened before export.
Most likely causePower Automate enforces a maximum nesting depth for actions. If the exported definition pushes a branch to level nine or beyond, import fails even when every individual action is otherwise valid.
What to do nextMake the fix, generate a new package, and import the new ZIP instead of retrying the old one.

What Power Automate is complaining about

Power Automate enforces a maximum nesting depth for actions. If the exported definition pushes a branch to level nine or beyond, import fails even when every individual action is otherwise valid.

This tends to show up in workflows with repeated scopes inside repeated conditions, especially when several of those scopes exist only to group a single child action.

The template actions ... are nested at level '9' which exceeds the maximum nesting limit of '8'.

Why flattening helps

Many generated scopes are structural leftovers rather than business logic. If a scope has only one child and adds no meaningful semantics, flattening it reduces depth without changing the workflow's intent.

Good flattening should happen before the final naming and dependency passes so the exported tree is both shallower and easier to validate.

What to do when you hit this error

Re-export after the nesting fix rather than editing the package manually. A good export path should include a preflight nesting check that fails early if a branch still exceeds the limit.

If the same workflow keeps hitting the limit, the problem is usually one deep repeated branch that still has redundant wrappers.

Related articles

Keep reading the next most relevant guides for this workflow pattern.