Error: "Unable to retrieve enhanced replication mappings data""A Runtime error occurred in the vSphere Replication Management Server. Exception deails: 'Duplicate key host-#### (attempted merging values 30004.0 and 30004.0)'.
"Unable to reverse replication for the virtual machine 'vm_name'. A runtime error occurred in the vSphere Replication Management Server. Exception details: 'Duplicate key host-## (attempted merging values com.vmware.hms.db.entities.HbrServerEntity: MoId = HBRSRV-44fd0565-ace4-448b-b0b8-######### and com.vmware.hms.db.entities.HbrServerEntity: MoId = HBRSRV-e563cd03-fe0a-40d8-807e-#########)'. The operation is not allowed in the current state."
hms.log confirms that the workflow fails because multiple vSphere Replication Server entries exist for the same ESXi host, resulting in a duplicate key condition during replication processing.hms.log
For VLSR 9.0.3 and higher /var/log/vmware/hms/hms.####.log####-##-## ##:##:##.### ERROR response.filter.I18nActivationResponseFilter [tcweb-2] (..hms.fault.ExceptionToFaultConverter) {operationID=40b41651-d19d-49d7-9652-0bc9aca88478-reprotect:mx:gn:m4-HMS-1393195} [] | Fault conversion needed. Method 'getReverseReplicationInfo' cannot throwcom.vmware.vim.binding.vim.fault.InvalidState: Duplicate key host-## (attempted merging values com.vmware.hms.db.entities.HbrServerEntity: MoId = HBRSRV-44fd0565-ace4-448b-b0b8-######## and com.vmware.hms.db.entities.HbrServerEntity: MoId = HBRSRV-e563cd03-fe0a-40d8-807e-########)
The issue is caused by a data integrity collision within the vSphere Replication embedded database (vrmsdb), where stale, orphaned metadata records from previously decommissioned hypervisor hosts or replica servers remain trapped in the hbrserverentity and hbrtagentity lookup tables.
When individual compute nodes (replication endpoints) are removed from a vCenter inventory or decommissioned, the Replication appliance should systematically clean up all corresponding database records to maintain environment consistency. If an unexpected service shutdown, a rapid execution trace race condition, or an improper host removal occurs, these rows can persist as detached "ghost" definitions.
If the symptoms and log entries described in this article match your environment, and the cause has been confirmed, contact Broadcom Support for assistance. The resolution requires validation of the environment and application of the appropriate corrective action.