IV00200 is the Item Serial Number Master table. SERLNMBR is Serial Number field. IV00200 has following indexes Script for AK3IV00200 shows the index is unique non clustered for itemnumber - serial number combination. USE [TWO] GO /****** Object: Index [AK3IV00200] Script Date: 3/25/2016 3:44:01 AM ******/ CREATE UNIQUE NONCLUSTERED INDEX [AK3IV00200] ON [dbo].[IV00200] ( [ITEMNMBR] ASC, [SERLNMBR] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) GO Therefore duplication should not be possible. I tried to add a duplicate record got this message in SQL The record i inserted matched the values for a sold serial number 5. attempted to enter an inventory adjustment entry with serial number 5 Therefore item - serial number duplicates is not allowed. You should check the records in IV00200 table and compare the values for the serial number field to see if there are any hidden / non visible characters in one of the record for serial number field. Cheers! Sanjay
↧