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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / OneDrive for Business ...
Power Automate
Answered

OneDrive for Business - Access Code Has Expired

(0) ShareShare
ReportReport
Posted on by 81

I have a fairly in depth flow that failed the other day. After investigating, it seems the error is related to an action creating a document in OneDrive. Screenshots below:

ZachJayy_0-1614265453454.pngZachJayy_1-1614265491530.png

I've never seen this error before and it only appeared one time in a series of runs. So I am hesitant to believe that the issue is the Connection or my credentials. It's odd to me that the flow ran at approximately 1:00pm but this access token that was unusable was terms from 5:39pm to 6:44pm.

Can anyone help me with understanding what this error is / what caused it and how to insure against it in the future?

Categories:
I have the same question (0)
  • Verified answer
    v-duann-msft Profile Picture
    Microsoft Employee on at

    Hi @ZachJayy 

     

    Thank you for posting.

     

    If you encounter access token expiration error. There is no good solution for that as this is system security mechanism by design.

     

    This is access token lifetime limitation and we are not able to configure from user side. Thus, you could only update or create a new connection to the connector before the Flow Access Token Expires as workaround.

    v-duann-msft_0-1614318535504.png

    https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes

     

    Sorry for the inconvenience caused. Hope the content above may help you.

     

    Thanks

    Anna

  • ZachJayy Profile Picture
    81 on at

    This doesn't seem to line up with the fact that it only happened for a single run of this flow? And the dates referenced in the token don't match the timestamp for the run or the actions within it. What is that about?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard