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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Token Refresh Error fo...
Power Apps
Unanswered

Token Refresh Error for some users when calling Flow

(1) ShareShare
ReportReport
Posted on by 1,247 Super User 2024 Season 1
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:
I have the same question (0)
  • jefmeyer Profile Picture
    166 on at
    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.

  • Mike2500 Profile Picture
    1,247 Super User 2024 Season 1 on at
    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. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 340

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard