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. 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

  2. MiSo 5 Reputation points
    2023-03-16T04:54:48.25+00:00

    I'm having a slightly different issue where all of a sudden all of our licensed users are unable to view Microsoft applications in the browser, they can only view in the desktop. While working in the app allows collaboration, it's counter-intuitive, we cannot change the default to open in the app and sharing links in Teams, Outlook etc. don't work, unless you send the link to the folder that the file is in, which is pretty cumbersome.

    Is anyone else experiencing this or has a fix? We have not had any success (for 2 weeks) with our internal team, MSP and Microsoft tech this far in finding a root-cause or a solution. Our MSP has given up and asked us to work directly with MS. MS does not answer our questions, but sends us emails to tell us they are working on the solution. They have breached their SLA, but I am desperate to find a solution since it's impacting my entire org.

    Was this answer helpful?

    0 comments No comments

  3. Ryan Fosher 5 Reputation points
    2023-03-15T16:34:32.7366667+00:00

    We've been able to resolve 5 cases so far by doing the following:

    1. Update Excel (File -> Account -> Update Options -> Update Now) 
      1. Every case i've found so far had an update pending
    2. Reboot After Update is Complete
    3. Sign Out of Excel 
    4. Have user Sign Back in
    5. Open a spreadsheet from Sharepoint
    6. In 2 cases, I've had to log off excel one more time and resign in.

    I know - it's a bit of a rain dance solution, but it seems to be working in our environment. Good luck everyone!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  4. Nevine Hamwi 10 Reputation points
    2023-03-15T15:00:44.47+00:00

    Hi everyone,

    I found a fix!

    Open the documents through File Explorer on the computer instead of through the browser. If you're not the owner of the file, then you'll need to go into the browser, go to the file you want, save shortcut to your files, and then it should be accessible in your file explorer (of course assuming you have your OneDrive set up to your computer).

    This automatically saved the issue with our team and everyone was able to edit again.

    Hope that helps!

    Was this answer helpful?

    3 people found this answer helpful.

  5. Emi Zhang-MSFT 30,206 Reputation points Microsoft External Staff
    2023-03-15T01:01:06.2333333+00:00

    Hi all,

    The problem is escalated and the fix code is deploying. You should waiting for the update to fix this problem completely.

    Thanks for your understanding.

    :)


    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?

    2 people found 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.