Invalid connection - PowerAutomate

Some days ago, I started having issues in all my flows, seemingly out of nowhere. I was getting Invalid Connectionerrors, 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:

Invalid connection - PowerAutomateInvalid connection - PowerAutomate

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.

Invalid connection - PowerAutomate

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

Invalid connection - PowerAutomate

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.

 

 

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.

上一篇:敏捷开发规范化


下一篇:GitHub Actions的机器学习推理上线,推进测试部署高度自动化