TF400930:报告属性在导入的XML与当前为该字段配置的内容之间不一致

问题描述 投票:1回答:1

我们刚刚从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

从搜索中可以看出,它是“可报告的”维度,这是witadmin所说的当前属性。

我们做错了什么?

谢谢!

tfs tfs2015 tfs2017 tfs-process-template
1个回答
1
投票

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

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

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

引用这个类似的主题:Tfs project creation results in error: TF400930: Field 'System.ExternalLinkCount' is defined multiple times

© www.soinside.com 2019 - 2024. All rights reserved.