Some days ago, I started having issues in all my flows, seemingly out of nowhere. I was getting Invalid Connection errors, all of them related to my account without having changed anything substantial in it.

The Problem

The error itself doesn’t provide much context in how to solve the issue:

Invalid connection

Here’s what my two main flows look like:

I checked the connection itself in the Power Automate’s Data > Connections and seemed to be ok. No changes. They were still there with a Connected state.

The issue is triggered when you enable multi-factor authentication in your account, so Power Automate invalidates the connection. It now requires more information from the user, which makes sense. The issue was that flow should have flagged it is either “Invalid Connection” or “Not Connected” to indicate that I need to fix it.

The Solution

The solution was simple. Just go to the Flow’s Data > Connections

And re-authenticate to the same account. Power Automate will ask for your multi-factor authentication token and resets the connection. Just run your flows and voilà. Problem solved.

Photo by Briana Tozour on Unsplash

Key Takeaways

Your first instinct would be to remove the connections from the flow and re-add them, bringing a lot of work in refactoring. You would be wasting time since the primary connection would still have the same issue.

These issues with connections happen all the time, especially if you’re not in control of the security settings of your account. The administrator may rollout changes without you knowing, and this can have an impact on your flows.

Always go first to the Data > Connection and reset the connection. By doing this, you will reset your authentication with the new security policies in place and, in most cases, will solve your issue.

Have a suggestion of your own or disagree with something I said? Leave a comment or interact on Twitter and be sure to check out other Power Automate-related articles here.

Featured Photo by Sarah Kilian on Unsplash

Manuel Gomes

I'm a Project Manager with experience in large projects and companies. I've worked in the past for companies like Bayer, Sybase (now SAP) and I'm currently working for Pestana Hotel Group.

View all posts by Manuel Gomes →

Leave a Reply

%d bloggers like this: