question

JakobLunde-2352 avatar image
0 Votes"
JakobLunde-2352 asked JakobLunde-2352 answered

MSBuild-script gets the following error when trying to check in changes: TF14061: The workspace TeamCity-<...> doesn't exist

We use Team City to, among other things, increment the version number and check in that change.
Checking in fails with the aforementioned error. The message makes sense, because that workspace doesn't exist, so I guess my question is why does it try to check in from a non-existing workspace? And how do I fix it?

Additional info:

  • The build server has been in use for a long time, but Team City was recently updated and the old workspaces were replaced. I'm guessing that somewhere in a cache or settings file the old workspace name still exists for some reason?

  • If I open Visual Studio on the build server and check in from there, everything works fine


vs-msbuild
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JakobLunde-2352 avatar image
0 Votes"
JakobLunde-2352 answered

So the issue in my case was related to cache, and I sort of cleaned it by accident:
- On the build server pc, I ran the command tf workspaces which listed a bunch of non-existing workspaces.
- I checked to see what was listed on the server with tf workspaces /collection:TeamProjectCollectionUrl /owner:*, and it warned me about some local paths being mapped in several workspaces, and that it would remove some of the workspaces from the cache.
- Now it works

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.