I have a workflow that on occasion starts to fail with an email. The connection works fine like 95% and then it fails with Message: 'Failed to refresh access token for service: sharepointonlinecertificatev2. Correlation Id=fcaa93c3-c2a2-4feb-8a32-83c399b97965. Anyone else find a solution
4 of your flow(s) have failed
The flow(s) listed failed in the past week and may need your attention.
I opened the workflow, and I see the following error message.
{
"status": 401,
"source": "https://power-te-westus-2.azurewebsites.net:443/tokens/msmanaged-na/sharepointonline/626e73000f1d49ef84d8392274bfd2d8/exchange",
"message": "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=fcaa93c3-c2a2-4feb-8a32-83c399b97965, UTC TimeStamp=2/28/2025 10:48:58 PM, 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 2024-09-04T17:15:50.0857269Z and was inactive for 90.00:00:00. Trace ID: 6bee9b4a-55a9-461a-9582-c96e517a0100 Correlation ID: 5b485758-7670-422b-b64d-7ee43ac5ba6e Timestamp: 2025-02-28 22:48:58Z\",\"error_codes\":[700082],\"timestamp\":\"2025-02-28 22:48:58Z\",\"trace_id\":\"6bee9b4a-55a9-461a-9582-c96e517a0100\",\"correlation_id\":\"5b485758-7670-422b-b64d-7ee43ac5ba6e\",\"error_uri\":\"https://login.windows.net/error?code=700082\"}']"
}
According to the error message, it says that the connection string was created on 9/4/2024 and it has expired due to inactivity for the last 90 days. Go to connections, find the connection and refresh it or go into the action itself and rebuild by reconnecting.
If you have a flow that doesn't run often, you can also build a helper flow that simply gets an item from a SharePoint list every two weeks to keep the connection active.
Was this reply helpful?YesNo
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.