TFS 2013 update 5:
Scenario: creating a new Team Project using visual studio:
Exception Message: Cannot insert duplicate key row in object 'dbo.Constants' with unique index 'IX_Constants__String_RemovedDate'. The duplicate key value is (1, 172c9245-8dad-48a7-b583-891fb1d51a19\Areas Admins, Jan 1 9999 12:00AM).
Investigation results: "172c9245-8dad-48a7-b583-891fb1d51a19" is a project ID already created 6 months ago and it is not last one to be created.
Things I tried:
-Delete client cache
-Detete server cache
-iisreset
-server restart