Re: Errors during Import
I have just imported a set of records into a new install of Recorder via the "NBN Access Database (Zipped)" with the following errors (only one of each variety posted):
Failed to insert SR000011000006LV into LOCATION
Database Error Message:
The UPDATE statement conflicted with the FOREIGN KEY SAME TABLE constraint "FK_LOCATION_LOCATION". The conflict occurred in database "NBNData", table "dbo.LOCATION", column 'LOCATION_KEY'.The statement has been terminated.
--------------------
Failed to insert SR00001100000103 into INDIVIDUAL
Database Error Message:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Individual_Organisation_Department". The conflict occurred in database "NBNData", table "dbo.Organisation_Department", column 'Organisation_Department_Key'.(-2147217873) The statement has been terminated.(-2147217873)
--------------------
Failed to insert SR00001100002PHE into TAXON_DETERMINATION
Database Error Message:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_TAXON_DETERMINATION_TAXON_LIST_ITEM". The conflict occurred in database "NBNData", table "dbo.TAXON_LIST_ITEM", column 'TAXON_LIST_ITEM_KEY'.(-2147217873) The statement has been terminated.(-2147217873)
--------------------
Failed to insert SR00001100000G33 into BIOTOPE_DETERMINATION
Database Error Message:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_BIOTOPE_DETERMINATION_BIOTOPE_LIST_ITEM". The conflict occurred in database "NBNData", table "dbo.BIOTOPE_LIST_ITEM", column 'BIOTOPE_LIST_ITEM_KEY'.(-2147217873) The statement has been terminated.(-2147217873)
--------------------
Failed to insert SR0000110000001C into LOCATION_RELATION
Database Error Message:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_LOCATION_RELATION_LOCATION1". The conflict occurred in database "NBNData", table "dbo.LOCATION", column 'LOCATION_KEY'.(-2147217873) The statement has been terminated.(-2147217873)
--------------------
Failed to insert SR0000110000001D into LOCATION_RELATION
Database Error Message:
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_LOCATION_RELATION_LOCATION2". The conflict occurred in database "NBNData", table "dbo.LOCATION", column 'LOCATION_KEY'.(-2147217873) The statement has been terminated.(-2147217873)
--------------------
Failed to insert SR000011000024EI into TAXON_OCCURRENCE_SOURCES
Database Error Message:
The occurrence record and all related data were not imported as the determination record is missing or invalid.
--------------------
Failed to insert SR00001100002UJA into TAXON_OCCURRENCE_DATA
Database Error Message:
The occurrence record and all related data were not imported as the determination record is missing or invalid.
--------------------
Failed to insert SR00001100000G33 into BIOTOPE_OCCURRENCE
Database Error Message:
The occurrence record and all related data were not imported as the determination record is missing or invalid.
--------------------
I was surprised to get so many rejected records (83) in a transfer from one copy of Recorder to another. I think I understand a couple of the errors, but could someone explain the errors encountered, so I can analyse the source, please?
Staffordshire Ecological Record