Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You cannot restore the last version of a file from a SharePoint 2010 document library


Symptoms

On a server that is running Microsoft SharePoint Foundation 2010 or Microsoft SharePoint Server 2010, when you try to restore the last version of a document from a document library, the restoration fails, and you receive the following error message:

File In Use

The file is locked for editing by Your_Account_name.
Do you want to:
View a read-only copy.
Edit the file and merge your changes with the server file when it becomes available
Receive a notification when the server file is available

After you receive this message, the current version of the file is now locked by SharePoint 2010.

↑ Back to the top


Cause

This issue occurs when the document library requires you to check out and check back in documents. When you try to restore the last saved version of the document while the document is still checked out, the operation fails, and the document becomes locked on the server.

↑ Back to the top


Workaround

To work around this issue, you can use the following methods.

Method 1: Wait for the lock to expire

An hour after the document was locked, the lock will expire, and you can then reopen the file and restore the earlier version of the file.

Method 2: Discard the check out

If you do not want to wait an hour, you can close the document without checking in it back in. Then, in the document library, on the Edit drop-down menu for the document, click Discard Checkout and then click OK. The document returns to its last saved state.

Method 3: Save the current version, and then restore the earlier version

This issue only occurs if you try to restore the last saved version of the document. As a workaround, you can save the current version, and then reopen the document and restore the earlier version. This earlier version is now the second-to-last saved version of the document. 
  1. In the SharePoint 2010 document library, open and check out the current version.
  2. Make a small change to the current version. For example, you can add a space at the end of a paragraph.
  3. Save and check in the document as a new version.
  4. Check out and open the new version that you just saved.
  5. You can now restore the desired version of the document. The desired version is now the second-to-last saved version of the document.

↑ Back to the top


Keywords: kbprb, kbsurveynew, kbpubtypekc, kbexpertiseinter, kbtshoot, kb

↑ Back to the top

Article Info
Article ID : 2290155
Revision : 1
Created on : 1/7/2017
Published on : 10/19/2010
Exists online : False
Views : 100