Submit a ticketCall us

Training ClassThe Orion® Platform Instructor-led Classes

Provided by SolarWinds® Academy, these trainings will introduce users to the Orion Platform and its features, management, and navigation. These courses are suitable for users looking to discover new tips, tricks, and ways to adapt their Orion products to better suit their monitoring needs:
Deploying the Orion Platform
Configuring Orion views, maps, and accounts
Configuring Orion alerts and reports

Reserve your seat.

Home > Success Center > Netflow Traffic Analyzer (NTA) > NTA - Knowledgebase Articles > 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,371 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