PVWA - some users get "The given key was not present in the dictionary" after login
149
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:58 PM
Symptom
For some users, after a successful authentication to PVWA, a popup appears on the screen with the following message:
Something went wrong.
Please try again or contact your administrator.
The given key was not present in the dictionary.
When you close the popup, the PVWA page does not load any content.
The PVWA.app.log shows the following exceptions or similar while querying the safe "PVWAPrivateUserPrefs":
Safe [PVWAPrivateUserPrefs] SCAGSafeDetails data prepared from Safes-Meta-Data-Cache. (Vault [CAMainVault] user [PVWAAppUser]) [Casos]
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
GetSavedSearches failed System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
GetSavedSearches Response:: Code: 500. Content: {"ErrorCode":"CAWS00001E","ErrorMessage":"The given key was not present in the dictionary."} [SettingsController]
In this case it complained about GetSavedSearches
Environment
12.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA
Cause
The user preference file may be corrupted.
The cause is not clear but may have occurred during a failed vault replication.
Resolution
To fix the issue for the affected users, you can delete its user preference file from the PVWAPrivateUserPrefs safe.
In order to identify the right file to delete, you have to Base64 decode the username with Notepad++ or similar and that will give you the name of the file you need to look for.