Home Dashboard Directory Help

TFS 2010 error: "The path is already mapped in workspace" after build deletion by Werner Clausen


 as Deferred Help for as Deferred

Sign in
to vote
Type: Bug
ID: 650069
Opened: 3/7/2011 10:46:14 PM
Access Restriction: Public
User(s) can reproduce this bug



Using VS2010 against TFS 2010. I get a build error from TFS about already mapped workspace. See steps below...

Sign in to post a comment.
Posted by Spivonious on 2/26/2013 at 10:24 AM
I see this is deferred. Is the bug fixed in TFS 2012, or is it deferred to a future version?
Posted by Microsoft on 4/21/2011 at 6:58 AM
Thanks for filing this. Improving how build workspaces are managed is on our product backlog to be considered for the next major release.
Posted by Microsoft on 3/7/2011 at 11:12 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Spivonious on 2/26/2013 at 10:23 AM
Thanks dimensionsix, that worked!
Posted by Wolfium on 11/2/2012 at 11:32 AM
I verified last alternate recomendation (adding $(BuildAgentId) to the working directory) and it is already included in the form "F:\Builds\$(BuildAgentId)\$(BuildDefinitionPath)" and the issue still happens anyway.
Posted by dliedke0 on 9/29/2011 at 7:46 AM
I had the same issue and I found out the reason was two build agents set with the same working directory. Adding $(BuildAgentId) to the path fixed the issue.

Posted by dimensionsix on 3/10/2011 at 6:49 PM
The info found here may help ->

Use the command line utility tf.

You can get a list of all workspaces by bringing up a Visual Studio Command Prompt and using the following command:

c:\>tf workspaces /owner:*

You should see your problem workspace in the list as well as it's owner.

You can delete the workspace with the following command:

C:\>tf workspace /delete /server:BUILDSERVER WORKSPACENAME;OWNERNAME