cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ZachJayy
Helper III
Helper III

OneDrive for Business - Access Code Has Expired

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?

1 ACCEPTED SOLUTION

Accepted Solutions
v-duann-msft
Community Support
Community Support

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

 

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

 

Thanks

Anna

View solution in original post

2 REPLIES 2
v-duann-msft
Community Support
Community Support

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

 

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

 

Thanks

Anna

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?

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,186)