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: Newest
  1. Emi Zhang-MSFT 30,206 Reputation points Microsoft External Staff
    2023-03-14T08:42:37.8366667+00:00

    Hi @Nur Adibah binti Abd Razak,

    I suggest you try to add the SharePoint site as a trusted site on your browser. Go to IE- select Internet Options- Security- Trusted sites- click Sites enter the URL of the site and click Add.

    Did you check if you download the Workbook to locally, if this problem still existed?

    You can also try to disable Protected View in Excel. Open Excel- go to File- Options- Trust Center- Trust Center Settings- Protect View > uncheck Enable Protected View for files located in potentially unsafe locations.

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


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.