Historically we have used the eScrum process template for our TFS team projects. However, with a view to the TFS 2010 future we have decided to moved back to the MSF Agile template. We used eScrum to provide an easy to use web based project dashboard; we now think that we can achieve the same or better in TFS 2010 using Excel’s enhanced links to TFS and Excel Services in Sharepoint.

So when I had to create a new team project today I decided to use the TFS 2008 “MSF for Agile Software Development - v4.2” template, to hopefully ease any upgrade issues. The problem was when I tried to create the team project I got the error TF30227, if I looked in the detailed log I saw:

Event Description: TF30162: Task “SharePointPortal” from Group “Portal” failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: TF30272: Template not found on the server

(Note that as is common with TFS the main error reported hides another error code.)

The problem was exactly as the error says, the template was missing on our central Sharepoint farm. We have been through a number of Sharepoint upgrades and relocation of our portal sites. This had meant that the TFS templates had to be reinstalled manually, this was done correctly for the eScrum template but a mistake was made for the MSF Agile one. We had installed the template with the command

Stsadm -o addtemplate -filename MSFAgile30.stp -title VSTS_MSFAgile30

when it should have been

Stsadm -o addtemplate -filename MSFAgile30.stp -title VSTS_MSFAgile

as TFS looks for a template call VSTS_MSFAgile not one called VSTS_MSFAgile30. Once this was correct the new project could be created.