Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

Unable to create Team Projects: Cannot insert duplicate key row in object 'dbo.Constants' with unique index 'IX_Constants__String_RemovedDate'

$
0
0

Hi,

We recently upgraded from TFS 2010 to TFS 2013 Update 3.  In addition, we are in the process of migrating our developers to a new domain.  

Suddenly, we are no longer able to add Team Projects to one of our TPC's.  Before today, this worked even after our upgrade to 2013.

I have attached most of the trace at the bottom, but the error is:

Cannot insert duplicate key row in object 'dbo.Constants' with unique index 'IX_Constants__String_RemovedDate'. The duplicate key value is (1, ABBVIENET\VASQUJM2, Jan  1 9999 12:00AM)

It seems to happen for any of the templates shipped in TFS and it doesn't seem to matter whether I use git or TFVC.

In my attempt to figure out the issue, I renamed the "name" field above and I still get the same exact error with the original username.  So I assume that the TP creator is trying to create this record twice during the creation process.

Any ideas?

I have seen others with the same error on the forum, but there didn't seem to be any resolution other than importing the projects into a new TPC.

--Jonathan

2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Macros replaced: [sdfdfd]\@creator.
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding the following identity to a group: [sdfdfd]\@creator.  Group name: sdfdfd Team.
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Creating application group for "Readers" URI "vstfs:///Classification/TeamProject/0d322eba-2adf-4c28-9e60-22ea2fe7eae6"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "GENERIC_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-2929099650-4014561098-2280563433-2778193300" deny: "True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "VIEW_TEST_RESULTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-2929099650-4014561098-2280563433-2778193300" deny:"True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "GENERIC_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-2929099650-4014561098-2280563433-2778193300" deny: "True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "WORK_ITEM_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-2929099650-4014561098-2280563433-2778193300" deny:"True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Creating application group for "Contributors" URI "vstfs:///Classification/TeamProject/0d322eba-2adf-4c28-9e60-22ea2fe7eae6"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "GENERIC_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny: "True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "DELETE_TEST_RESULTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny:"True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "PUBLISH_TEST_RESULTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny:"True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "VIEW_TEST_RESULTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny:"True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "GENERIC_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny: "True"
2014-08-06T18:53:52 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "WORK_ITEM_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "WORK_ITEM_WRITE" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny:"True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "MANAGE_TEST_PLANS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny:"True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "MANAGE_TEST_ENVIRONMENTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "MANAGE_TEST_CONFIGURATIONS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-1091684777-39564613-2481603883-1761689889" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Replacing macros: @defaultTeam.
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Macros replaced: [sdfdfd]\@defaultTeam.
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding the following identity to a group: [sdfdfd]\@defaultTeam.  Group name: Contributors.
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Creating application group for "Build Administrators" URI "vstfs:///Classification/TeamProject/0d322eba-2adf-4c28-9e60-22ea2fe7eae6"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "GENERIC_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "DELETE_TEST_RESULTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "PUBLISH_TEST_RESULTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "VIEW_TEST_RESULTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny:"True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "GENERIC_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "WORK_ITEM_READ" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny:"True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "WORK_ITEM_WRITE" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny:"True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "MANAGE_TEST_PLANS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny:"True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "MANAGE_TEST_ENVIRONMENTS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Adding access entry - actionName "MANAGE_TEST_CONFIGURATIONS" sid: "S-1-9-1551374245-3087749330-1836897094-3198219810-1505052016-1-3466149624-3846945613-2174923595-1364637705" deny: "True"
2014-08-06T18:53:53 | Module: Groups and Permissions | Thread: 45 | Exiting Execute for GssStructureCreator
2014-08-06T18:53:53 | Module: Engine | Task "GroupCreation1" from Group "Groups" completed with success | Completion time: 1.183 seconds
2014-08-06T18:53:53 | Module: Engine | Thread: 191 | Running Task "" from Group ""
2014-08-06T18:53:53 | Module: Engine | Thread: 68 | Running Task "LinkTypes" from Group "WorkItemTracking"
2014-08-06T18:53:53 | Module: Work Item Tracking | Thread: 68 | Synchronizing users and groups.
2014-08-06T18:54:04 | Module: Work Item Tracking | Thread: 68 | 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, ABBVIENET\VASQUJM2, Jan  1 9999 12:00AM).
2014-08-06T18:54:04 | Module: Work Item Tracking | Thread: 68 | Beginning retry 1.
2014-08-06T18:54:04 | Module: Work Item Tracking | Thread: 68 | Synchronizing users and groups.
2014-08-06T18:54:14 | Module: Work Item Tracking | Thread: 68 | 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, ABBVIENET\VASQUJM2, Jan  1 9999 12:00AM).
2014-08-06T18:54:14 | Module: Work Item Tracking | Thread: 68 | Beginning retry 2.
2014-08-06T18:54:14 | Module: Work Item Tracking | Thread: 68 | Synchronizing users and groups.
2014-08-06T18:54:25 | Module: Work Item Tracking | Thread: 68 | 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, ABBVIENET\VASQUJM2, Jan  1 9999 12:00AM).
2014-08-06T18:54:25 | Module: Work Item Tracking | Thread: 68 | Beginning retry 3.
2014-08-06T18:54:25 | Module: Work Item Tracking | Thread: 68 | Synchronizing users and groups.
---begin Exception entry---
Time: 2014-08-06T18:54:36
Module: Engine
Event Description: TF30162: Task "LinkTypes" from Group "WorkItemTracking" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: Cannot insert duplicate key row in object 'dbo.Constants' with unique index 'IX_Constants__String_RemovedDate'. The duplicate key value is (1, ABBVIENET\VASQUJM2, Jan  1 9999 12:00AM).
Stack Trace:
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)
--   Inner Exception   --
Exception Message: Cannot insert duplicate key row in object 'dbo.Constants' with unique index 'IX_Constants__String_RemovedDate'. The duplicate key value is (1, ABBVIENET\VASQUJM2, Jan  1 9999 12:00AM). (type SoapException)SoapException Details: <detail ExceptionMessage="Cannot insert duplicate key row in object 'dbo.Constants' with unique index 'IX_Constants__String_RemovedDate'. The duplicate key value is (1, ABBVIENET\VASQUJM2, Jan  1 9999 12:00AM)." BaseExceptionName="System.Data.SqlClient.SqlException"><details id="0" xmlns="http://schemas.microsoft.com/TeamFoundation/2005/06/WorkItemTracking/faultdetail/03" /></detail>
Exception Stack Trace:    at Microsoft.TeamFoundation.WorkItemTracking.Proxy.RetryHandler.HandleSoapException(SoapException se)
   at Microsoft.TeamFoundation.WorkItemTracking.Proxy.WorkItemServer.SyncBisGroupsAndUsers(String requestId, String projectUri)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Synchronize(ContextWrapper wrapper)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.InitializeContext(ContextWrapper wrapper)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)

--- end Exception entry ---

2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "WITs" from Group "WorkItemTracking" will not be run because a prior task failed.
2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "Queries" from Group "WorkItemTracking" will not be run because a prior task failed.
2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "Categories" from Group "WorkItemTracking" will not be run because a prior task failed.
2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "ProcessConfiguration" from Group "WorkItemTracking" will not be run because a prior task failed.
2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "VersionControlTask" from Group "VersionControl" will not be run because a prior task failed.
2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "BuildTask" from Group "Build" will not be run because a prior task failed.
2014-08-06T18:54:36 | Module: Engine | Thread: 68 | TF30202: Task "" from Group "" will not be run because a prior task failed.


--Jonathan


Viewing all articles
Browse latest Browse all 6687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>