无法在对象'dbo.Constants'中插入具有唯一索引'IX_Constants__String_RemovedDate'的重复键行 [英] Cannot insert duplicate key row in object 'dbo.Constants' with unique index 'IX_Constants__String_RemovedDate'

查看:93
本文介绍了无法在对象'dbo.Constants'中插入具有唯一索引'IX_Constants__String_RemovedDate'的重复键行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我已将TFS 2015更新为2017年TFS更新1.一切正常,直到我们必须创建新的团队项目。



我们有2个项目集合。在其中一个模板上,他只能创建敏捷模板,而另一个模板则无法模板化。



每次错误都是一样的:

由于SoapException,
同步失败:无法在对象'dbo.Constants'中插入具有唯一索引'IX_Constants__String_RemovedDate'的重复键行。重复键值为(1,Build \d63c6bb2-af3c-4b39-aa9b-a77ca9b0aa73,Jan  1 9999 12:00 AM)。



我尝试访问dbo.Constants但找不到这个条目,也许我正在寻找不同的东西。



重要的是说我们自2010年起使用相同的数据库 - > 2012 - > 2013 - > 2015年 - > 2017年,没有人手动触摸这些数据库。



任何建议都会有所帮助

解决方案

您好Sergey Pelykh,


感谢您在此发帖。


其他人是否有同样的问题?


根据错误信息,它应该是 dbo.Constants
表中的重复条目,请检查任何列中的字符串,例如[DisplayPart],[String], [ProjectID],[TeamFoundationId]等。


您还可以检查 [dbo]。[tbl_Project] 表, 
检查是否已经创建了带有"d63c6bb2-af3c-4b39-aa9b-a77ca9b0aa73"键的项目。


此外,您可以尝试清理在客户端和TFS服务器端缓存,然后再次尝试。



  • 客户端:%USERPROFILE%\ AppData \ Local \微软\团队基金会\ 版本 \ Cache
  • 应用层: TfsData\ApplicationTier\_fileCache  
    (根据您的设置)


您也可以参考相同的问题:
https://social.msdn.microsoft.com/Forums/en-US/395036d1-c839-4931-963a-f45e5c41cf89/unable- to-create-team-projects-can-insert-duplicate-key-row-in-object-dbconstants-with?forum = tfsgeneral


最好的问候


Hi,

I've updated TFS 2015 to TFS 2017 Update 1. Everything worked until we had to create new Team Project.

We have 2 project collections. On one of them he can create only Agile templates and on the other fails with every template.

Error is the same every time:

Synchronization failed due to SoapException: Cannot insert duplicate key row in object 'dbo.Constants' with unique index 'IX_Constants__String_RemovedDate'. The duplicate key value is (1, Build\d63c6bb2-af3c-4b39-aa9b-a77ca9b0aa73, Jan  1 9999 12:00AM).

I tried accessing dbo.Constants but cannot find this entry, of maybe I'm looking for something different that supposed to.

Important to say that we're using same databases since 2010 -> 2012 -> 2013 -> 2015 -> 2017 and no one touched these databases manually.

Any advise will help

解决方案

Hi Sergey Pelykh,

Thank you for posting here.

Does anybody else have the same issue?

According to the error message, It should be a duplicate entry in dbo.Constants table, please check the strings in any column, eg [DisplayPart] ,[String] ,[ProjectID] ,[TeamFoundationId] etc.

You can also have a check for the [dbo].[tbl_Project] table,  to check if the project with the key ‘d63c6bb2-af3c-4b39-aa9b-a77ca9b0aa73’ has been created already.

Besides, you can try to clean caches in both client and TFS server side, then try it again.

  • Client: %USERPROFILE%\AppData\Local\Microsoft\Team Foundation\Version\Cache
  • Applicaion Tier: TfsData\ApplicationTier\_fileCache  (based on your settings)

And there is a same question for your reference: https://social.msdn.microsoft.com/Forums/en-US/395036d1-c839-4931-963a-f45e5c41cf89/unable-to-create-team-projects-cannot-insert-duplicate-key-row-in-object-dboconstants-with?forum=tfsgeneral

Best Regards.


这篇关于无法在对象'dbo.Constants'中插入具有唯一索引'IX_Constants__String_RemovedDate'的重复键行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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