TF24018: Team Foundation Server Configuration Failure
- I created a TFS project with the agile template then relised I should have used the CMMI template. So tried to delete it and create a new one. Now I'm getting the following error
Error
TF24018: Team Foundation Server Configuration Failure. Team project 'CHS' already exists on this Team Foundation Server.Explanation
Project name 'CHS' already exists on the server. The team project name must be unique on all Team Foundation servers used by the new project.User Action
Choose a name that is unique and re-run the Project Creation Wizard."
I've tried refreshing the cache in %UserProfile%\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache as suggested in some other posts and deleting the reporting services and sharepoint sites but I still get this error. Any ideas?
All Replies
- How did you delete the team project? With TfsDeleteProject?
Ewald - Please remember to mark the replies as answers if they help.

Blog: www.ewaldhofman.nl - I used this
http://julien.lavigneducadet.com/index.php?2006/08/03/7-user-interface-to-delete-a-tfs-project
I think it only partially deleted the data
TfsDeleteProject will not remove the remaining data. - Hi Colin,
It seems your Team Project data didnt got completely removed by using above tool.
Can you try again to remove using with TfsDeleteProject. - Hi Colin,
Thanks for your post.
I am not sure how the UI tool implement, but if it implements as the same way as TfsDeleteProject, the following statement should be the cause of the issue:
"The version control data that TFSDeleteProject flags is not deleted until the SQL Server job runs. This job is also called the TFSVersionControl Administration Job. By default, this job runs at midnight. Until this job runs, you cannot create a project with the same name as one flagged for deletion. To force the TFSVersionControl Administration job to run immediately, see Start the TFSVersionControl Administration Job."
Please let me know if you have any question.
Have a nice day.
Hongye Sun [MSFT]
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. I have the same error.
Here is the log from the New Team Project dialog2009-10-20 09:00:23Z | Module: Wizard | Retrieved IAuthorizationService proxy | Completion time: 0 seconds 2009-10-20 09:00:23Z | Module: Internal | Team Foundation Server proxy retrieved | Completion time: 0.281286 seconds 2009-10-20 09:00:23Z | Module: Wizard | TF30227: Project creation permissions retrieved | Completion time: 0.171897 seconds 2009-10-20 09:00:24Z | Module: Internal | The template information for Team Foundation Server "cpdxpapp04" was retrieved from the Team Foundation Server. | Completion time: 0.687588 seconds 2009-10-20 09:00:56Z | Module: Engine | Thread: 51 | New project will be created with the "MSF for CMMI Process Improvement - v4.2" methodology 2009-10-20 09:00:56Z | Module: Engine | Retrieved IAuthorizationService proxy | Completion time: 0 seconds 2009-10-20 09:00:56Z | Module: Engine | TF30227: Project creation permissions retrieved | Completion time: 0.015627 seconds 2009-10-20 09:01:05Z | Module: Engine | Wrote compressed process template file | Completion time: 0 seconds 2009-10-20 09:01:24Z | Module: Engine | Extracted process template file | Completion time: 18.971178 seconds 2009-10-20 09:01:24Z | Module: Engine | Thread: 51 | Starting Project Creation for project "CHS" in domain "cpdxpapp04" 2009-10-20 09:01:24Z | Module: Engine | The user identity information was retrieved from the Group Security Service | Completion time: 0.015627 seconds 2009-10-20 09:01:24Z | Module: Initializer | Thread: 51 | The New Team Project Wizard is starting to initialize the plug-ins. 2009-10-20 09:01:24Z | Module: CssStructureUploader | Thread: 51 | Entering Initialize in CssStructureUploader 2009-10-20 09:01:24Z | Module: CssStructureUploader | Thread: 51 | Initialize for CssStructureUploader complete 2009-10-20 09:01:24Z | Module: Initializer | Thread: 51 | The New Team Project Wizard successfully Initialized the plug-in Microsoft.ProjectCreationWizard.Classification. 2009-10-20 09:01:24Z | Module: Rosetta | Thread: 51 | Entering Initialize in RosettaReportUploader 2009-10-20 09:01:24Z | Module: Rosetta | Thread: 51 | Exiting Initialize for RosettaReportUploader 2009-10-20 09:01:24Z | Module: Initializer | Thread: 51 | The New Team Project Wizard successfully Initialized the plug-in Microsoft.ProjectCreationWizard.Reporting. 2009-10-20 09:01:24Z | Module: WSS | Thread: 51 | Entering Initialize in WssSiteCreator 2009-10-20 09:01:24Z | Module: WSS | Thread: 51 | Site information: Title = "CHS" Description = "Capital Harness Systems This team project was created based on the 'MSF for CMMI Process Improvement - v4.2' process template." 2009-10-20 09:01:24Z | Module: WSS | Thread: 51 | Base site url: http://CPDXPAPP04:80/Sites 2009-10-20 09:01:24Z | Module: WSS | Thread: 51 | Admin site url: http://CPDXPAPP04:17012/_vti_adm/admin.asmx 2009-10-20 09:01:44Z | Module: WSS | Thread: 51 | Exiting Initialize for WssSiteCreator 2009-10-20 09:01:44Z | Module: Initializer | Thread: 51 | The New Team Project Wizard successfully Initialized the plug-in Microsoft.ProjectCreationWizard.Portal. 2009-10-20 09:01:44Z | Module: GSSStructureUploader | Thread: 51 | Entering Initialize in GssStructureCreator 2009-10-20 09:01:44Z | Module: GSSStructureUploader | Thread: 51 | Exiting Initialize for GssStructureCreator 2009-10-20 09:01:44Z | Module: Initializer | Thread: 51 | The New Team Project Wizard successfully Initialized the plug-in Microsoft.ProjectCreationWizard.Groups. ---begin Exception entry--- Time: 2009-10-20 09:01:45Z Module: Initializer Event Description: TF30207: Initialization for plugin "Microsoft.ProjectCreationWizard.WorkItemTracking" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: TF24018: Team Foundation Server Configuration Failure. Team project 'CHS' already exists on this Team Foundation Server. Exception Details: Project name 'CHS' already exists on the server. The team project name must be unique on all Team Foundation servers used by the new project. Stack Trace: at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Initialize(ProjectCreationContext ctxt) at Microsoft.VisualStudio.TeamFoundation.EngineStarter.InitializePlugins(MsfTemplate template, PcwPluginCollection pluginCollection) --- end Exception entry --- 2009-10-20 09:01:45Z | Module: Engine | Thread: 51 | Attempting to delete MSF folder "C:\Documents and Settings\JF06145\Local Settings\Temp\TPW_tmpB8.tmp" 2009-10-20 09:01:45Z | Module: Engine | Thread: 51 | The temporary folder C:\Documents and Settings\JF06145\Local Settings\Temp\TPW_tmpB8.tmp used to store the process template was removed.
- Hello Colin,
Have you tried command: TFSDeleteProject and force the TFSVersionControl Administration job to run immediately?
Please execute following two SQL queries to TFS database:
Please let me know if the deleted project still exists in one of the tables.SELECT [project_id] ,[project_name] ,[state] ,[last_update] FROM [TfsIntegration].[dbo].[tbl_projects] SELECT [project_id] ,[deleted_user] ,[deleted_time] FROM [TfsIntegration].[dbo].[tbl_projects_tombstone]
Hongye Sun [MSFT]
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. - I have ran TFSDeleteProject and forced the TFSVersionControl Administration job to run immediately. When running your two SQL queries I do not see the deleted project in the result.
- Hi Colin,
It seems that the project has been removed correctly in the TFS database. But according to the MSDN document: http://msdn.microsoft.com/en-us/library/dd206696.aspx, we also need to check other components:
"There are four steps for verifying that TFSDeleteProject worked.- Check Team Explorer to make sure that the project node is gone.
- Directions: Open Team Explorer and make sure that the project is no longer in the tree.
- Check the history of the TFSVersionControl Administration Job.
- Directions: See How do I start or view the history of the TFSVersionControl Administrator job? later in this article.
- Verify the WSS site is gone.
- Directions: Navigate to the WSS site by opening Internet Explorer and move to the team project page, http://<server>/sites/teamprojectname, to make sure that no site exists.
- Verify the SSRS reports folder is gone.
- Directions: On the computer that has SSRS installed, make sure that the folder that contains the SSRS reports is no longer present by opening Internet Explorer and move to the reports page at http://<server>/reports."
In addition to that, can you check if TFS server has detailed error message when the error occurs?
You can enable TFS tracing by following: http://msdn.microsoft.com/en-us/library/ms400788.aspx
Hope it helps.
Hongye Sun [MSFT]
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. - Check Team Explorer to make sure that the project node is gone.
Follow the below steps to view history of TFSVersionControl Administrator Job as the link for this in above post in not working.
Required Permissions
To perform these procedures, you must be a member of the Administrators group for the Team Foundation databases.
To view history of the TFSVersionControl Administration job
- Log on to the data-tier server.
- Open the Start menu, point to All Programs, point to Microsoft SQL Server 2005 or Microsoft SQL Server 2008, and then click SQL Server Management Studio.
- In the Connect to Server dialog box, in Server type, click Database Engine,
- Type the name of the server to which you want to connect, and then click Connect.
- Microsoft SQL Server Management Studio opens.
- Expand SQL Server Agent, and then expand Jobs.
- To view the job history, right-click TFSVersionControl Administration Job, and then click View History.
1. Team Explorer does not show the project node
2. The admin job run successfully
3. I had to manually delete the WSS site
4. I had to manually delete the SSRS site
I enabled verbose TFS tracing and tried to create the project again. There is nothing in there that I think is relevant and I'm not happy about posting the logs as they contain information about our network and users. Is there anything that I should be looking for?
Right now the situation is that I have created the project with a different name and I'm only persuing this only to close out this issue.


