VersaDev Knowledge Base

 

 


"Violation of PRIMARY KEY constraint....." error when adding a new Queue


Category: FAQ

The information in this article applies to:

  • versaSRS

Symptoms

When trying to add a new Queue, after submitting the required information the below error is reported:

Server Error in '/' Application.


Violation of PRIMARY KEY constraint 'PK_tbl_OpenConfirmation'. Cannot insert duplicate key in object 'dbo.tbl_OpenConfirmation'.
The statement has been terminated.

 

Cause

Default Data supplied as part of a new install conflicts with new entries.

Resolution

To correct this issue please perform one of the following tasks below.

(1) Connect to the database and open the tables tbl_OpenConfirmation and tbl_CloseConfirmation and delete records 2 to 6 in both of them.

(2) Execute the following SQL Script against the versaSRS database:

PRINT 'Deleting records from table tbl_QueueEscalations'
Delete from
tbl_QueueEscalations
Where QueueID > 1

PRINT 'Deleting records from table tbl_QueueGroupUsers'
Delete from
tbl_QueueGroupUsers
Where QueueID > 1

PRINT 'Deleting records from table tbl_OpenConfirmation'
Delete from
tbl_OpenConfirmation
Where QueueID > 1

PRINT 'Deleting records from table tbl_QueueDueDates'
Delete from
tbl_QueueDueDates
Where QueueID > 1

PRINT 'Deleting records from table tbl_CloseConfirmation'
Delete from
tbl_CloseConfirmation
Where QueueID > 1

 

More Information

This issue will be resolved in a future release.


Last Reviewed: 23/07/2009
Powered by VersaDev Copyright 1994 - 2008

Article # Q731198


Last Reviewed
23/07/2009

Print this page  Print this page
Click link to send to a friend  Send to a friend
Add to Favorites  Add to Favorites

Provided by
VersaDev Support Services


Did the information in this article help answer your question?

Yes
No
Did not apply