1

Topic: Violation of PRIMARY KEY constraint 'PK_SURVEY'.

Hello,
I've been getting a Violation of PRIMARY KEY constraint 'PK_SURVEY'. message when trying to add new surveys.

"Violation of PRIMARY KEY constraint 'PK_SURVEY'. Cannot insert duplicate key in object 'dbo.SURVEY'."

I am running version 6.30.0.291

Has anyone else run into this one, and how do i fix it?
Cheers
Tony

2

Re: Violation of PRIMARY KEY constraint 'PK_SURVEY'.

Hi Tony

Sounds like the Last_Key table has got out of sync for some reason. Have you tried updating the table via 'Tools -> Update Last Key' to see if that fixes the problem?

Andy

Andy Foy
Systems Manager
Greenspace Information for Greater London (GiGL) CIC
www.gigl.org.uk

3

Re: Violation of PRIMARY KEY constraint 'PK_SURVEY'.

Thanks Andy, that worked a treat! I'd not spotted that button before!
Tony