﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
514	Entering an accession and changing the accession id then adding a second accession with the originally entered accession id causes an error with a duplicate system inventory record	Mark J. Millard	bweaver	"The scenario is that I am manually entering a list of accession records and as I am going through I accidently enter the accession number for the next item on the list with data for the current item.  I catch my error after saving the data and change the accession number to the correct number.  I then move on to the next item on the list and enter the accession number and its data and try to commit the accession number.  I get this error message from the Curator Tool:

Cannot insert duplicate key row in object 'dbo.inventory' with unique index 'ndx_uniq_inv'.  The statement has been terminated.

The workaround is that the operator needs to remove the system inventory from this new record and somehow go back and add a system record on the previous record.

The proper behavior is that these system inventories are managed by the software correctly and the operator doesn't have to worry about the system inventories.
"	defect	new	major	Release Candidate 2	Middle Tier	2.0.1403					SQL Server	Windows 7 Ultimate 64 bit
