尝试创建工作项批处理时发生错误 TF51635 [英] Error TF51635 Occurred while trying to create workitem batch

查看:15
本文介绍了尝试创建工作项批处理时发生错误 TF51635的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试通过批量创建操作创建工作项时,出现以下错误

When I try to create work items trough batch create operation I am getting below Error

TF51635: There are duplicate temp IDs in the Update XML.\\r\\nParameter name: workItemUpdates\

网络上没有关于此错误的太多信息.以下链接包含 TFS 错误和代码,但我找不到有关此错误的详细信息.https://msdn.microsoft.com/en-us/library/aa337645(v=vs.80).aspx

There is no much information available in web regarding this error.below link contains TFS errors and codes , But I couldn't find detailed information about same. https://msdn.microsoft.com/en-us/library/aa337645(v=vs.80).aspx

根据我的研究,这个问题可能与批量 Id 符号有关(当我尝试批量创建几个没有 Id 的工作项时发生错误).你能解释一下下面的符号吗(我指的是 https://www.visualstudio.com/en-us/docs/integrate/api/机智/批次)

As per my research this issue could associate with Id notation in batch (error occurred When I tried to create several workitems without Id in batch).Can you explain bit about below notation (I am referring to https://www.visualstudio.com/en-us/docs/integrate/api/wit/batch)

      {
        "op": "add",
        "path": "/id",
        "value": "-1"
      }

  1. 是否必须定义 ID ?.
  2. 如何确定Id(哪个id应该首先使用/获取上一个工作项的最后一个id)?
  3. 是否可以为此分配自动增量编号?

推荐答案

虽然还没有找到相关的官方文档.此 ID 似乎用于定义 json 内容中多个工作项的顺序.例如: 如果前一个工作项的最后一个 id 是 289,那么带有 -1 的工作项的 ID 将是 290,-2 将是 291 ...等等.此意见基于一些测试.

Even though haven't found some related official documentation. This ID seems to use for defining the order of the multiple work items in json content. For example: If the last id of previous workitem is 289, then the ID of work item with -1 will be 290, -2 will be 291 ...and so on. This opinion is based on some tests.

1.是否必须定义 ID ?

是的,您必须定义此 ID,否则会出错.

Yes, you have to define this ID, if you don't, you will get error.

2.如何确定Id(应该首先使用哪个id/获取上一个工作项的最后一个id)?

您不必获取前一个工作项的最后一个 id,TFS 将自动检测它.这可以确认,当你 创建一个单个工作项,您不必这样做.

You don't have to get the last id of previous workitem TFS will automatically detect it. This could be confirmed, when you create a single work item, you don't have to do this.

3.是否可以为此分配自动增量编号?

好像没有.

这篇关于尝试创建工作项批处理时发生错误 TF51635的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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