IBM Support

"Violation of PRIMARY KEY constraint 'PKC_XKSTRUCS'. Cannot insert duplicate key in object 'dbo.xkstrucs'. The duplicate key value is...." error when regenerate company structures

Troubleshooting


Problem

User performs a database optimise. An error appears.

Symptom

image 2235
Standard Error
Number:    5
Source:    FrangoDirect.GenCompStrucD.GenKStruc#System.Web.Services
Description:    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: The statement has been terminated.
Violation of PRIMARY KEY constraint 'PKC_XKSTRUCS'. Cannot insert duplicate key in object 'dbo.xkstrucs'. The duplicate key value is (1234AB, X, LE, 1234  ,56789).
   at Microsoft.VisualBasic.ErrObject.Raise(Int32 Number, Object Source, Object Description, Object HelpFile, Object HelpContext)
   at
 

Document Location

Worldwide

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS9S6B","label":"IBM Cognos Controller"},"Component":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.4.1","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSMRTZ","label":"IBM Cognos Controller on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
09 May 2025

UID

ibm11285822