Sharing a share generates primary key violation

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
kasti
Posts: 108
Joined: Tue Apr 20, 2004 4:21 am
Location: Austria

Sharing a share generates primary key violation

Post by kasti » Wed Oct 04, 2006 7:43 am

Using Vault 3.5.0, but problem is in 3.*.*:

Every now and again, when sharing a Project (not file), we get the following error:

----04.10.2006 15:34:35 *********--172.16.11.218(172.16.11.218)--SSL Disabled System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK__@tbl__5DB5E0CB'. Cannot insert duplicate key in object '#5CC1BC92'.
The statement has been terminated.
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.AddFSObjectShares(VaultSqlConn conn, Int32 nRepID, String strXml, Int64 nObjVerID, Int64 nFolderObjVerID, Int64 nTxID, Int32 nTxItem, String strItemPath, String strComment, VaultDateTime dtMod) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at VaultServiceSQL.VaultSqlSCC.AddFSObjectShares(VaultSqlConn conn, Int32 nRepID, String strXml, Int64 nObjVerID, Int64 nFolderObjVerID, Int64 nTxID, Int32 nTxItem, String strItemPath, String strComment, VaultDateTime dtMod)


This happens with quite a few projects that we have.

Current workaround: The projects in question have been shared to quite a few locations. We just share it from a different location and it will work without a problem.

Thanks,
Herbert.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Wed Oct 04, 2006 11:25 am

I believe you've reported problems with shares before -- we may have even worked on your Vault database. The errors indicate some type of database inconsistency -- possibly something that's been there a while but is exposed by a particular operation.

We may need to take another look at the database to resolve this. Email support@sourcegear.com if you want to pursue this.
Linda Bauer
SourceGear
Technical Support Manager

Locked