Network Management
Configuration Wizard: Cannot add index (PK_configwizardlog)
This article discusses resolution steps on resolving issues when database is full when Configuration Wizard was ran.
First published date
Last published date
Overview
An error similar to the following appears during Configuration Wizard:
Cannot add index (PK_ConfigWizardLog)
Product section
Cause
- The database has reached the size limit.
- There are incomplete permissions for the SQL account.
- Duplicate rows (duplicate LogID values) in ConfigWizardLog table
Resolution
Log into the database and verify that there is available space.
If the database is full, create space by truncating the following:
- Open the Syslog table and run Truncate Table Syslog.
- Open the Traps table and run Truncate Table Traps.
- Open the TrapVarbinds table and run Truncate Table TrapVarbinds.
If disk space is not the issue,
- Make sure the SQL account being used has the dbcreator, db_owner and securityadmin permissions.
- Re-run the Configuration Wizard.
If the error persists after doing all of the above run the following SQL command to drop the Configwizardlog table MAKE SURE YOU HAVE A DB BACKUP
- Drop table dbo.configwizardlog
Preferable approach, in order to retain logs, would be to find duplicate rows in the ConfigWizardLog table and remove duplicates. Below query will list LogID values which have duplicates:
SELECT LogID FROM [dbo].[ConfigWizardLog] GROUP BY LogID HAVING (COUNT(LogID) > 1)
Below query will list complete rows, with time-stamps, to help you decide which rows to delete:
SELECT *
FROM [dbo].[ConfigWizardLog]
WHERE LogID IN (
SELECT LogID
FROM [dbo].[ConfigWizardLog]
GROUP BY LogID
HAVING (COUNT(LogID) > 1) )