PVWA - "Item has already been added. Key in dictionary."

PVWA - "Item has already been added. Key in dictionary."

188
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 13:02 PM


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


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.


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.




Actions
  • Print
  • Copy Link

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