Submit a ticketCall us

Announcing NCM 7.7
With NCM 7.7, you can examine the rules that make up an access control list for a Cisco ASA device. Then you can apply filters to display only rules that meet the specified criteria, order the rules by line number or by the hit count, and much more.
See new features and improvements.

Home > Success Center > Enterprise Operations Console (EOC) > Reports Tab Generates an Error - Violation of PRIMARY KEY constraint 'PK_EOC_Report'. Cannot insert duplicate key in object 'dbo.EOC_Report'

Reports Tab Generates an Error - Violation of PRIMARY KEY constraint 'PK_EOC_Report'. Cannot insert duplicate key in object 'dbo.EOC_Report'

Created by Steven Bansil_ret, last modified by MindTouch on Jun 23, 2016

Views: 87 Votes: 3 Revisions: 10

Overview

The following error is found in the Reports tab for Enterprise Operations Console (EOC) that is monitoring an instance running both NPM and NCM:

 

Violation of PRIMARY KEY constrant 'PK_EOC_Report. Cannot insert duplicate key in object 'dbo.EOC.Report'. The duplicate key value is (5, 1, Down Nodes). The statement has been terminated. 

Environment

  • EOC 1.6.x

Cause

Issue is cause by having custom reports with the same names created on different SolarWinds Server maintained under EOC.

Resolution

To ensure that all reports run by EOC have unique names:

  1. Run the following query in SWQL Studio (part of Orion SDK) connecting to Orion using SWIS v2 on the Orion database to check for reports with duplicate names. Instead of SWQL Studio you can use SWIS interface on Orion Web Console by simply going to Settings and adding swis.aspx at the end of the URL, similar to below:

    http://SERVER/Orion/Admin/swis.aspx
     
  2. SELECT name, Count (name) AS NameCount
    FROM Orion.Report
    GROUP BY Name
    ORDER BY NameCount DESC
  3. Locate rows with a NameCount value of more than 1 (they will be listed at the top) and perform any of the following: 
    1. Rename duplicate reports that are required to be retained
    2. Delete duplicate reports that are not required to be retained
  4. Check the Reports tab in EOC and confirm that the reports are displaying
Last modified
19:25, 22 Jun 2016

Tags

Classifications

Public