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 previous Project Manager, and Developer now focused on delivering quality articles and projects here on the site. I've worked in the past for companies like Bayer, Sybase (now SAP), and Pestana Hotel Group and using that knowledge to help you automate your daily tasks

View all posts by Manuel Gomes →

One thought on “Power Automate: Invalid Connection

  1. How would this apply to flows that are within a power automate solution? We have a proxy account that we’re all using just fine. But when we go to publish our app, it gives everyone but the author the error. His connections are all set to use the proxy account.

Leave a Reply

Your email address will not be published. Required fields are marked *