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 / Flow Connections error...
Power Automate
Answered

Flow Connections error due to Credential Expiration

(0) ShareShare
ReportReport
Posted on by 4

Hello All,

 

We are having an issue with credentials expiring in Microsoft Flow Connections.

The connections seem to expire every 2 weeks disrupting the Flow associated with it.

 

The flows in question are set to run daily and work as expected, but break down after 14 days due to authentication issues
and users are required to reenter their credentials.

 

Error Message:
"Invalid JWT Token. The token is expired."

 

Is there a way to ensure that the flow connections do not break ?

 

Thanks.

Categories:
  • TravisB Profile Picture
    Microsoft Employee on at

    Hi @chanakya,

     

    Can you please post the url of the flow edit page for the particular flow you're having issue with?

     

    Also what is the service associated with the expiring connection (outlook, facebook, etc)?

     

    Thanks,

    Travis

  • chanakya Profile Picture
    4 on at

    Hi Travis,

     

       Thanks for reaching out.

     

    The connections are using following services:

    "SharePoint" and "Office 365 Outlook"

  • TravisB Profile Picture
    Microsoft Employee on at

    Hi @chanakya,

     

    This is strange. Those are both Microsoft services so we should be able to refresh these connections indefinitely for you.

     

    Can you please post the url of the edit flow page for the affected flow? This will let me identify the logs for your specific connection.

     

    Thanks,

    Travis

  • chanakya Profile Picture
    4 on at
  • TravisB Profile Picture
    Microsoft Employee on at

    Hi @chanakya,

     

    We dug into the logs and can see that we are failing to refresh your connections with an error having to do with MFA.

     

    This is unusual since if you created the connection while signed in with MFA, we should be able to refresh the connection indefinitely.

     

    The running theory is that your admins may have done something in the background that is affecting the refresh requirements so our attempts to refresh fail.

     

    I'm going to private message you an email alias. If you can get your tenant admin to write to that alias, we can go through with them to try and figure out what they're doing that's affecting your connections.

     

    Best,

    Travis

  • Verified answer
    TravisB Profile Picture
    Microsoft Employee on at

    Wanted to post the conclusion of this thread in case anyone happens to run into the same issue.

     

    It looks like this tenant had instituted an MFA expiration policy of 14 days that is preventing us from refreshing their users' connections. This may be opted into by default when instituting MFA for your tenant - so that's something to consider.

     

    For more information about these expiration rules, documentation can be found here:
    https://docs.microsoft.com/en-us/azure/active-directory/active-directory-configurable-token-lifetimes

     

    Best,

    Travis

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi TravisB,

     

    I am facing a similar issue. I have a custom-solution built using Microsoft SharePoint Lists and Microsoft Flow.

     

    When an item is created on List A, I have designed a Flow to create an item on List B. 

     

    The flows worked smoothly until yesterday which was when MFA was enabled by our admins for logging in to O365.

    After reading this thread,  I refreshed my connections (SharePoint) in Microsoft Flow which has now triggered the flows again.

     

    Now, I am not sure if they will keep running indefinitely or will need a connection refresh regularly for them to keep running?

    Is there any way to know this? Can this be avoided/resolved?

  • TravisB Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Referencing the documentation above, it looks like the default setting for MFA refresh tokens is to be renewed indefinitely.

     

    So unless your tenant has specifically decided otherwise, there shouldn't be any issues out of the box.

     

    If your tenant has configured a shorter lifetime, the documentation above also outlines methods for specifiying a policy specifically for Flow that supercedes the default setting.

     

    Thanks,

    Travis

  • NieGreJoh Profile Picture
    23 on at
  • DougL Profile Picture
    54 on at

    The default most definitely is not "renew indefinitely". We're running into the same exact issue with MFA, and we never tampered with any of the default values.

     

    There really should be a way to use a stored app password with this rather than a refresh token. That's the standard way to handle MFA from service accounts.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard