如何解决 TFS 复制测试计划错误 TF237165?

How to resolve TFS Copy test plan error TF237165?

在用于 TFS 2013.4 的 Microsoft 测试管理器中,我正在尝试执行 "Clone Plan" 操作并收到错误消息:

这是来自事件查看器的完整错误日志。

The description for Event ID 0 from source VSTTExecution cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

(mtm.exe, PID 8824, Thread 1) Exception: Microsoft.TeamFoundation.TestManagement.Client.TestManagementServerException
    Message: TF237165: Team Foundation could not update the work item because of a validation error on the server. This may happen because the work item type has been modified or destroyed, or you do not have permission to update the work item.
    Stack Trace:    at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.HandleReply(TfsClientOperation operation, TfsMessage message, Object[]& outputs)
   at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
   at Microsoft.TeamFoundation.TestManagement.Client.TestManagementWebService3.BeginCloneOperation(Int32 sourcePlanId, TestPlan destinationPlan, Int32[] sourceSuiteIds, String projectName, CloneOptions options)
   at Microsoft.TeamFoundation.TestManagement.Client.TestPlanHelper.BeginCloneOperation(Int32 sourcePlanId, ITestPlan destPlan, List`1 sourceSuiteIds, String projectName, CloneOptions options)
   at Microsoft.TeamFoundation.TestManagement.Activities.CloneOperationHelper.InvokeBeginCloneOperation(ClonePlanPart part, Int32 sourceTestPlanId, List`1 sourceTestSuiteIds, ITestPlan destinationTestPlan, CloneOptions cloneOptions)
   at Microsoft.TeamFoundation.TestManagement.Activities.CloneOperationHelper.ClonePlanComplete(Object sender, ModalMessageEventArgs modalMessageEventArgs)
   at Microsoft.TeamFoundation.TestManagement.Client.WpfControls.ActivityHostControl.OnAdornerWorkComplete(Object sender, MessageButtonEventArgs eventArgs)
    BaseExceptionMessage: TF237165: Team Foundation could not update the work item because of a validation error on the server. This may happen because the work item type has been modified or destroyed, or you do not have permission to update the work item.
    InnerException: System.Web.Services.Protocols.SoapException
    InnerException Message: TF237165: Team Foundation could not update the work item because of a validation error on the server. This may happen because the work item type has been modified or destroyed, or you do not have permission to update the work item.
    InnerException Stack Trace: 
    InnerExceptionBaseExceptionMessage: TF237165: Team Foundation could not update the work item because of a validation error on the server. This may happen because the work item type has been modified or destroyed, or you do not have permission to update the work item.


the message resource is present but the message is not found in the string/message table

我对项目集合有完全的管理员权限,所以我相当确定这不是权限问题,而是涉及的工作项类型有 "been modified or destroyed"。我不确定具体如何追踪此问题或接下来要采取什么步骤。

更新

我做了一些额外的诊断。我在我的 TFS 项目中创建了一个完全空的测试计划(没有关联的测试套件、测试用例、工作项...)。我尝试克隆计划,但仍然收到相同的错误。

更新

过去,工作项已从 MSF for Agile Software Development v5.0 迁移到 MSF for Agile Software Development 2013.4 模板。这些工作项是否会以某种方式干扰克隆过程,如果这是问题所在,我将采取什么过程来清理这些旧工作项?

这个工具可能正是您所需要的:TFS 2013 Tester Power Tool - Bulk Copy Test Cases for Microsoft Test Manager

我认为这是一个错误,我尝试了很多变通方法但找不到解决方法,我已将其报告给 Microsoft connect,您可以与我一起投票以获得更好的响应 link:

https://connect.microsoft.com/VisualStudio/feedback/details/1270249/clone-test-plan-throw-microsoft-teamfoundation-testmanagement-client-testmanagementserverexception