Troubleshooting: KeyNotFoundException When Creating a New Experience Data Store

Follow
    Applies to:
  • SecureAuth Identity Platform
Deployment model:
  • Cloud
  • Hybrid
  • On Premises
  • Version Affected: All
     
     

    Overview

    When creating a Data Store in a New Experience realm, the creation fails. The Application API logs show that the call to https://localhost/SecureStorageApi/keychain/v1/secure_stores/<key>/credentials returns an Internal Server Error, and the SecureStoreAPI logs show a System.Collections.Generic.KeyNotFoundException, stating that the given key was not present in the dictionary.

     

    Cause

    The data file under D:\SecureAuth\SecureStorageApi\SecureAuth Corporation\SecureStore\Data does not match the key name reported in the exception -- the file name must be the key with its hyphens removed.

     

    Resolution:

    1. Back up the contents of the Data folder before making any changes.
    2. Rename the data file in the Data folder to match the key reported in the KeyNotFoundException, with the hyphens removed. For example, if the key is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx1234, rename the file to xxxxxxxxxxxxxxxxxxxxxxxxxxxx1234.




     

    SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.

    Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.

    0 out of 0 found this helpful

    Comments

    0 comments

    Please sign in to leave a comment.