
Announcements
Hi,
In a proces, there is a flow which will start by pressing a button in a power app.
This is working as expected, but now some users are having issues because the flow is giving connection errors.
Most of the times this is happening when a user has changed his password 1 or 2 weeks before we notice the failure.
The error that we receive in the flow is the following:
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=********-****-****-****-b5e8ba5a5e39, UTC TimeStamp=10/21/2023 5:12:18 AM, 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.
This started happening a couple of weeks ago.
So for most of the users this isn't an issue, but for users who are changing their password this issue occurs.
Because they are using a power app, they can't see an error when pressing the button to execute the flow (because when they click on the button, the app will execute the flow and close the app).
Does anyone has an idea how this issue can be prevented?
I saw that there are similar topics where this issue is being discussed, but unfortunately without a solution.
Thanks.
Hi @AlexanderDM
I am not aware unfortunately of an absolute fix, as this is more a cache/token issue. But what you can do, is write your flow so that you capture the error, and do multiple retries in which case you have a good chance it might refresh for you.
Thats what I have done for mine that do this.
This is where you would create Try/Catch Scopes and assign them to the success/failure of that action and make it a loop, where if its successful exit the loop, if not, update your counter and try again after say 20 seconds.
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey