1

Re: Error deleting survey

I am trying to delete a number of surveys and am unable to do so using either the delete survey add in or the JNCCdel5Records [1] batch update. When I use the add in I get a "failed to delete survey" dialogue box with no effect on the survey itself. When I run the batch update I get a box with the following:

"There is an error in the SQL code. The error message is: 'The DELETE statement conflicted with the REFERENCE constraint "FK_SAMPLE_RECORDER_SURVEY_EVENT_RECORDER". The conflict occurred in database "NBNData", table "dbo.SAMPLE_RECORDER", Column "SE_RECORDER_KEY"

I have been able to delete surveys much larger than this previously with no problem. These surveys did come from another copy of recorder with custody reassigned.

I need to remove them and reimport to deal with a related problem which I recently posted regarding duplicate copies of Recorder6 in use by one of our data providers.

Any help most gratefully received.

Martin

Martin Horlock
Norfolk Biodiversity information Service

2

Re: Error deleting survey

This is caused by  problem with the data. I have a  version of the Batch Update which will cope with the problem and I will dig this out and make it available asap.

Mike Weideli

3

Re: Error deleting survey

The revised Batch Update is at

http://forums.nbn.org.uk/uploads.php?file=JNCCDel5Records.xml

Mike Weideli

4

Re: Error deleting survey

Mike

That has done the trick.

Thanks
Martin

Martin Horlock
Norfolk Biodiversity information Service