PVWA - 'xxxx' is an unexpected token. Expecting white space. Line xxxx. position xx.

PVWA - 'xxxx' is an unexpected token. Expecting white space. Line xxxx. position xx.

111
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:01 PM


Symptom


In the WebApplication log, there is an error similar to:
EPVDL018E Error loading configuration files: Cred file=<Drive>:\CyberArk\Password Vault Web Access\CredFiles\appuser.ini. Configuration safe=PVWAConfig. Configuration file=Policies.xml. Reason: '<string>' is an unexpected token. Expecting white space. Line <xyz>, position <abc>.


Environment


10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA

Cause


This error suggests that there is a typo in the policies.xml file. You may also see this error for the pvconfiguration.xml file. The "Configuration file=" line will tell you which file is the problem.

In the following example, note that the value 'PSMRec_Safe111' is not expected. The error message provides the line and position of the error within the xml file.
image.png

Using the PrivateArk Client, open the PVWAConfig safe. Open the policies.xml file and review the line in notepad++ (use ctrl+g to go to the line). 
In the example, we can see that line 3070 has been edited and the end of the reconcile link value has been replaced.


Resolution


1. Go into the PVWAConfig safe and right click on the policies.xml file and select Versions.

2. Check the previous versions to see if this file also contains the error. You can do this by clicking Retrieve and save as and saving it locally to review.
*If you have a DR version of this file or a PAReplicate version of this file, it is recommended to compare these versions to ensure accuracy and correctness.

3. Select the appropriate previous version that does not have this error, and is up to date.  Click Make Current Version. This will make this previous version of the file to be the current working version. 

4. Run an IISReset on the PVWA after setting it as the current version.


Actions
  • Print
  • Copy Link

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