PVWA - No system types appear when adding an account

PVWA - No system types appear when adding an account

146
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:00 PM


Symptom


When attempting to add an account from the Accounts Feed page no system types appear:
image.png

The following types of messages may be found in the PVWA.App.Log log file
 
2023-07-20 12:07:43,938 || ERROR    || 14 || user1 || A10CC || 7c57e21e-abcd-44ac-a7e5-326de288885e || PASWS001E Error occurred: An item with the same key has already been added. ||  || 
2023-07-20 12:07:43,938 || DEBUG    || 14 || user1 || A10CC || 7c57e21e-9e32-44ac-a7e5-326de288885e || System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at CyberArk.PasswordVault.PASWebServices.Controllers.Settings.SettingsController.CreateSystemTypesList()
   at CyberArk.PasswordVault.PASWebServices.Controllers.Settings.SettingsController.GetAddAccountSettings()
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
.
.
.
2023-07-20 12:07:43,938 || DEBUG    || 14 || user1 || A10CC || 7c57e21e-abcd-44ac-a7e5-326de288885e || GetAddAccountSettings failed || System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at CyberArk.PasswordVault.PASWebServices.Controllers.Settings.SettingsController.CreateSystemTypesList()
   at CyberArk.PasswordVault.PASWebServices.Controllers.Settings.SettingsController.GetAddAccountSettings()
   at lambda_method(Closure , Object , Object[] )
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)
   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
.
.
.
2023-07-20 12:07:43,938 || WARN     || 14 || user1 || A10CC || 7c57e21e-abcd-44ac-a7e5-326de288885e || GetAddAccountSettings Response:: Code: 500. Content: {"ErrorCode":"CAWS00001E","ErrorMessage":"An item with the same key has already been added."} ||  || SettingsController


Environment


12.2;12.6;13.0;13.2;14.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access

Password Vault Web Access



Cause


This is caused by duplicate 'Device Name' entries in the Policies.xml file. These are the default Device Name entries as seen in the Policies.xml file:-

<Device Name="Application">
<Device Name="Operating System">
<Device Name="Database">
<Device Name="Security Appliance">
<Device Name="Network Device">
<Device Name="Directory">
<Device Name="Remote Access">
<Device Name="Website">
<Device Name="Cloud Service">
<Device Name="Misc">
<Device Name="DevOps">
<Device Name="Imported Platforms">

Note that in the 'Select system type' page, which shows when adding an account, two extra device names appear, namely '*NIX" and "Windows":-
 
image.png

These extra device names are built-in, so if the a line beginning <Device Name="*NIX"> or <Device Name="Windows"> appears in the Policies.xml file, this will also be considered a duplicate and so the error will occur.
 
 


Resolution


  • Check the Policies.xml file and ensure that there are no duplicate "<Device Name=" entries
 
  • If there are policies listed under "<Device Name="*NIX">" or "<Device Name="Windows">", move them to another appropriate Device Name heading and remove the "<Device Name="*NIX">" or "<Device Name="Windows">" sections
  • Run IISReset from the PVWA's or wait for the Policies.xml file to be reloaded automatically by the PVWA (default 20 mins)


Actions
  • Print
  • Copy Link

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