I’m facing an issue with SharePoint document libraries. When a file in the library is locked, I am unable to:
- Update the corresponding record
- Delete the record I understand that the lock prevents changes to the file itself, but I need to be able to update or delete the list/library item even if the file is locked. Has anyone encountered this issue before? Is there a way to handle this scenario via:
- Power Automate
- SharePoint API
- Dynamics 365 integration
- Any other method Any guidance or workaround would be greatly appreciated!
- Standard Power Automate Actions
- Update file properties → failed (423 Locked)
- Delete file using Delete File connector → failed (423 Locked)
- Move / Copy file → failed (SPFileLockException)
- Retry / Delay Attempts
- Added 20–30 sec Delay in Flow → did not resolve the lock
- Applied retry policy → not fully reliable
- SharePoint Settings
- Checked if co-authoring lock can be disabled → not possible
- REST API Attempts
- CheckOut → worked only if file wasn’t already locked by another user
- UndoCheckout → sometimes worked, sometimes returned “file not checked out”
- CheckIn → tried with checkintype=2 (force) → failed if file not checked out
- ReleaseLock → not supported (404 error)
- Move / Copy via API → failed due to lock
- Other Attempts
Trying to delete file while locked → always failed (SPFileLockException)
Overwriting file content via PUT → successful in clearing Excel Online locks
Then attempted delete/recycle → worked after overwriting