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 Pages / Error from token excha...
Power Pages
Unanswered

Error from token exchange and can't fix it

(0) ShareShare
ReportReport
Posted on by

Hello, an error appears from the beginning of the application, 

 

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. Correlation Id=c83bb336-2c70-48e1-81ae-831d85e129e1, UTC TimeStamp=6/28/2022 2:26:43 PM, Error: Failed to acquire token from AAD: {"error":"invalid_grant","error_description":"AADSTS50173: The provided grant has expired due to it being revoked, a fresh auth token is needed. The user might have changed or reset their password. The grant was issued on '2022-05-11T11:17:30.2166618Z' and the TokensValidFrom date (before which tokens are not valid) for this user is '2022-06-21T09:48:36.0000000Z'.\r\nTrace ID: 89798d2d-357a-44ca-8acb-22398e658d01\r\nCorrelation ID: b780c2a9-73a9-4ec1-8df5-914ab3b75d87\r\nTimestamp: 2022-06-28 14:26:43Z","error_codes":[50173],"timestamp":"2022-06-28 14:26:43Z","trace_id":"89798d2d-357a-44ca-8acb-22398e658d01","correlation_id":"b780c2a9-73a9-4ec1-8df5-914ab3b75d87","error_uri":"https://login.windows.net/error?code=50173"}']

 

The error appears randomly in different connectors (for example in the sharepoint connector, get calendar, get manager o365). 

Logging off the user, changing the password, re-authenticating, refreshing the connections does not help. Fixed connections break again.

 

Do you have any idea guys? 😕

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Monpaw 

     

    This error may occur if there is a token expiry limit set by your organization. 

     

    1. Check with your Azure Administrator if they have implemented any conditional access policy 

    2. Also, I can see there is a fix rolled out by Microsoft 

     

    https://github.com/SharePoint/sp-dev-docs/issues/7824 

     

    Ask your office 365 administrator to push the recent office updates. 

     

    Official article  

     

    Hope it helps. 
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 33

#3
11manish Profile Picture

11manish 20

Last 30 days Overall leaderboard