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 / Error from token excha...
Power Automate
Suggested Answer

Error from token exchange: Runtime call was blocked because connection has error status: Enabled

(1) ShareShare
ReportReport
Posted on by 834
Hello guys,
i have a flow that is triggered directly by the user, in app. cant do it other way... but quit often i get this kind of error on the step of get calednar or get user profile
 
{
  "status"401,
  "source""https://power-te-northeurope-3.azurewebsites.net:443/tokens/europe-001/office365/2100ba21024144298bf78b92132ef4fa/exchange",
  "message""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=047af461-61b0-47f7-93fc-f81db6a11b91, UTC TimeStamp=3/10/2025 9:40:46 AM, Error: Failed to acquire token from AAD: {\"error\":\"invalid_grant\",\"error_description\":\"AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2024-08-13T17:44:20.6886895Z and was inactive for 90.00:00:00. Trace ID: 885d25d7-5d39-4cdd-b12b-xxxxc1300 Correlation ID: 6e82c83b-483d-xxxx-b53e-52f157c3ee03 Timestamp: 2025-03-10 09:40:46Z\",\"error_codes\":[700082],\"timestamp\":\"2025-03-10 09:40:46Z\",\"trace_id\":\"885d25d7-5d39-4cdd-b12b-e2ee974c1300\",\"correlation_id\":\"6exxx3b-483d-40b5-b53e-52xxxc3ee03\",\"error_uri\":\"https://login.windows.net/error?code=700082\"}']"
}
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,976 Moderator on at
    Hi @Sifu
     
    So in this case, I would recommend that you make sure you have a retry and catch the error and retry because at that moment the 90 minute token refresh is attempting to happen and failing.
     
    If you add a refresh after catching the error I believe you should be ok.
     
    please let me know if you need help in doing that.
     
    But what I would do.
     
    Add a Scope (name it try)
     
    Add a Scope call it Catch(for errors) and add a parallel action called Scope call it Success
     
    in your try, put your Calendar attempt
     
    in your Catch, set the Run after set it to Skip, error, timed out
    in your success put the code you want to do after it works
     
    Now you can either wrap all of this in a Do Until.
    Before the Do Until create a variable... like Succeeded (boolean = false)
    Create a variable (int counter), Attempts = 0
     
    Now for the Do until make it so that it runs until Succeeded = true OR Attempts = like 4 or 5 or whatever you want.
     
    In the Success box do a set Variable Succeeded = true and you will leave the loop
    In the failed, do an Increment Variable (Attempts) + 1
     
    Now... you should be able even if it fails once in a while it should be good
     
    I would suggest that you had add something at the End that checks if Succeeded = true OR if Attempts = 4 && Succeeded = false and log that it failed even with retries.
     
    Cheers,
     
     
     
  • Sifu Profile Picture
    834 on at
    @Michael E. Gernaey, the flow it self has no delays, takes less then a minute to run so i dont think its a token that expired due to time... but if you i could still try... what i am not clear about is, how to refresh the token, i only know about the http call which i however dont do in this flow anywhere... so dont think its what you mean, or,?
  • Michael E. Gernaey Profile Picture
    53,976 Moderator on at
    Hi @Sifu
     
    I am not suggesting your flow takes 90 minutes, but your token that you are using on the Flow, in fact has a refresh timer on it, all tokens do (unless someone goofily changes their own custom one).
     
    Explaining tokens etc is beyond this forum, but suffice it all tokens have to be refreshed, its also why peoples Connections expire and have to be refreshed (and annoys them to death to have too lol)
     
    The point of the code i gave you was so that whenever a specific instance ran into that issue (refreshing the token) if it failed 1 time the retries would most likely cause it to work the next time and all other flows for 89 more minutes wouldn't face that issue.
  • Sifu Profile Picture
    834 on at
    @Michael E. Gernaey, got you, partially. The problem is that recently most cases fail, so having a DoUntil, will result into error until it reaches limit...  i tried the regular stuff like re-authenticate or recreate steps...  also its like 2-3 steps that have this issue and if one works the other fails... no idea whats going on...
  • Michael E. Gernaey Profile Picture
    53,976 Moderator on at
    wait so now it fails most of the time?
     
    Then you have something else wrong. I was delete and recreate the connections

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
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard