DEV Community

PAMARTHI DHANUSH
PAMARTHI DHANUSH

Posted on Edited on

Connection vs. Connection Reference in Power Automate: The Mix-Up That Breaks Flows in Production

If you've ever fixed a broken flow by poking around in a solution and changing something called a "connection reference," only to have someone ask "wait, isn't that the same as a connection?" — you're not alone. These two terms look alike, sit near each other in the UI, and fail in nearly identical ways. But they are not the same thing, and mixing them up is exactly why "27 failed runs, then one change and it's green again" keeps happening to so many of us.

Here's the distinction, straight from Microsoft's own solution guidance, plus the actual steps to resolve it when it breaks.

What a Connection actually is

A connection is the stored authentication credential for a connector — the OAuth token, API key, or login session that lets Power Automate act as you against an external service like SharePoint, Office 365, or a SQL database. When you first add a SharePoint action to a flow and sign in, you've created a connection. It belongs to a specific connector and a specific identity.

Connections are what non-solution (standalone) cloud flows use directly. Every action in the flow points straight at that connection. If the connection breaks — a password change, an expired token, revoked MFA — every action tied to it breaks too, and you have to fix the connection itself.

What a Connection Reference actually is

A connection reference is a solution component — a placeholder that sits between a flow's actions and the actual connection. Instead of a solution-aware flow binding directly to a connection, it binds to a connection reference, and the connection reference points at a connection.

Why bother with the extra layer? Portability. When you move a solution from dev to test to production, you don't want to hand-edit every action in every flow to point at the production connection. Instead, during import, you set what each connection reference points to once, and every action using that reference follows automatically. Change the connection reference, and everything downstream stays connected — no flow redesign required.

This is also why solution-aware cloud flows always use connection references, never raw connections directly, and why Microsoft's own ALM guidance calls using connection references a best practice for any flow that will ever be moved between environments.

Why everyone mixes them up

A few reasons this confusion is so common and not really your fault:

  • They share the same connector icons in the UI, so visually a connection and a connection reference look identical at a glance.
  • They fail the same way: a red exclamation mark, actions silently not firing, a flow that won't turn on. The symptom gives you no hint which layer is actually broken.
  • The fix for both involves clicking into something that says "connection" — so even the repair workflow looks the same from the outside.
  • Canvas apps and flows don't even treat them consistently: flows use connection references for every connector, but canvas apps only use them for non-OAuth connections. Same solution, different rules depending on what you're looking at.

Actually resolving it

If the flow is solution-aware (this is the "27 failed runs" scenario from my last post):

  1. Open the solution containing the flow.
  2. Go to Connection references.
  3. Find the reference showing as invalid (red exclamation point) — that means the underlying connection is in a bad state, not the reference itself.
  4. Open it and point it at a valid, working connection — or create a new one if the old one can't be repaired.
  5. Confirm the connection's owner actually has access to the service it authenticates against (expired passwords and revoked MFA are the usual culprits).
  6. Turn the flow off, then on, and run a test.

If the flow is a standalone (non-solution) flow, there's no reference layer to redirect — go straight to the connection itself and reconnect/reauthenticate it.

One more failure mode worth knowing: if a flow won't turn on and you see ConnectionAuthorizationFailed, that's not a broken connection at all — it means the person trying to activate the flow doesn't have permission to use one of the connections it relies on. Either the connection owner shares the connection with that person, or the connection owner turns the flow on themselves first. After that, co-owners can toggle it freely.

The rule of thumb

Never let a solution-aware flow bind straight to a raw connection if you can avoid it. Route everything through a connection reference. It's a five-minute setup step that saves you from rebuilding flow logic every time a credential changes or a solution moves environments — which, if you've been doing this long enough, is always sooner than you'd like.

Top comments (0)