Fix Unknown Error When Locking SharePoint File in Office 2019
Question details
Users encounter an 'Unknown error trying to lock file' prompt when attempting to open and edit SharePoint documents using Office Professional Plus 2019.

- Product
- Microsoft Office Professional Plus 2019
- Device & OS
- not provided
- Scenario
- Opening and editing a SharePoint file after updating Office to version 2302 (build 16130.20218).
- Observed behavior
- The Office application displays an 'Unknown error trying to lock file' message, preventing normal editing and synchronization.
Ensure your internet connection is stable and verify that no other users are currently editing or checking out the document in the SharePoint library.
Verify SharePoint Permissions and File Checkout Status
Ensuring your account has the correct access level and confirming the file is not locked by another process or user often resolves local locking errors.
SharePoint relies on strict permission and checkout protocols. When local Office credentials fall out of sync with SharePoint, it can misinterpret the file state, resulting in lock errors.
Navigate to the SharePoint library in your web browser, click the ellipsis (...) next to the problematic file, select 'Manage Access', and ensure your user account has 'Edit' permissions.
Look for a small red arrow icon on the file's type icon, indicating it is checked out. If it is checked out by someone else, contact them to check it in, or ask a site admin to discard the checkout.
Open Word or Excel 2019, click 'File' > 'Account', click 'Sign Out' under your user information, and then sign back in to refresh your SharePoint authentication token.

Test Alternative Clients and Report the Update Bug
Since this issue specifically triggers after updating to Office 2019 version 2302 (build 16130.20218), testing in other environments and reporting the bug can bypass the client-specific failure.
Try WPS Office for Seamless Document Collaboration
If Microsoft Office updates are causing workflow disruptions and SharePoint errors, consider switching to WPS Office. It provides a free, lightweight, and highly compatible alternative for opening, editing, and sharing documents without the heavy update bugs of traditional desktop suites.

Frequently Asked Questions
Why does Office 2019 say 'Unknown error trying to lock file'?
This error typically occurs when the local Office client fails to synchronize the file's checkout status with SharePoint. It can be caused by permission glitches, cached credentials, or specific bugs introduced in recent Office updates like version 2302.
How do I clear the Office cache to fix SharePoint sync issues?
You can clear the cache by opening the Office Upload Center (or Office Document Cache via settings), selecting 'Settings', and clicking 'Delete cached files'. Alternatively, you can manually delete files in the '%localappdata%\Microsoft\Office\16.0\OfficeFileCache' folder.
Can I edit SharePoint files without using the local Office 2019 client?
Yes, you can use Office for the Web by selecting the 'Open in browser' option directly from your SharePoint library. This bypasses local client update bugs and synchronization locking issues entirely.
How can an administrator force unlock a file in SharePoint?
A SharePoint site administrator can unlock a file by navigating to the document library settings, clicking on 'Manage files which have no checked in version', and taking ownership of the file to discard the checkout.




