web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power automate flow fa...
Power Automate
Answered

Power automate flow failing on approval with 401 error code

(0) ShareShare
ReportReport
Posted on by 45

Hi all,

I've created and tested a multiple approval flow which works when I test it. Basically how it works is that for a selected item --> send approval 1 --> send email to approver 1 --> send approver 2 --->send email approver 2-->send approver 3 -->send email approver 3. However when it is production I get failures at different approval stages with a 401 error code.

 

Here is the overall flow that I have created:

1st level approval1st level approval2nd level approval2nd level approval3rd level approval3rd level approval4th level approval with failure4th level approval with failure

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

this is the error code description: 

Error from token exchange: Runtime call was blocked because connection has error status: Enabled| Error, and office365 is in the block list. Connection errors: [ParameterName: token, Error: Code: Unauthorized, Message: 'Failed to refresh access token for service: aadcertificate. Correlation Id=09a7d3da-4820-44b4-b8ec-4e223f85ce98, UTC TimeStamp=1/27/2021 1:03:18 AM, Error: Failed to acquire token from AAD: An internal error occurred.
']

 

I'll get this error code on different sections of the flow on different runs..

 

At first I thought it was to do with some timout but then I checked that flows can run for 30 days which is well within my bounds for these cases.

 

can anyone show some insight on this?

Categories:
I have the same question (0)
  • manuelstgomes Profile Picture
    6,625 on at

    HI @ctw1991 

     

    This is an issue with the connection. Sometimes connections get broken due to changes in permissions, for example, so you need to refresh it.

    Screenshot_2021-01-28_at_08_01_51.jpg

     

    Please check if the connection has some warning and if not, try adding a new one just for this case for testing.

    If it works, please go back to your "Data>Connections" tab and check if you can re-connect or need to create a new one.

     

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

     

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

    Cheers
    Manuel

  • ctw1991 Profile Picture
    45 on at

    Hi,

    Thanks for replying. However The flow is running in other parts with the same connection (send email) without any issue. So I dont see why I would need to reconnect? 

    Please advise

  • manuelstgomes Profile Picture
    6,625 on at

    Hi @ctw1991 

     

    Indeed it doesn't make sense, but it's the only thing that can explain why you're getting these types of issues. 

     

    Connections are fragile in a sense and sometimes get screwed up. It's annoying, I know.

     

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

    Cheers
    Manuel

  • Verified answer
    pcmccull Profile Picture
    89 on at

    This seems to be a new issue with Power Automate and not the typical Connection needs to be reconnected issue:

    https://powerusers.microsoft.com/t5/I-Found-A-Bug/Failed-to-refresh-access-token-for-service/td-p/809553

     

    The flows will run correctly many times and then a random action on a random run will fail with this error. Then the next run will be fine. 

     

     

  • Verified answer
    manuelstgomes Profile Picture
    6,625 on at

    Hi @ctw1991 

     

    Please see @pcmccull 's post. With that information, that may be a known issue.

     

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

    Cheers
    Manuel

  • shaikhii Profile Picture
    4 on at

    While connecting to SharePoint, attached screenshot occur

    Err.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard