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 / The access token has e...
Power Automate
Suggested Answer

The access token has expired. It's valid from '7/17/2021 11:53:51 PM' and to '7/18/2021 12:58:51 AM'.

(1) ShareShare
ReportReport
Posted on by

Hi,

 

The onedrive create a file action gave this error:

 

Any suggestions on how to resolve?

 

DanielRK_0-1628859492955.png

 

Categories:
I have the same question (0)
  • Mitanshu Profile Picture
    1,650 Moderator on at

    From the left navigation rail in Power Automate, go to Data -> Connections.

    Find the OneDrive connector and Ssign-in again (most likely Single Sign-On).

    This will revalidate your connector.

    Now come to the failed run and resubmit.

    happyume_0-1628877212505.png

     


    Alternatively, go to Edit Flow and from the OneDrive action - revalidate the account used for connector using single-sign on.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up

  • Community Power Platform Member Profile Picture
    on at

    Hi @happyume ,

     

    Thank you for helping me. Unfortunately this didn't help.

     

    It's a flow that other people in my organisation are using. 

     

    It works for me.

     

    The Ondrive connector is signed in with a service account. I did your check in the service account flow portal as well but the connection is valid.

     

    I haven't shared the onedrive folder that this connector is trying to work in with those users. Could that be the issue?

     

    I'll run a test and report back.

     

    Thanks again.

     

    Regards,

     

    Daniel 

  • Mitanshu Profile Picture
    1,650 Moderator on at

    I assumed that the flow was giving error when you are running it.

     

    I take that for some of your users this is working fine, while not working for a few users - is this correct?

    Sharing OneDrive folder is not an issue. You don't have to share that, because OneDrive connector will use User's OneDrive and create PDF file through it.

     

    For the user who is getting this error, most likely they changed their account password and that is when the access token expired.

     

    If your users are initiating the cloud Flow from Power Apps, then can they (who changed their password) reload the Power App so that they see the initial permission screen (consent pop-up)? 

     

    Alternatively, can you make this a feature App within your organization so that nobody see the initial permission screen (consent pop-up) when they open the Power App - this way user password change will have no impact on the access token. See https://www.o365dude.com/2019/01/06/bypass-consent-pop-ups-in-powerapps/ for further information.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up

  • apkoh18 Profile Picture
    9 on at

    I am getting the same error  with a service account 

    I do not have the prompt to validate account

    Password for service account is valid

     

  • Leemillward Profile Picture
    7 on at

    did you ever get to the bottom of this issue, we are seeing the same error currently?

  • arjun7208 Profile Picture
    10 on at

    We received the same error few days back but it was just for few runs, after which it got fixed automatically and flow is running fine after that. Strange!

  • Suggested answer
    hasnainhaider68 Profile Picture
    47 on at
    For issues related to expired access token, user connections, or multi-factor authentication (MFA), please follow these steps:

    1. Open an incognito window and log in as the user. This will trigger an Authenticator notification to the app, refreshing the access token.

    2. Log in, navigate to the connections, and reconfigure any broken connections. Then, access Power Apps or any other solution and perform a hard refresh of the browser. The issue should be resolved.

    The problem arises due to inactive or outdated tokens. Refreshing the token through the Authenticator app will resolve the issue.
    Please let me know when this is complete.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard