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

Article translations Article translations
Article ID: 2290155 - View products that this article applies to.
Expand all | Collapse all

On This Page

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.

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.

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.

Properties

Article ID: 2290155 - Last Review: October 19, 2010 - Revision: 1.1
APPLIES TO
  • Microsoft SharePoint Foundation 2010
  • Microsoft SharePoint Server 2010
Keywords: 
kbprb kbsurveynew kbpubtypekc kbexpertiseinter kbtshoot KB2290155

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com