logo
search
Teams Error Codes

How to Fix Power Automate Teams Status Flow 401 Error

Maira MehtabMaira Mehtab Sep 21, 2026 869 views

Question details

The user needs to fix a long-running Power Automate flow that fails to update Microsoft Teams status.

Product
Power Automate / Microsoft Teams
Device & OS
not provided
Scenario
Using the Set_My_Status action in Power Automate to automatically change the Microsoft Teams status to Available or Offline.
Observed behavior
The flow stops working, reports invalid availability and activity parameters, and returns a 401 Unauthorized error.
Before you start

Ensure your Microsoft 365 account password has not recently changed and that you have the correct licensing permissions to use Power Automate with Microsoft Teams.

Solution 1Recommended

Re-authenticate the Microsoft Teams Connector

A 401 Unauthorized error typically indicates an expired authentication token. Reconnecting the Teams connector often resolves this issue.

Power Automate connectors occasionally lose their authentication token, especially for long-running flows or after a password change. Refreshing the connection credentials will generate a new valid token.

1
Access Data Connections

Log in to Power Automate. On the left navigation pane, expand 'Data' and select 'Connections'.

2
Locate the Teams Connection

Scroll through your active connections and find the 'Microsoft Teams' connector. If it has an expired token, it will usually display a 'Fix connection' warning.

3
Update Credentials

Click on the Microsoft Teams connection, select 'Update' or 'Switch account', and sign in again with your Microsoft 365 credentials.

Test Your Flow: After updating the connection, run the flow manually to verify if the Set_My_Status action works without throwing the 401 error.
Free Microsoft Office alternative

Looking for a Simpler Office Solution? Try WPS Office

Dealing with complex Microsoft 365 automations and connector errors can be frustrating. If you just need a reliable, lightweight suite for your daily document tasks without the enterprise-level troubleshooting, WPS Office is an excellent free alternative.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installer file and follow the on-screen instructions to complete the setup.
  3. 3. Open and Edit Files: Launch WPS Office and instantly open your existing Microsoft Office files without formatting loss.
Seamlessly compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation that runs quickly on older and newer devices.Free to use with an intuitive, familiar user interface.Built-in PDF editing tools for easy document management.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Power Automate Teams flow return a 401 error?

A 401 error means 'Unauthorized'. In Power Automate, this almost always happens when the credentials used by the Microsoft Teams connector have expired, or if the account's password was recently reset.

What do 'invalid availability and activity parameters' mean in the Set_My_Status action?

This error occurs when the text strings provided to the action (like 'Available', 'Away', or 'Offline') do not perfectly match the expected case-sensitive values defined by the Microsoft Teams API. It can also happen if Microsoft updates the backend connector requirements.

How do I fix a broken connection in Power Automate?

You can fix it by navigating to 'Data' > 'Connections' in the left menu of Power Automate. Find the broken connection, click on the ellipsis (...) menu, and choose 'Update' or 'Sign in' to refresh your authentication.