Microsoft excel- unknown error trying to lock file

Nur Adibah binti Abd Razak 25 Reputation points
2023-03-14T05:38:15.7066667+00:00

My users with Win 10 pro (up to date) is having trouble opening files (xlsx and xlsm) from SharePoint in Excel app, they are getting the error "Unknown error trying to lock file." They are running Excel 2016, fully up to date. Only my users who use 2016 version got this problem and I notice only the excel file, word and other apps no issue.

Tried the same files on SharePoint on other computers and same error. I tried different file on SharePoint same error too. I tried convert the file only on the SharePoint can edit, when open on apps (read-only) Error- "Unknown error trying to lock file" . Teams and Outlook are on this computer and are having no trouble. I was also able to open word files on SharePoint with no issue.

Any help would be greatly appreciated.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | Excel | For business | Windows

6 answers

Sort by: Most helpful
  1. Tanay Prasad 2,260 Reputation points
    2023-05-17T05:54:52.4433333+00:00

    Hi,

    Try following these steps-

    1. Clear Office cache: Sometimes, clearing the Office cache can resolve issues with file locking. You can follow these steps to clear the Office cache:

    a. Close all Office applications. b. Press Windows Key + R to open the Run dialog box. c. Type "%localappdata%\Microsoft\Office\16.0" (without quotes) and click OK. d. Delete all the contents of the "Office" folder. e. Try opening the Excel files from SharePoint again.

    1. Check SharePoint permissions: Ensure that the users have the necessary permissions to access and edit the Excel files on SharePoint. They should have appropriate permissions to open, edit, and save the files. Verify the user permissions and check if any recent changes have affected the user access to the SharePoint files.

    I can't think of anything else. I hope this works.

    Best Regards.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.