保存工作项时出现 TFS 2010 工作项类型定义错误 TF26212
我为 TFS 2010 创建了一个名为“KB Item”的工作项定义,并将其导入到 TFS 服务器。在 TFS 中创建一些知识库项后,我需要更新工作项定义。我做了一些更改并将新的知识库项目定义导入到 TFS。现在我可以重新创建新的知识库项目,但无法更新和保存在定义更改之前创建的知识库项目。
我收到以下错误:
TF26212:Team Foundation Server 无法保存您的更改。工作项类型定义可能存在问题。请重试或联系您的 Team Foundation Server 管理员。
我用谷歌搜索了但没有任何效果。
I have created a Work Item Definition for TFS 2010 called "KB Item" and imported it to TFS server. After some KB Items were created in TFS, I needed to update the work item definition. I made some changes and imported new KB Item definition to TFS. Now I can reate new KB Items but can't update and save KB Items created prior to definition change.
I get the following error:
TF26212: Team Foundation Server could not save your changes. There may be problems with the work item type definition. Try again or contact your Team Foundation Server administrator.
I did google it but nothing worked.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
很高兴它起作用了。
如果您尚未这样做,则应将 ALLOWEXISTINGVALUE 规则添加到引用全局列表的字段中。这样,如果全局列表删除现有工作项使用的值,那么这些工作项仍然是可编辑的。
Glad it's working.
If you haven't already done so, you should add the ALLOWEXISTINGVALUE rule to the field that references the global list. That way if the global list drops a value that existing work items use then those work items will still be editable.
如果其他人正在搜索此信息,仅供参考:
就我而言,问题是字段设置为 REQUIRED WHEN (otherField="x"),并且
otherField
在状态转换时自动设置为“x”。必填字段在工作项编辑器中未标记为必填,但在尝试保存时出现上述错误。这种情况下的解决方案显然是在字段中输入一些文本。
Just for information if others are searching for this:
In my case, the problem was a field set to
REQUIRED WHEN (otherField="x")
and theotherField
was automatically set to "x" on a state transition.The required field is not marked as required in the work item editor, but when trying to save, the above error occurs. Solution in this case is oviously entering some text into the field.
另一项:TFS 缓存需要清除,如果在多个 TFS 服务器上来回工作会导致缓存问题。
PowerShell 清除缓存。
删除项目“C:\ Users \ $ env:用户名\ AppData \ Local \ Microsoft \ Team Foundation \ 4.0 \ Cache *” -Force -Confirm:$ false -WarningAction:SilentlyContinue -Recurse
One other item: TFS cache needs to be cleared, if working on more than one TFS server going back and forth will cause cache issues.
PowerShell to clear cache.
remove-item "C:\Users\$env:username\AppData\Local\Microsoft\Team Foundation\4.0\Cache*" -Force -Confirm:$false -WarningAction:SilentlyContinue -Recurse