PVWA - "Item has already been added. Key in dictionary."
Symptom
When using the Search field in PVWA or when trying to add a new password object, the following error message is shown:
"Item has already been added. Key in dictionary.
Environment
10.5;10.10;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA
Cause
This error will appear when the policies.xml contains a certain property or Policy ID more than once. For example, if a user added a required or optional property to one of the policies and this property already exists higher in the XML hierarchy (e.g.: in the "Operating System" section).
Resolution
Additional Information:
Always make a backup of any XML file before modifying it. The error will appear when the user is performing an operation on an object / policy that would correspond to the incorrectly configured section of the Policies.xml. For example, if the error appears when searching for a Database Device, then the error is most likely in the Database Device section of the Policies.xml.
Additional Information
Details
SYMPTOM:
When using the Search field in PVWA or when trying to add a new password object, the following error message is shown:
"Item has already been added. Key in dictionary."
PROBLEM:
This error will appear when the policies.xml contains a certain property or Policy ID more than once. For example, if a user added a required or optional property to one of the policies and this property already exists higher in the XML hierarchy (e.g.: in the "Operating System" section).
SOLUTION:
Remove any duplicate properties, or revert to a previous version.
To check for duplicates, you can search the Policies.xml file for custom properties or new Policies you know you've added. The Policies.xml file is located in the PVWAConfig Safe.
Additional Information:
Always make a backup of any XML file before modifying it. The error will appear when the user is performing an operation on an object / policy that would correspond to the incorrectly configured section of the Policies.xml. For example, if the error appears when searching for a Database Device, then the error is most likely in the Database Device section of the Policies.xml.