PVWA error: Length cannot be less than zero.
105
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 13:03 PM
Symptom
When logging onto the PVWA and when trying to add a new password getting the error message:
"Length cannot be less than zero." Parameter name: length
Also, there are no Policy IDs in the Policy ID drop-down list
Environment
9.10;10.5;10.10;11.1;11.2;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
There are either "non-policy" files or invalid policy files/parameters in one or more of the policy files in the Policies folder in the passwordmanager_info Safe.
Resolution
- If there are any non-policy files in the folder remove them from the folder.
- If not, check which policy file was changed last and remove it to see if it's the one causing the problem. If not move the policy files from the Policies folder to another place (Root folder for example) and add them one by one to check which one is causing the problem. Each time a file is added back to the Policies folder you need to restart the IIS.
Additional Information
Details
SYMPTOM:1) When logging onto the PVWA and when trying to add a new password getting the error message "Length cannot be less than zero." Parameter name: length
2) There are no Policy IDs in the Policy ID drop down list
PROBLEM:
There are either "non-policy" files or invalid policy files / parameters in one or more of the policy files in the Policies folder in the passwordmanager_info Safe.
SOLUTION:
If there are any non-policy files in the folder remove them from the folder.
If not, check which policy file was changed last and remove it to see if it's the one causing the problem. If not move the policy files from the Policies folder to another place (Root folder for example) and add them one by one to check which one is causing the problem. Each time a file is added back to the Policies folder you need to restart the iis.