web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Connection error for s...
Power Automate
Unanswered

Connection error for some users

(0) ShareShare
ReportReport
Posted on by 24

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.

 

AlexanderDM_0-1698159565226.png

 

 

 

 

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard