Skip to main content

Notifications

Power Automate - Using Connectors
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?

  • ZachJayy Profile Picture
    ZachJayy 81 on at
    Re: OneDrive for Business - Access Code Has Expired

    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?

  • Verified answer
    v-duann-msft Profile Picture
    v-duann-msft on at
    Re: OneDrive for Business - Access Code Has Expired

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics