Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
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? 😕

  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: Error from token exchange and can't fix it

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >