TFS 2013 - Path "x" is already mapped in workspace "y"

This forum is for all Flare issues related to using Source Control.
Post Reply
clafrancis
Jr. Propeller Head
Posts: 2
Joined: Wed Mar 12, 2014 12:59 pm

TFS 2013 - Path "x" is already mapped in workspace "y"

Post by clafrancis »

We use TFS 2013 and have our documentation checked in to there.
We have a new user that is running Flare 10. In TFS we created a new workspace on her local hard drive and mapped it to the TFS source control folder and did a Get Latest.
In Flare when the user tries to open the flare file they are getting the error "The workspace "x" already exists on computer "y".
We have also tried removing the workspace in TFS and then in Flare doing an imort of the file from TFS but still get the same error.
Below is the stack trace from the View Exception Log.
Any ideas on what I need to do to get the user setup?
Thank you.

at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ProcessHttpResponse(HttpWebResponse response, Stream responseStream, WebException webException, XmlReader& xmlResponseReader)
at Microsoft.TeamFoundation.Client.TeamFoundationClientProxyBase.ExecWebServiceRequest(HttpWebRequest request, XmlWriter requestXml, String methodName, HttpWebResponse& response)
at Microsoft.TeamFoundation.VersionControl.Client.Repository.CreateWorkspace(Workspace workspace)
at Microsoft.TeamFoundation.VersionControl.Client.Client.CreateWorkspace(String name, String owner, String comment, WorkingFolder[] mappings, String computer, WorkspacePermissionProfile permissionProfile, Boolean fixMappingErrors)
at B3.SourceSafeKit.TeamFoundationServerProvider.AcquireWorkspace(String workspaceName)
at B3.SourceSafeKit.TeamFoundationServerProvider.EnsureWorkspace()
at B3.SourceSafeKit.TeamFoundationServerProvider.TryGetLocalSourceItem(IUrl url, ILocalSourceControlItem& local)
at B3.AppKit.ExternalImageManager.GetSourceControlImage(IUrl url, ISourceControlProvider provider)
at B3.AppKit.Editor.GetSourceControlImage(IUrl url)
at B3.FileBrowserKit.FileBrowserTreeView.OnDrawNode(DrawTreeNodeEventArgs e)
at System.Windows.Forms.TreeView.CustomDraw(Message& m)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at B3.AppKit.CustomTreeView.WndProc(Message& m)
at B3.FileBrowserKit.FileBrowserTreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
clafrancis
Jr. Propeller Head
Posts: 2
Joined: Wed Mar 12, 2014 12:59 pm

Re: TFS 2013 - Path "x" is already mapped in workspace "y"

Post by clafrancis »

Just an update, I was able to solve this issue by deleting the user's workspace using the Visual Studio command prompt and deleting the workspace on the TFS server.
KCinColorado
Propeller Head
Posts: 40
Joined: Tue Mar 20, 2012 11:00 am

Re: TFS 2013 - Path "x" is already mapped in workspace "y"

Post by KCinColorado »

Just went through this same thing while transitioning from a very old source control system to Visio Studio TFS 2013. MadCap support advised me to unbind and then back up each of my Flare projects and then reimport them from TFS. I would get all the way to the end of the import wizard and it would fail because the workspace already existed (automatically created by TFS).

It seems the order in which you do these steps matters so I thought I'd post it. Using the Visio Studio Source Control Explorer on my machine, I renamed the automatically created workspace for my laptop. (Had to rename rather than delete, because when I deleted it, it was automatically recreated immediately!) I then imported the project with Flare. This process re-creates the appropriate workspace for my laptop. I then went back to Visio Studio and deleted the renamed workspace. (It still may need to be deleted by engineering somewhere else, not sure... I have limited privs as a client only.)

I have one more project to import, and was wondering... If I don't open the Visio Studio client on my machine, and just go right to Flare to import FIRST, would that prevent that workspace issue from happening?
JWal
Jr. Propeller Head
Posts: 2
Joined: Fri Feb 13, 2009 12:54 pm

Re: TFS 2013 - Path "x" is already mapped in workspace "y"

Post by JWal »

Renaming the workspace in Visual Studio and then importing the project from within Flare eliminated this error and ended up being the fix that worked for me.

Doing so forces you to remap the Local Path for any other VS projects that were previously mapped to the original workspace - but this wasn't a big deal in my situation.
Post Reply