Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Token Refresh Error for some users when calling Flow

(1) ShareShare
ReportReport
Posted on by 1,247
I have a canvas app that calls a flow. The first non-variable action in the flow is creating a sharepoint list item. This action fails for some users. If they refresh the power app and try again, it works. Or, if I access the failed run and click resubmit, it works. I've made sure that they have contribute access to the list, and there are no premium connectors in this flow. 
 
The error message is:
Error from token exchange: Runtime call was blocked because connection has error status: Enabled| Error, and sharepointonline is in the block list. Connection errors: [ParameterName: token, Error: Code: Unauthorized, Message: 'Failed to refresh access token for service: sharepointonlinecertificatev2. ... 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 ... and was inactive for 90.00:00:00. 
 
IT has confirmed this, saying that they can see that the refresh token has expired. The question is how is it possible for the user to access the power app, click through several screens to get to the screen with the button that starts the flow, all with an expired refresh token? If the user refreshes their browser, they apparently get a new refresh token, and the flow completes successfully. 
 
Any ideas for addressing this, other than popping up a message telling users to refresh their browser?
Categories:
  • Mike2500 Profile Picture
    Mike2500 1,247 on at
    Token Refresh Error for some users when calling Flow
    It sounds like my situation is not as severe as yours, as it seems to resolve the issue if users refresh their browser. They do not need to use an incognito window or do anything with the connections. 
     
    Other forum posts mentioned the connections, but I can't find any connections that report any problems. 
  • jefmeyer Profile Picture
    jefmeyer 162 on at
    Token Refresh Error for some users when calling Flow
    We're facing the same issue and have opened two tickets with Microsoft now on this issue.  The first ticket was back in November 2024 and they've provided the following "fix" via a Known Issue (https://admin.powerplatform.microsoft.com/knownissues/4455860).

    We are actively investigating this and working on a solution for these Token Exchange failures.

    Current Mitigation: After the Flow action executes a connection and encounters a Token Exchange failure, the connection is flagged as broken. At this juncture, there are several options available to rectify the connection issue:

    1) User opens an incognito browser window to relaunch the application. Upon app relaunch, Power Apps will re-authenticate the connection if it detects that it is broken (without any user interaction if possible).

    2) The user navigates to the connections section on make.powerautomate.com or make.powerapps.com to manually re-sign into the connection.
    ----------------------

    I've opened another ticket last week because I don't think this is a fix to the issue.  I'm asking that the product team reevaluate their recommendations.  

    I would recommend opening a ticket with Microsoft so more traction can be had around this issue.  In our case, it seems like the PowerApp doesn't recognize that the associated Power Automate connections may need to be refreshed, so the user can launch the app without issue, but the user isn't notified that they have broken connections from within the associated Power Automate.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard