Recreating the TFVC Team Project Folder

TF.exe makes it easy to destroy a TFVC team project folder, but if you do it’s not as easy to recreate it. You can destroy all TFVC data in a team project by running  tf.exe destroy $/<projectName> Then if you try to navigate TFVC in a web browser, you’ll see an error like this: TFS.WebApi.Exception: The…


Fix for TFS 2015 Upgrade error The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name ‘dbo.tbl_Workspace_Dataspace’ and the index name ‘IX_tbl_OwnerId_WorkspaceName_WorkspaceVersion_Type’

If you are upgrading to TFS 2015 there is a very tiny chance you might hit this error: [19:40:39.780]   System.Data.SqlClient.SqlException (0x80131904): The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name ‘dbo.tbl_Workspace_Dataspace’ and the index name ‘IX_tbl_OwnerId_WorkspaceName_WorkspaceVersion_Type’. The duplicate key value is (1, <GUID>, <WorkspaceName>, 1, 0). [19:40:39.780]   Rebuilding…


Fix for error in upd_online_VersionControlDev11CTP3_CodeChurn.sql

If you upgrade your TFS 2010 server to TFS 2015.2 and have Reporting Services enabled, you may discover the following error in your event log after the upgrade: TF400797: Job extension had an unhandled error: Microsoft.TeamFoundation.Framework.Server.SqlScriptException: 1 error(s) occurred while executing upd_online_VersionControlDev11CTP3_CodeChurn.sql script. Failed batch starts on line: 1. Error: 206, Level: 16, State: 2,…