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

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,124)