/
Error logging in to a newly upgraded database - duplicate key value supplied
Error logging in to a newly upgraded database - duplicate key value supplied
Problem
When logging into a newly upgraded database and error is report ' Error. Add Duplicate Key value supplied'
Solution
SQL skills are required
A good knowledge of SQL Management Studio is required to complete this task
The problem is duplicate entries in SY_SysValues table. Run the following query to identify the duplicates:
SELECT * FROM SY_SysValues WHERE IDKey IN (SELECT IDKey FROM SY_SysValues GROUP BY IDKey, Section HAVING COUNT(IDKey) > 1)
Select one of the duplicates and issue a SQL query to delete it.
Related articles
, multiple selections available,
Related content
Saving a new record reports a duplicate key error
Saving a new record reports a duplicate key error
More like this
Cannot insert duplicate key row in object ....
Cannot insert duplicate key row in object ....
More like this
Login fails for login SQL users
Login fails for login SQL users
More like this
Invalid column name 'ActiveLogin'
Invalid column name 'ActiveLogin'
More like this
Saving changes to permissions in the sales order form errors 'Cannot insert duplicate key row ...SY_UserGroupPermissions...'
Saving changes to permissions in the sales order form errors 'Cannot insert duplicate key row ...SY_UserGroupPermissions...'
More like this
Insert into SY_MenuItemReport error on upgrade to a later Version 7 release
Insert into SY_MenuItemReport error on upgrade to a later Version 7 release
More like this