Unable to add Virtual Machines (VM) to a Machine Creation Services (MCS) catalog.
The following message appears in the logs:
"Xendesktop Management Console:1:1: [43] Script GetCatalogTaskScript(579): System.ArgumentException: An item with the same key has already been added."
Complete the following steps:
Check the Actions tab and clear it.
If the Action tab is empty, then open the PowerShell console from the PowerShell Tab.
Run Get-BrokerCatalog to see if any Metadata information is present for the Catalog that is having issues adding new machines. Check the MetadataMap.
Follow these steps:
Get-brokerCatalog
$s = Get-BrokerCatalog
Remove-BrokerCatalogMetadata –InputObject $s –Name “[Metadata information]”
Note: Copy MetadataMap from Step 3 and paste into [Metadata Information].
Exit and open a new powershell session and run Get-BrokerCatalog the selected Metadata information should have been removed.
There is a Catalog whose MetadataMap contains TaskData keys tied to a task holding duplicate nonterminatingErrors for either Accounts or Machines.