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? 😕
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.
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.