Tfs project creation results in error: TF400930: Field 'System.ExternalLinkCount' is defined multiple times

Tfs project creation results in error: TF400930: Field 'System.ExternalLinkCount' is defined multiple times

我最近将 on-premises Team Foundation Server 从 Tfs 2015 升级到 Tfs2015.Update3 (14.102.25423.0) 升级已完成,所有其他功能似乎都照常工作。 大约一天前,我尝试创建一个新的 Tfs 项目 (TFVC),结果出错。

当我查看应用层日志文件时,我看到以下内容:

[10:31:30.153] Executing step: Create the Team Project.
[10:31:30.167]   Executing step: 'Create the Team Project.' WorkItemTracking.CreateTeamProject (4 of 13)
[10:31:30.183]   Getting process template.
[10:31:31.463]   Refreshing server caches.
[10:31:31.463]   Importing work item link types.
[10:31:32.180]   Importing work item types
[10:31:33.727]   Importing work item types
[10:31:34.413]   [Error] TF400930: Field 'System.ExternalLinkCount' is defined multiple times with different field definitions. Correct the field definition and try again.
[10:31:34.507]   Microsoft.TeamFoundation.WorkItemTracking.Server.LegacyValidationException: TF400930: Field 'System.ExternalLinkCount' is defined multiple times with different field definitions. Correct the field definition and try again.
[10:31:34.507]      at Microsoft.TeamFoundation.WorkItemTracking.Server.ProvisioningService.InternalImportWorkItemTypesOrGlobalWorkflows(IVssRequestContext requestContext, Int32 projectId, String methodologyName, IEnumerable`1 typeElements, ProvisioningActionType actionType, InternalSchemaType schemaType, Boolean overwrite, ProvisioningImportEventsCallback importEventCallback)

不幸的是,我们正在使用自定义模板(基于 Scrum 模板),正是这个模板导致了错误。 在基于标准 Scrum 或 Agile 模板创建新的 Tfs 项目 (TFVC) 时,它工作正常。

我下载了有问题的自定义 scrum 模板,并在“System.ExternalLinkCount”上进行了 grep 搜索。 当我查看这些字段时,它们似乎属于同一类型。 有什么想法或建议为什么会这样吗?

您只需从这些工作项中删除字段定义,它是一个标准字段,将自动添加到您的所有工作项类型中。