Microsoft KB Archive/932803

= Error message when you use the unshelve command together with the /move option in the Tf.exe tool in Visual Studio 2005 Team Foundation Server: &quot;FileName could not be retrieved because a writable file by the same name exists locally&quot; =

Article ID: 932803

Article Last Modified on 3/7/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Team Foundation Server

-



SYMPTOMS
Consider the following scenario. In Microsoft Visual Studio 2005 Team Foundation Server, you use the tf command-line tool (Tf.exe) to shelve a shelveset. You use the shelve command together with the /move option. You create a new file that has the same name as one of the files in the shelveset. Then, you use the unshelve command together with the /move option in Tf.exe to unshelve the shelveset. In this scenario, you receive the following error message:

could not be retrieved because a writable file by the same name exists locally.

Additionally, the conflicting file is missing.



CAUSE
This problem occurs because the conflicting file in the shelveset is not unshelved. However, the shelveset is deleted. Therefore, data loss occurs.



WORKAROUND
To work around this problem, do not use the unshelve command together with the /move option if you create a file that has the same name as one of the files in the shelveset.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information, visit the following MSDN Web site:

http://msdn2.microsoft.com/en-us/library/w6y8ezzs(VS.80).aspx

Keywords: kbexpertiseadvanced kbtshoot kbprb KB932803

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.