Monday, July 2, 2018

TFS Workspace mapping–The path {pathname} is already mapped in workspace {workspacename}

After upgrading to TFS 2018 and reconfiguring our build servers, some of the TFS Version Control based builds started to fail with the following error message:

Exit code 100 returned from process: file name ‘tf’, arguments ‘vc workspace /new /location:local’

The line above we noticed the following informational message:

The path {pathname} is already mapped in workspace {workspacename}

During the migration we switched URI’s which seemed to confuse TFS.

To solve it, we removed all existing workspaces for our build account:

tf vc workspaces /collection:https://tfs/DefaultCollection /remove:*

We also had to delete the TFS client cache, which can be found here:

"%localappdata%\Microsoft\Team Foundation\7.0\Cache\"

No comments: