"The given key was not present in the dictionary" error occurs when adding a machine to the machine catalog using the same name with that of a deleted VM.
----------------------------------------------------------------------------------------------
StudioErrorId : ExceptionThrown
Reason : KeyNotFoundException
Exception : System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
Message : The given key was not present in the dictionary.
Error Source : CitrixMachineCreationService
Sdk Error Message : An exception occurred. The associated message was The given key was not present in the dictionary.
Sdk Error ID : Citrix.XDPowerShell.Status.ExceptionThrown,Citrix.MachineCreation.Sdk.Task.Commands.GetProvTaskCommand
ErrorCategory : NotSpecifie
----------------------------------------------------------------------------------------------
This is a by-designed behavior caused by the internal operating specifications of the Citrix product.
The Citrix product system maintains historical information on previously used computer accounts in its internal site database, causing such behavior of the naming scheme.