Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Netflow Traffic Analyzer (NTA) > Database configuration failed: Error while executing script- Violation of PRIMARY KEY constraint 'PK_NetFlowTransactionLog'. Cannot insert duplicate key in object 'dbo.NetFlowTransactionLog'. The statement has been terminated

Database configuration failed: Error while executing script- Violation of PRIMARY KEY constraint 'PK_NetFlowTransactionLog'. Cannot insert duplicate key in object 'dbo.NetFlowTransactionLog'. The statement has been terminated

Created by Norsolihati Selamat, last modified by Alexander Aguilar on Jan 10, 2017

Views: 1,138 Votes: 1 Revisions: 8

Overview

Configuration Wizard ends with the following error:
Database configuration failed: Error while executing script- Violation of PRIMARY KEY constraint 'PK_NetFlowTransactionLog'. Cannot insert duplicate key in object 'dbo.NetFlowTransactionLog'. The statement has been terminated

Environment

NTA 4.0 and earlier

Resolution

Note: Make sure to backup your database before making any direct changes.

  1. Log in to SQL Management Studio in SQL server using an SQL sa account.
  2. Run the following query against the Orion/SolarWinds database:
    GO
    IF  EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[NetFlowTransactionLog]') AND name = N'PK_NetFlowTransactionLog')
    ALTER TABLE [dbo].[NetFlowTransactionLog] DROP CONSTRAINT [PK_NetFlowTransactionLog]
    GO
  3. Re-run the Configuration Wizard.

 

Last modified

Tags

Classifications

Public