Primary Key Errors when adding files to repository
Moderator: SourceGear
Primary Key Errors when adding files to repository
Hello.
I've just upgraded from Vault 3.1.9 to 3.5.0 and then to 3.5.2 and created a new repository, however, I'm unable to add any files or folders to the repository from either the server, or client computer.
Whenever I attempt to add a new file, the GUI client displays an alert, "Could not save the tree," with the following messages:
[22/04/2007 9:06:20 AM] Preparing data to begin transaction
[22/04/2007 9:06:20 AM] Beginning transaction
[22/04/2007 9:06:20 AM] Add $/Default.aspx
[22/04/2007 9:06:21 AM] Ending the transaction
[22/04/2007 9:06:21 AM] An error occurred while trying to end a transaction.
[22/04/2007 9:06:21 AM] Transaction failed
[22/04/2007 9:06:21 AM] Transaction failed
It also shows
I've checked the logs named 070422sgvault.log and sgvault.log, however, both are empty. I've also looked at yesterday's log, which lists a primary key constraint violation as the culprit.
Is there a way to fix this?
Thanks.
Adaora
# SourceGear Vault Server
----2007-04-21 08:10:04 sgvaultsystem--()--
System Started
Version 3.1.9.3798
Cache Level = 1
DataBase Buffer Size (KB) = 256
LogFile Path = C:\WINDOWS\Temp\sgvault
Log Level = Quiet
Archive Log = Weekly
ReverseDNS Lookup = True
Maximum HTTP Request Length = 102400
Overwrite Log on Startup = False
Session Timeout = 4320
Active Directory Domain =
SGVault Working Directory = C:\WINDOWS\Temp
SGVault Server URL = http://ADAORA/VaultService
Identity = ADAORA\ASPNET
----2007-04-21 08:10:20 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Login
----2007-04-21 08:12:35 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Login
----2007-04-21 08:13:49 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Logout
----2007-04-21 08:13:54 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Logout
----2007-04-21 08:39:40 sgvaultsystem--()--
System Started
Version 3.5.2.5087
Cache Level = 1
DataBase Buffer Size (KB) = 256
LogFile Path = C:\WINDOWS\Temp\sgvault
Log Level = Quiet
Archive Log = Weekly
ReverseDNS Lookup = True
Maximum HTTP Request Length = 102400
Overwrite Log on Startup = False
Session Timeout = 4320
Active Directory Domain =
SGVault Working Directory = C:\WINDOWS\Temp
SGVault Server URL =
Identity = ADAORA\ASPNET
----2007-04-21 08:39:48 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Login
----2007-04-21 08:40:14 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Logout
----2007-04-21 08:40:59 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Login
----2007-04-21 08:42:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Login
----2007-04-21 08:42:28 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Logout
----2007-04-21 09:35:49 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Login
----2007-04-21 09:36:15 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:36:15 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:36:15 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (b5c815c4-88f9-4710-b726-d4908d0a92ad) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:36:15 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (b5c815c4-88f9-4710-b726-d4908d0a92ad) AddFile: $/~sakf5ae940101c78419.webproj returned: FailSaveSourceTree
----2007-04-21 09:37:18 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:37:18 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) AddFile: $/site.master.cs returned: FailSaveSourceTree
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) AddFile: $/site.master returned: FailSaveSourceTree
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) AddFile: $/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) AddFile: $/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:39:00 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:39:00 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:39:00 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (11bb1b86-23ed-4c7c-a175-58c68fc72fbf) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:39:00 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (11bb1b86-23ed-4c7c-a175-58c68fc72fbf) AddFile: $/~sak5aeac00101c7841a.tmp returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) AddFile: $/site.master.cs returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) AddFile: $/site.master returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) AddFile: $/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) AddFile: $/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528 returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/App_Data returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/images returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/images/gifs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/gifs/banner_bg.gif returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/gifs/leftnav_bg.gif returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/gifs/logo.gif returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/gifs/topnav_bg.gif returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/images/working returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/working/template.psd returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/includes returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/includes/css returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/includes/css/style.css returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/labs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/labs/ch1 returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/labs/ch1/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/labs/ch1/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/labs/ch2 returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/labs/ch2/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/labs/ch2/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/site.master returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/site.master.cs returned: FailSaveSourceTree
----2007-04-21 09:43:46 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Logout
----2007-04-21 09:43:47 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Logout
I've just upgraded from Vault 3.1.9 to 3.5.0 and then to 3.5.2 and created a new repository, however, I'm unable to add any files or folders to the repository from either the server, or client computer.
Whenever I attempt to add a new file, the GUI client displays an alert, "Could not save the tree," with the following messages:
[22/04/2007 9:06:20 AM] Preparing data to begin transaction
[22/04/2007 9:06:20 AM] Beginning transaction
[22/04/2007 9:06:20 AM] Add $/Default.aspx
[22/04/2007 9:06:21 AM] Ending the transaction
[22/04/2007 9:06:21 AM] An error occurred while trying to end a transaction.
[22/04/2007 9:06:21 AM] Transaction failed
[22/04/2007 9:06:21 AM] Transaction failed
It also shows
I've checked the logs named 070422sgvault.log and sgvault.log, however, both are empty. I've also looked at yesterday's log, which lists a primary key constraint violation as the culprit.
Is there a way to fix this?
Thanks.
Adaora
# SourceGear Vault Server
----2007-04-21 08:10:04 sgvaultsystem--()--
System Started
Version 3.1.9.3798
Cache Level = 1
DataBase Buffer Size (KB) = 256
LogFile Path = C:\WINDOWS\Temp\sgvault
Log Level = Quiet
Archive Log = Weekly
ReverseDNS Lookup = True
Maximum HTTP Request Length = 102400
Overwrite Log on Startup = False
Session Timeout = 4320
Active Directory Domain =
SGVault Working Directory = C:\WINDOWS\Temp
SGVault Server URL = http://ADAORA/VaultService
Identity = ADAORA\ASPNET
----2007-04-21 08:10:20 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Login
----2007-04-21 08:12:35 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Login
----2007-04-21 08:13:49 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Logout
----2007-04-21 08:13:54 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Logout
----2007-04-21 08:39:40 sgvaultsystem--()--
System Started
Version 3.5.2.5087
Cache Level = 1
DataBase Buffer Size (KB) = 256
LogFile Path = C:\WINDOWS\Temp\sgvault
Log Level = Quiet
Archive Log = Weekly
ReverseDNS Lookup = True
Maximum HTTP Request Length = 102400
Overwrite Log on Startup = False
Session Timeout = 4320
Active Directory Domain =
SGVault Working Directory = C:\WINDOWS\Temp
SGVault Server URL =
Identity = ADAORA\ASPNET
----2007-04-21 08:39:48 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Login
----2007-04-21 08:40:14 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Logout
----2007-04-21 08:40:59 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Login
----2007-04-21 08:42:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Login
----2007-04-21 08:42:28 admin--sds-qckads.com(127.0.0.1)--SSL Disabled Logout
----2007-04-21 09:35:49 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Login
----2007-04-21 09:36:15 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:36:15 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:36:15 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (b5c815c4-88f9-4710-b726-d4908d0a92ad) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:36:15 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (b5c815c4-88f9-4710-b726-d4908d0a92ad) AddFile: $/~sakf5ae940101c78419.webproj returned: FailSaveSourceTree
----2007-04-21 09:37:18 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:37:18 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) AddFile: $/site.master.cs returned: FailSaveSourceTree
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) AddFile: $/site.master returned: FailSaveSourceTree
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) AddFile: $/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:37:19 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (d128520a-0512-4fb0-a261-5665326b90a6) AddFile: $/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:39:00 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:39:00 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:39:00 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (11bb1b86-23ed-4c7c-a175-58c68fc72fbf) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:39:00 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (11bb1b86-23ed-4c7c-a175-58c68fc72fbf) AddFile: $/~sak5aeac00101c7841a.tmp returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) AddFile: $/site.master.cs returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) AddFile: $/site.master returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) AddFile: $/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:40:01 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (4931b50e-5c28-418e-9160-ed9950524839) AddFile: $/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Could not save folder skeleton: Error in the application.
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) EndTx (Revision - 0) returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528 returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/App_Data returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/images returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/images/gifs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/gifs/banner_bg.gif returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/gifs/leftnav_bg.gif returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/gifs/logo.gif returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/gifs/topnav_bg.gif returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/images/working returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/images/working/template.psd returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/includes returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/includes/css returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/includes/css/style.css returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/labs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/labs/ch1 returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/labs/ch1/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/labs/ch1/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFolder: $/mcts70-528/labs/ch2 returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/labs/ch2/Default.aspx returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/labs/ch2/Default.aspx.cs returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/site.master returned: FailSaveSourceTree
----2007-04-21 09:40:53 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled (34cb17c7-baf5-4430-9731-d60ab9f87748) AddFile: $/mcts70-528/site.master.cs returned: FailSaveSourceTree
----2007-04-21 09:43:46 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Logout
----2007-04-21 09:43:47 ngozi--ADAORA-PJAIVVPJ(192.168.62.51)--SSL Disabled Logout
For any others who come across this thread after upgrading to Vault 3.5.2, look for this error in your Vault Server Log:
First, to get the repository IDs, run the following in Query Analyzer on your SQL server:
Then run each of the following individually, replacing '(id)' with one of the repository IDs from the previous query.
If you have that, run the following check and report the results of the check (just how many rows returned in each one) and the repid involved. You will send that to support at sourcegear.com.Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'dbo.tbltreerevisionfolders'.
First, to get the repository IDs, run the following in Query Analyzer on your SQL server:
Code: Select all
SELECT repid, name FROM sgvault.dbo.tblrepositories
Code: Select all
select * from sgvault.dbo.tblcurrenttreerevisionfolders where repid = (id)
Code: Select all
SELECT * FROM sgvault.dbo.tblrepositories r WHERE r.repid = (id)
Code: Select all
select * from sgvault.dbo.tbltreerevisionfolders x inner join sgvault.dbo.tblrepositories r on r.currenttxid = x.txid where r.repid = (id)
Last edited by Beth on Tue Jul 10, 2007 9:40 am, edited 1 time in total.
I faced the same problem. This is the new repository created after upgrade to Vault 4.0.6
admin--SDD-JOEL(192.0.0.88)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----1/9/2008 3:33:19 PM admin--SDD-JOEL(192.0.0.88)--SSL Disabled Could not save folder skeleton: Error in the application.
----1/9/2008 3:33:19 PM admin--SDD-JOEL(192.0.0.88)--SSL Disabled (b058ae70-00c1-489e-b7b7-86973043d03b) EndTx (Revision - 0) returned: FailSaveSourceTree
----1/9/2008 3:33:19 PM admin--SDD-JOEL(192.0.0.88)--SSL Disabled (b058ae70-00c1-489e-b7b7-86973043d03b) AddFolder: $/Test Project returned: FailSaveSourceTree
I will post you the screen shot of query result off line. The problematic repid is 20
admin--SDD-JOEL(192.0.0.88)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'pk_tbltreerevisionfolders'. Cannot insert duplicate key in object 'tbltreerevisionfolders'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml) at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.SaveCurrentTreeFolders(VaultSqlConn conn, Int32 nRepID, Int64 nTxID, Int64 nLastTxID, Boolean bSaveAsDelta, String strXml)
----1/9/2008 3:33:19 PM admin--SDD-JOEL(192.0.0.88)--SSL Disabled Could not save folder skeleton: Error in the application.
----1/9/2008 3:33:19 PM admin--SDD-JOEL(192.0.0.88)--SSL Disabled (b058ae70-00c1-489e-b7b7-86973043d03b) EndTx (Revision - 0) returned: FailSaveSourceTree
----1/9/2008 3:33:19 PM admin--SDD-JOEL(192.0.0.88)--SSL Disabled (b058ae70-00c1-489e-b7b7-86973043d03b) AddFolder: $/Test Project returned: FailSaveSourceTree
I will post you the screen shot of query result off line. The problematic repid is 20