如何解决TFS错误TF237086“无法保存工作项..." [英] How to troubleshoot TFS error TF237086 "The work item cannot be saved..."

查看:183
本文介绍了如何解决TFS错误TF237086“无法保存工作项..."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在TFS 2010版本中遇到以下错误:

I am getting the following error in a TFS 2010 build:

无法更新工作项"59":'TF237086:由于至少一个字段包含不允许的值,因此无法保存工作项.

The work item '59' could not be updated: 'TF237086: The work item cannot be saved because at least one field contains a value that is not allowed.'

工作项59是我创建的一项基本任务,用于与签入时的变更集相关联.我没有对任务"工作项进行任何自定义.打开任务并手动更改值时,我没有任何错误.在构建日志中,没有任何信息可以提示导致问题的字段.

Work item 59 is a basic task I created to associate with my changeset on check-in. I have done no customization to the "task" work item. I get no errors when opening the task up and changing values manually. There is nothing in the build log that gives any clues as to what field is causing the problem.

如何解决此问题?

推荐答案

在这种情况下,我会做些什么:

Something I would do in this case:

  1. 检查构建服务帐户,很有可能在关联工作项时,使用该帐户更新其ChangedBy字段,并且该值无效.在MSDN论坛中,有人建议检查工作项目的有效TFS用户列表(您可以打开一个错误,然后尝试在AssignedTo字段中键入名称),然后查看该帐户是否在该列表中.

  1. Check the build service account, there's a high chance that when the work item is associated, its ChangedBy field is updated with this account and the value is not valid. Somebody in MSDN forum suggested checking the list of valid TFS users for a work item (you can open a bug and try typing the name in the AssignedTo field) and see if this account is in that list.

使用相同的关联任务自己尝试签入,然后查看更新了哪些字段(您应该能够在历史记录"选项卡中看到此字段),从那里可以找出可能的字段,并希望可以猜测有麻烦的人.

Try a checkin by yourself with the same associated task and see what fields are updated (you should be able to see this in the History tab), from there you can figure out the possible fields, and hopefully can guess the one that is in trouble.

如果这些都不起作用,我可以获取更多详细信息,然后尝试在计算机上对其进行复制.我们需要改进错误消息,以指定哪些字段无效.

If none of this works, I can get some more details and try to repro it on my machine. We'll need to improve error message to specify which fields that are invalid.

希望这会有所帮助.

[更新] 原因确实是,构建服务帐户(NT AUTHORITY \ SYSTEM)没有修改工作项的权限.我通过编辑组成员身份来解决此问题的所有尝试均失败了,但是我确实通过使用未使用的项目贡献者的帐户作为构建服务帐户来使构建正常进行而没有错误.更改构建服务帐户可能需要旧的构建工作区重命名或重新分配.

[Update] The cause was indeed that the build service account (NT AUTHORITY\SYSTEM) did not have permissions to modify work items. All my attempts to fix this by editing group memberships failed, but I did get the build working without errors by using an unused project contributor's account as the build service account. Changing build service account may require the old build workspaces to be renamed or reassigned.

这篇关于如何解决TFS错误TF237086“无法保存工作项..."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆