Re: Taxon Dictionary Update Error
Hi,
After upgrading our test system from 6.9.3 to 6.14.4 we are trying to apply the dictionary updates. We are currently on version 00000003 and hence have been running scripts 00000004 onwards. We have got so far and then got an error running script 00000009.sql as follows:
----------------
Error occurred runnign script 00000009.sql. The error is described as:
The DELETE statement conflicted with the REFERENCE constraint "FK_Index_Taxon_Designation_Taxon_List_Item". The conflict occurred in the database "NBNData", table "dbo.Index_Taxon_Designation", column 'Taxon_List_Item_Key'
----------------
The script seems to be trying to delete old Taxon_List_Items but some of them are still referenced via entries in Index_Taxon_Designation. Some of them have been added by us, i.e links from taxons to local taxon designation types (e.g. county rare/scarce designations) but the remainder are links to system supplied taxon designation types (e.g. to 'FEP Guidance 007: Table 2' and to 'Conservation Regulations (1994) Sch2').
Does the Index_Taxon_Designation table need to be rebuilt before this script is re-run as I am not sure the foreign references exist in the underlying Taxon_Designation table, only in the Index. Or can the Index entries be deleted manually by us without any concern before we re-run the script?
Many thanks,
Andy
Systems Manager
Greenspace Information for Greater London (GiGL) CIC
www.gigl.org.uk