PVWA - 'Problems During Load' when attempting to open Excel report
Symptom
After running a report in PVWA and attempting to open the resulting .xls file in Excel, the following error appears:-
The log file mentioned in the error contains similar to the following:-
XML PARSE ERROR: Missing end-tagError occurs at or below this element stack:<ss:Workbook><ss:Worksheet><ss:Table><ss:Row><ss:Cell><ss:Data>
Downloading the associated .xml file from the PVWAReports safe and attempting to open with Excel 'As a read-only workbook' will cause an error like this:-
Downloading the report as a csv file will work but the data is likely to be truncated
Environment
11.5;12.2;12.6;13.0;13.2;14.0;14.2;14.4 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access Password Vault Web Access Reports
Cause
The .xml report file contains non-unicode characters. This could be either because of non-unicode characters in account properties (i.e. Chinese/Thai characters etc), or because of a corrupted event entry in the vault database.
Resolution
Open the .xml report file obtained from the PVWAReports safe and use a regex search engine (such as the one that comes with Notepad++) to search for suspected non-unicode characters. The Regex search '[^\x00-\x7F]+' should work for this. An entry like this is likely to be the culprit:-
[mmc.exe, 蓐肃﮸樀肂﮸ewer]
The options are as follows:-
- If the account used in the activity can be seen, check the file categories in the vault via the PrivateArk client to make sure there are no non-unicode characters present
- If the date of the activity can be seen, re-run the report specifying dates after (and before if required) the date of the corrupted activity.
If this is an isolated corruption then the issue should eventually correct once the activity is removed after exceeding the event retention period. If there are many such events, then this needs to be investigated further by Idira support.
Ultimately the report will fail to download as long as it contains an event activity containing non-Unicode characters