Monday, March 24, 2014

Team Foundation Server – TF30162 - Task "WITs" from Group "WorkItemTracking" failed

March 24, 2014 Posted by Jason Irwin No comments

I ran into the following error this evening when attempting to create a “new” (more to follow…) Team Project via Visual Studio 2013:

Event Description: TF30162: Task "WITs" from Group "WorkItemTracking" failed

While it looked at first like an issue related to work item tracking templates, the stacktrace in the project creation log (located in your %temp% folder) provided some insight:

Event Description: TF30162: Task "WITs" from Group "WorkItemTracking" failed

Exception Type: Microsoft.TeamFoundation.Client.PcwException

Exception Message: TF24016: Cannot find team project ‘TestProject’.

Stack Trace:

at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)

at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)

at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)

A noteworthy piece of background is that I was actually re-creating a deleted project on our test TFS box. Essentially we’re running migrations which requires iterative creation, testing and deletion of projects. So the project I was trying to create (fictitiously called TestProject above) used to exist on the box, but was recently deleted. I was creating a project with the same name. Apparently project details are being cached locally (it stands to reason), so once I deleted the TFS project on our test box and tried to recreate it from Visual Studio, Visual Studio got confused.


  • Close Visual Studio
  • Delete everything from the cache folder. On Windows 7:
    • C:\Users\{user}\AppData\Local\Microsoft\Team Foundation\{version}\Cache
  • Rerun project creation