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
Suggested Answer

file locks

(2) ShareShare
ReportReport
Posted on by 22
Hello,
I get this error message when running a simple flow....
The file "https://s/Job drop off Library/EMP21.xlsx" is locked for shared use by user1@coh.gov.
clientRequestId: 161e261a-3cb1-4ea5-8c63-ec6bea326637
serviceRequestId: e65011a2-4000-d000-0087-02dead11d6d9
 
I have tried copying the file, logging out of the browser ,restarting. Nothing releases the lock. Even tried Check out. 
Hoping I can get some assistance in this forum...
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,236 on at
     

    This usually happens when the Excel file is still being held by an active Office/Excel Online session in SharePoint, even after closing the browser.

    A few things you can try:

    Make sure nobody else has the file open in Excel desktop or browser

    Try opening the file in desktop Excel and close it properly

    Opne the file and see if any active users are in the file 

    Wait 5–10 minutes for SharePoint/Excel Online to release the lock

     

    Vishnu WR
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like 

     
  • Suggested answer
    David_MA Profile Picture
    14,614 Super User 2026 Season 1 on at
    This is a very common issue with Power Automate and Excel files. The lock is usually released in about 10 minutes. If this is occurring in a flow, I suggest putting a 10-minute delay before the action in the workflow that calls the spreadsheet. Since I don't know what your flow is doing, this often occurs if you have multiple Excel actions in the same workflow that perform actions on the same spreadsheet. The prior action will initiate the lock.
     
    Here is a blog post with more information on this common issue: 4 Solutions For Excel File Is Locked Error In Power Automate
  • Suggested answer
    11manish Profile Picture
    2,293 on at
    Based on your symptoms, the issue is most likely caused by:
    • a stale Excel Online session
    • OneDrive sync lock
    • abandoned flow session
    • concurrency conflict
    The most effective practical fix is usually:
    1. Close Excel everywhere
    2. Kill Excel processes
    3. Pause OneDrive sync
    4. Wait several minutes
    5. Disable concurrency in the flow
    6. Retry the flow
    If the issue still persists, recreate the workbook and reconnect the flow to the new file.
  • Suggested answer
    Valantis Profile Picture
    5,267 on at
     
    The lock is held by an active Excel Online session that didn't close cleanly. SharePoint keeps the lock alive even after the browser is closed until the session times out server-side.

    Fastest fix: go to the SharePoint library, select the file, click the three dots, and choose Manage access or Check in. If the file shows as checked out, force check it back in from there.

    If that doesn't work, wait 10 minutes and retry. SharePoint releases stale locks automatically after the session expires.
    Long term: if your flow regularly hits this error, add a Delay action of 1-2 minutes between consecutive Excel actions on the same file. Each Excel connector action holds a brief lock and back-to-back calls on the same file will trigger this consistently.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • Suggested answer
    Haque Profile Picture
    3,202 on at
    Hi @NP-07051442-0,

    Check for Open Sessions: Ensure the file is not open in any other browser tab, device, or app. Sometimes mobile apps or background sync clients hold locks.

    Use SharePoint Online Management Shell: Admins can run PowerShell commands to release file locks. Example command to undo check-out or release locks:

    Undo-PnPFileCheckout -Url "/sites/yoursite/Shared Documents/EMP21.xlsx"
    
    Change: yoursite = "targeted site url" and EMP21.xlsx = targeted xlsx file.
     
    Note: This requires SharePoint PnP PowerShell module and admin rights.
     
     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!
  • ShanmugaRaja Profile Picture
    8 on at
     Likely Causes:
    1. user1@coh.gov still has the workbook open - in Excel desktop, Excel Online, or through OneDrive sync.
    2. A previous Power Automate run locked the file - Excel connector actions can leave a temporary lock, especially the flow failed midway.
    3. The file is being synced - OneDrive/SharePoint sync may still be holding the workbook.
    4. The flow is trying to access the same Excel file too quickly - Example read Excel row, them update/move/copy the dame file immediately
    5. Copying the file may copy the lock state temporarily - So copying does not always fix it immediately
    What to Try:
    • Ask user1@coh.gov to fully close Excel desktop and Excel Online.
    • Check OneDrive sync and pause syncing briefily.
    • wait 10-15 minutes, then rerun the flow.
    • Add a Dely action before the Excel step.
    • Add retry logic around the Excel action.
    • Avoid multiple flow runs accessing the same Excel file at once.
    • Use a temporary copy of the file for processing.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard