1

Topic: Error creating new Location

When I try to create a new site after entering the minimal information (just name, spatial reference and type), I get the error message that there are some locations within 2km of the square. Clicking on No results in the following unhandled error

command line      : RecorderApp.exe /395018
executable        : RecorderApp.exe
exec. date/time   : 2013-02-03 17:20
version           : 6.18.1.260
compiled with     : Delphi 7
madExcept version : 3.0n
callstack crc     : $8fb0f51c, $e243e70b, $e243e70b
exception number  : 1
exception class   : EDatabaseError
exception message : Violation of PRIMARY KEY constraint 'PK_LOCATION'. Cannot insert duplicate key in object 'dbo.Location'.

If I then click on Continue Application, I then find that there is some Geo Information already entered (such as Administrative Area and Grid References), even removing those does not help.

I have tried revalidating the database and it has reported no errors. How do I resolve this issue?

Harry Clarke
Surrey County Butterfly Recorder

2

Re: Error creating new Location

I suspect the last  key table.    The last key addin should  fix it if this is the problem, but you need to be sure that the problem isn't a sympton of something else -  ie. has anything been done to your system via the backend, for example changing the site id or adding locations ?   The addin may be already installed, in which case it is in the the tools menu. It should  also be on the install dvd, but I also attach it. Unzip the file somehere convenient then use tools/addin modules/install.

Post's attachments

LastKey update.zip 359.94 kb, 3 downloads since 2013-03-21 

You don't have the permssions to download the attachments of this post.
Mike Weideli

3

Re: Error creating new Location

Many thanks that has solved the problem - it reported 16 entries updated. I don't know how it got into a bad state, as all data imports have been via Recorder.

Harry Clarke
Surrey County Butterfly Recorder