Asked by:
Visual Studio TFS Error TF400018 using local workspace

Question
-
When attempting to perform any TFS actions in Visual Studio 2012 the following error is displayed:
TF400018: The local version table for the local workspace [workspace name listed here] could not be opened. The workspace version table contains an unknown schema version.
I am unable to modify the workspace and change it back to a server version. I am currently unable to perform any TFS actions, including seeing pending changes, etc.Any help resolving this would be appreciated.
Thanks.
Friday, November 2, 2012 4:11 PM
All replies
-
Hi ScottNv,
The issue you are experiencing is likely caused by using a local workspace for more items that it was intended or your local hard drive performance is slow.
Local workspaces use a database on your local file system that is updated whenever you make a change to a source file. You will get an error when this update operation conflicts with the normal update task which routinely checks for changes. This conflict seems to occur when disk IO is slow.
A few workarounds you can try:
- Upgrade your local hard drive
- Use a server based workspace
- Use git and the TFS-Git connector instead of a local workspace
- Split your workspace mappings into smaller portions containing less files.
Thanks,
Roy
Roy Robertson, Avanade | If a post answers your question, please click "Mark As Answer" on that post and mark as Helpful. Thanks!
Friday, November 2, 2012 6:16 PM -
Hi Roy,
The best solution above is to use a server based workspace. The problem is that I can't change it back now. I can't make any changes to the workspace. This also prevents me from splitting the workspace into smaller pieces. Is there any action that I can take that will allow the workspace to be operational again?
Thanks for your help.
Friday, November 2, 2012 6:26 PM -
Hi ScottNv,
One way you can make the workspace operation again is to shelve your pending changes, delete the workspace, create a new workspace based on my suggestions above, and then unshelve your pending changes.
Thanks,
Roy
Roy Robertson, Avanade | If a post answers your question, please click "Mark As Answer" on that post and mark as Helpful. Thanks!
Friday, November 2, 2012 6:44 PM -
After the error is displayed in the Team Explorer tab no actions can be taken and no pending changes can be seen. The "Shelve" action next the the "Check In" button is currently disabled.
Friday, November 2, 2012 6:50 PM -
Are you able to use the "tf shelve" command?
http://msdn.microsoft.com/en-us/library/cc31bk2e.aspxRoy Robertson, Avanade | If a post answers your question, please click "Mark As Answer" on that post and mark as Helpful. Thanks!
Friday, November 2, 2012 7:11 PM -
I recently came across this same problem. I found that the only thing I could do to fix it was create a new local workspace. I haven't fully tested this yet, but it seems to have corrected the problem. It must be a Microsoft bug because the other proposed solutions say you need to use a server workspace or a get a faster disk and I did neither. I wish I knew what caused the bug.
- Proposed as answer by joNDoty Monday, December 3, 2012 5:17 PM
Monday, December 3, 2012 5:17 PM -
This just happened again in the new workspace I created. The problem is that I can no longer see checked out files in the old workspace, so I have to try to manually merge the changes. This seems to happen after a period of time on every workspace I create. Has anybody else experienced this? This is very time consuming and becoming rather frustrating.Friday, December 7, 2012 6:42 PM
-
I have had the same problem. I have not found the solution.Thursday, November 21, 2013 5:40 PM
-
This has just happened to me and I have not, yet, found a solution either.
I made the serious mistake of updating to Windows 8.1 this morning, and the two problems (having decided to install Windows 8.1 and the failure of TFS) may or may not be related.
- Proposed as answer by MarcelloAz Friday, November 20, 2015 10:59 AM
Saturday, November 23, 2013 6:11 PM