TPF error: Secret Store - Retrieve Secret Failed - InvalidVaultID (Invalid Vault ID)

TPF error: Secret Store - Retrieve Secret Failed - InvalidVaultID (Invalid Vault ID)

158
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 13:00 PM


Symptom


The Default SQL Channel log shows a critical error:

Secret Store - Retrieve Secret Failed - InvalidVaultID - SecretStoreMsSql failed to retrieve a Secret, System Error: InvalidVaultID.


Environment


24.3;25.1;25.3;26.1 TLSPDC

Cause


This issue occurs when a certificate object in the system has a vault ID that no longer exists in the database. It will typically occur during a certificate download/export.

 



Resolution


  1. Run the query below to locate objects that have a missing vault ID.
    1. SELECT CONCAT(vco.Parent, '\', vco.Name) AS 'Orphaned Object DN', *
      FROM 
          v_config_objects vco
      JOIN 
          v_config_contains attrib ON vco.id = attrib.ObjectId
      LEFT JOIN 
          store_vault vault ON attrib.IntValue = vault.VaultID
      WHERE 
          attrib.Attribute IN ('Private Key Vault Id', 'Certificate Vault Id')
          AND (vault.VaultID IS NULL AND attrib.IntValue IS NOT NULL AND attrib.IntValue <> 0);
  2. Note the "Orphaned Object DN" column for the location of the affected objects.
  3. Renew the affected certificates to generate new vault IDs.
  4. Process complete.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001QN7CAM&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail