How to Fix Power Automate Teams Status Flow 401 Error
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.
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.
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.
Log in to Power Automate. On the left navigation pane, expand 'Data' and select 'Connections'.
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.
Click on the Microsoft Teams connection, select 'Update' or 'Switch account', and sign in again with your Microsoft 365 credentials.
Consult the Power Platform Community
If re-authenticating does not fix the invalid parameters error, you may need specialist help regarding backend API changes.
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. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installer file and follow the on-screen instructions to complete the setup.
- 3. Open and Edit Files: Launch WPS Office and instantly open your existing Microsoft Office files without formatting loss.

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.




