Wednesday, January 10, 2007 4:49 PM
Today I was creating a new process template for my company developers when I had a strange problem. I already had a few projects created with a previous version of this template (mytemplate v2.0). The new version (mytemplate v3.0) mainly includes changes in work item types.
In order to apply the new version to the already created team projects I imported the new versions of the work items. That worked fine.
Then I created a team project with the mytemplate v3.0 and ... error!
Module: Work Item Tracking
Event Description: TF26214: Cannot save the work item. Fields with errors: Track,Estimate
Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException
Exception Message: TF26201: This work item has unsupported fields, or user does not have permissions.
How come I had an error? I had uploaded the template without problems, I had used the Process Template Editor in connected state and I had imported the work items definitions to older project - all successfully. Surely that should be validation enough?
The error message is a bit misleading. The problem lay in the default work items, not in the work items definitions. For example, I had set the "Estimate" field to be required for a task but I did not specify any value for the default tasks. So, when the default task were created: crash!