TF400930:导入的 XML 与字段当前配置的报告属性不一致

TF400930: The reporting attribute is inconsistent between the imported XML and what is currently configured for the field

我们刚刚从 TFS 2015.2 升级到 TFS 2017.3,我们 运行 在创建新的团队项目时遇到了问题。

出于某种原因,当我们尝试创建新的团队项目时,错误日志中出现以下错误:

[09:54:24.797]   Importing work item types
[09:54:25.663]   [Error] TF400930: The reporting attribute for field Microsoft.VSTS.Common.StateChangeDate is inconsistent between the imported XML and what is currently configured for the field. Correct the field configuration in the XML and try again.
[09:54:25.667]   Microsoft.TeamFoundation.WorkItemTracking.Server.LegacyValidationException: TF400930: The reporting attribute for field Microsoft.VSTS.Common.StateChangeDate is inconsistent between the imported XML and what is currently configured for the field. Correct the field configuration in the XML and try again.
[09:54:25.667]      at Microsoft.TeamFoundation.WorkItemTracking.Server.ServerMetadataProvisioningHelper.ThrowValidationException(String message)
[09:54:25.667]      at Microsoft.TeamFoundation.WorkItemTracking.Common.Provision.UpdatePackageField.CheckDefinitionConsistency(XmlElement fieldElement)
[09:54:25.667]      at Microsoft.TeamFoundation.WorkItemTracking.Common.Provision.UpdatePackageField.Update(XmlElement fieldElement)

这是来自 witadmin 的结果:

  Field: Microsoft.VSTS.Common.StateChangeDate
  Name: State Change Date
  Type: DateTime
  Use: --- (Bug, Shared Steps, Task, Test Case, User Story, Issue, Change Request)
  Indexed: False
  Reportable As: dimension

以及使用 Notepad++ 进行的搜索: Notepad++ Search for Microsoft.VSTS.Common.StateChangeDate

正如您从搜索中看到的那样,它被 "reportable" 作为一个维度,这就是 witadmin 所说的当前属性。

知道我们做错了什么吗?

谢谢!

我检查了一下,默认情况下,可报告属性未在工作项定义文件(.xml 文件)中设置。

所以,请尝试从所有 Wits 中删除属性 reportable = "dimension"。然后导入机智再试试

如果仍然无效,您可以尝试从这些工作项中删除 Microsoft.VSTS.Common.StateChangeDate定义,这是一个标准字段,将自动添加到您的所有工作项类型中。

参考这个类似的帖子: