cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanielRK
Super User
Super User

Admin enabled multifactor authentication and now my flow broke

Hi,

 

I'm getting the following error in this step of my flow:

 

"Post your own adaptive card as the FlowBot to a user"- 

 
{
  "error": {
    "code""AuthorizationFailed",
    "message""A client certificate or authorization header was not provided."
  }
}

 

{
  "Pragma""no-cache",
  "x-ms-request-id""westeurope:33995e2d-545e-4ec6-af30-20b4f2cb6276",
  "x-ms-correlation-request-id""33995e2d-545e-4ec6-af30-20b4f2cb6276",
  "x-ms-flow-mobile-ios-version""1.3.0",
  "x-ms-flow-routing-request-id""WESTEUROPE:20210302T094803Z:33995e2d-545e-4ec6-af30-20b4f2cb6276",
  "Strict-Transport-Security""max-age=31536000; includeSubDomains",
  "X-Content-Type-Options""nosniff",
  "Timing-Allow-Origin""*",
  "x-ms-apihub-cached-response""false",
  "Cache-Control""no-cache",
  "Date""Tue, 02 Mar 2021 09:48:03 GMT",
  "Content-Length""140",
  "Content-Type""application/json",
  "Expires""-1"
}
Error code: 401
 
How do I fix this?
 
Thanks,
 
Daniel
1 ACCEPTED SOLUTION

Accepted Solutions
manuelstgomes
Super User
Super User

Hi @DanielRK 

 

This happens frequently. The connection was invalidated. You need to reconnect by creating a new connection and adding it to your Flow or fixing the current one. 

 

When you try to do the new connection you'll be asked for the MFA and this will solve the issue.

 

Can you please check if and let me know if you have any questions?

 

Cheers
Manuel

-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

7 REPLIES 7
manuelstgomes
Super User
Super User

Hi @DanielRK 

 

This happens frequently. The connection was invalidated. You need to reconnect by creating a new connection and adding it to your Flow or fixing the current one. 

 

When you try to do the new connection you'll be asked for the MFA and this will solve the issue.

 

Can you please check if and let me know if you have any questions?

 

Cheers
Manuel

-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

DanielRK
Super User
Super User

Thank you @manuelstgomes !

Hi @manuelstgomes ,

 

MFA was removed but the issue has come up again. Can you explain how to fix an existing connection where I'll be asked to MFA?

 

Our users are downloading the Microsoft authenticator app and using that to sign into their office.com and email accounts. I'm not sure how if this will break the flow each time it tries to run?

 

Is there any documentation on how to handle this issue?

 

Thank you again.

 

Regards,

 

Daniel 

manuelstgomes
Super User
Super User

Hi @DanielRK 

 

There are two ways to refresh the connection. If you want it only for your Flow, then you can add a new connection, and you'll be prompted for the MFA.

Screenshot 2021-06-29 at 08.57.07.png

 

Otherwise, the best way is to go to "Data" > "Connections," and then probably you'll see something like this:

Screenshot 2021-06-29 at 08.58.58.png

 

Fix the connection, and you'll be prompted for the MFA.

 

Can you please try and let me know if it works?

 

Cheers
Manuel

------------------------------------------------------------------
If I have answered your question, please mark it as "Accept as Solution." It will help other members finding the solution faster. If you like my response, please give it a Thumbs Up. ?
Otherwise, reply to it, and the community will do its best to help you.
 

Hi @manuelstgomes ,

 

Thanks for your help on this.

 

My problem is that the connections are breaking as such.

 

I have other users trigger my flow from a powerapp and those users that have MFA enabled are experiencing flow failures. When I log into my flow I don't see any broken connections.

 

I never shared the flow with the users for security reasons. Do those users need to go into Power Automate and fix their connections?

 

Regards,

 

Daniel

manuelstgomes
Super User
Super User

HI @DanielRK 

 

Unfortunately yes. They will have their own connections, and if something changes in the tenant, it will affect everyone.

Even if the connection is not invalid, I'm almost sure that your issues come from that.

 

As a test, create a new connection and change it in one Flow. If it solves your issue, then we have a working connection. If not, then we need to dig further.

 

Cheers
Manuel

------------------------------------------------------------------
If I have answered your question, please mark it as "Accept as Solution." It will help other members finding the solution faster. If you like my response, please give it a Thumbs Up. ?
Otherwise, reply to it, and the community will do its best to help you.

Hi @manuelstgomes ,

 

Thank you for your help on this. Will give it a try.

 

Regards,

 

Daniel

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,164)