Error: "Unable to connect to VC: Duplicate key" when adding or editing a vCenter adapter instance.
search cancel

Error: "Unable to connect to VC: Duplicate key" when adding or editing a vCenter adapter instance.

book

Article ID: 445000

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • Re-adding or modifying a vCenter adapter instance after a deletion results in an error.
  • The connection validation completes successfully, but saving or adding the instance fails with this message: 
    Unable to connect to VC: Duplicate key ################### (attempted merging values com.integrien.alive.common.adapter3.config.CertificateConfig@####### and com.integrien.alive.common.adapter3.config.CertificateConfig@#######) Please check connectivity.

Environment

VCF Operations 9.1.x

Cause

This issue occurs when multiple entries for the same certificate thumbprint exist in the VCF Operations Trusted Certificates store. This often happens after deleting a failed adapter instance if stale certificate records remain in the database, causing a conflict during the merge process of a new connection.

Resolution

  1. Log in to the VCF Operations UI as an administrator.
  2. Navigate to AdministrationCertificates Trusted Certificates.
  3. Locate the certificate with the thumbprint specified in the error message.
  4. Delete the certificate entry that matches the thumbprint.
  5. If the error persists with a different thumbprint after the first deletion, repeat the search and delete the second conflicting certificate.
  6. Navigate back to AdministrationIntegrations and reconfigure the vCenter adapter instance → Validate Connection → Accept the certificate when prompted → Save