PVWA Fails to load: An unexpected error occurred. Click here to return to the home page

PVWA Fails to load: An unexpected error occurred. Click here to return to the home page

147
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 12:56 PM


Symptom


When trying to access the PVWA the following error message is returned.

An unexpected error occurred. Click here to return to the home page
Server error message: An item with the same key has already been added


Environment


10.10;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Privilege Cloud Web Portal PVWA

Cause


This is caused by a duplication of one or more Policy ID’s within the Policies.xml. It usually arises when an existing policy has been copied but the Policy ID not modified in the replica, resulting in a duplicate entry.

Resolution


Please follow the below to resolve the problem:
  1. Log into the Vault via the PrivateArk Client as the Administrator user (or any user who is a member of the Vault Admins group)
  2. Open the safe PVWAConfig, highlight the file, hold down the SHIFT key and right-click to choose ‘Open With’
  3. Open the file with a text editor – or preferably an xml editor like Notepad++
  4. Search the contents of this file for a duplicate entry of a Policy ID, which will be in the format of: <Policy ID="CyberArk"…
  5. Remove or modify the duplicate entry to be a unique ID, save the changes, and return the file to the safe.
  6. Restart IIS on the applicable Web Server(s) for the changes to take immediate effect.


Additional Information


Details

SYMPTOM:

When trying to access the PVWA the following error message is returned.

An unexpected error occurred. Click here to return to the home page

Server error message: An item with the same key has already been added

 

PROBLEM:

This is caused by a duplication of one or more Policy ID’s within the Policies.xml. It usually arises when an existing policy has been copied but the Policy ID not modified in the replica, resulting in a duplicate entry.

 

SOLUTION:

Please follow the below to resolve the problem:

1.    Log into the Vault via the PrivateArk Client as the Administrator user (or any user who is a member of the Vault Admins group)

2.    Open the safe PVWAConfig, highlight the file, hold down the SHIFT key and right click to choose ‘Open With’

3.    Open the file with a text editor – or preferably an xml editor like Notepad++

4.    Search the contents of this file for a duplicate entry of a Policy ID, which will be in the format of: <Policy ID="CyberArk"…

5.    Remove or modify the duplicate entry to be a unique ID, save the changes and return the file to the safe.

6.    Restart IIS on the applicable Web Server(s) for the changes to take immediate effect.

 




Actions
  • Print
  • Copy Link

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