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

Community site session details

Session Id : PAQtgKWXpff51zZryva1Uj
Power Automate - Using Flows
Unanswered

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'.

Like (1) ShareShare
ReportReport
Posted on 13 Aug 2021 12:58:41 by

Hi,

 

The onedrive create a file action gave this error:

 

Any suggestions on how to resolve?

 

DanielRK_0-1628859492955.png

 

  • Suggested answer
    hasnainhaider68 Profile Picture
    47 on 07 Aug 2024 at 09:50:08
    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'.
    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.
  • arjun7208 Profile Picture
    10 on 19 May 2023 at 05:05:15
    Re: 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'.

    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!

  • Leemillward Profile Picture
    6 on 09 Dec 2022 at 10:41:44
    Re: 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'.

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

  • apkoh18 Profile Picture
    9 on 28 Oct 2022 at 04:15:26
    Re: 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'.

    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

     

  • Mitanshu Profile Picture
    1,635 Moderator on 18 Aug 2021 at 10:09:06
    Re: 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'.

    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

  • Community Power Platform Member Profile Picture
    on 18 Aug 2021 at 10:02:05
    Re: 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'.

    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,635 Moderator on 13 Aug 2021 at 17:54:18
    Re: 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'.

    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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Featured topics

Restore a deleted flow