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 Automate
Unanswered

SharePoint File Locks

(0) ShareShare
ReportReport
Posted on by 4

Hi All, 

 

I am working on an approval flow which updates metadata properties after use, the problem seems to be if a user has the file open it registers a user lock on the file (which in my case is problematic as some of our users never close word tabs / documents), additionally in SharePoint if you open and close a document really quick (before the tab has fully loaded) the document lock does not get released for approximately 6 mins. 

I thought maybe removing user permissions before executing any steps would help but the file is still locked for the 6 mins after I remove the permissions.

 

Does anyone know of any handy ways to revoke file locks, or even transfer them to the account running the connector step?

Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @JordanZWWHF ,

     

    Could you please share more details about your scenario, post your flow trigger and actions details in a screenshot?

     

    Generally speaking, the 6 minutes limitation is by default, files will be locked up to 6 minutes in case anyone else edits the file when user who is working on it has not completed their work. 

     

    Best regards,

  • JordanZWWHF Profile Picture
    4 on at

    Hi @v-jefferni ,

     

    No worries, the solution is an approval process, and the trigger is based on dataverse table updates. 

    There is no issue in the flow triggering just when I am trying to set a 'Status' content column to say 'Approved' if the user has the document open then the `Send HTTP Request to SharePoint` step fails. 

     

    The error is below and closing the document does solve it however I need a solution which get force unlock or transfer the lock of the document as users will struggle to remember to close the file.

    JordanZWWHF_0-1685936346146.png

     

    Is there anyway to remove the 6 minute lock? Disable or shorten the length of it?

    I could implement the whole do-until loop to keep trying until it goes through however, its not a great solution and seems extremely clunky.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @JordanZWWHF ,

     

    I'm afraid there is no other way to bypass the 6 minutes files being locked limitation except the do until method. Just like what you can find in below thread:

    Solved: Power Automate Handling - Document is locked for s... - Power Platform Community (microsoft.com)

     

    Best regards,

  • JordanZWWHF Profile Picture
    4 on at

    Hi @v-jefferni ,

     

    The do-until works if users are closing the documents etc. The problem I have is that several users will just keep the word documents open for long duration of times, sometimes even longer than the 28day run period. 

    Is there anything I can do for this case?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @JordanZWWHF ,

     

    I'm afraid the answer is no. Actually, this is why we don't recommend use Excel table as the data source. The only thing I can imagine is in the Do until loop send an Email and/or Teams message to the user who opened the file and let them close the tab/file. 

     

    Best regards,

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 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard