PRB: Error When Renaming a File That Is Checked Out (158701)



The information in this article applies to:

  • Microsoft Visual SourceSafe for Windows 4.0
  • Microsoft Visual SourceSafe for Windows 4.0a
  • Microsoft Visual SourceSafe for Windows 5.0
  • Microsoft Visual SourceSafe for Windows 6.0

This article was previously published under Q158701

SYMPTOMS

Visual SourceSafe 4.0

If you rename a file that is checked out in Visual SourceSafe 4.0, and you try to check it back in, you get the following message:
File "<working directory>\<filename>" not found
Where <working directory> is the working directory for the renamed file, and <filename> is the new name of the file.

This behavior occurs because the copy of the checked-out file is not renamed by Visual SourceSafe.

Visual SourceSafe 5.0 or later

If you try to rename a file that is checked out in Visual SourceSafe 5.0 or later, the following message appears:
Unable to rename the selected file
If you try to rename a file that is checked out to another user, the same message appears.

RESOLUTION

Before renaming a file in the Visual SourceSafe database, make sure that the file is not checked out by any users.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

Visual SourceSafe 4.0:
  1. Open or switch to Visual SourceSafe 4.0.
  2. Right-click a file and click Check Out.
  3. With the checked-out file selected, click Rename on the File menu.
  4. Rename the file.
  5. Right-click the file and click Check In. Note that the following message appears:
    File "<Working directory>\<filename>" not found
Visual SourceSafe 5.0 or later:
  1. Open or switch to Visual SourceSafe.
  2. Right-click a file and click Check Out.
  3. Right-click the checked-out file and click Rename. Note that the following message appears:
    Unable to rename the selected file

Modification Type:MajorLast Reviewed:5/1/2001
Keywords:kbprb KB158701