When attempting to configure or reconfigure replication for a virtual machine using vSphere Replication (VR) the task fails with the following error message:
“There is one or more pre-existing .vmx files into the replication target vSAN namespace, where the .vmx file of the recovered VM must be created. To avoid conflict during recovery, you must manually delete the old .vmx files.”
vCenter Server: 8.0.x
vSphere Replication: 9.0.x
Site Recovery Manager: 9.0.x
Storage: vSAN Datastore (Target Site)
This issue occurs when a previous replication for the same VM was removed from Source Site but the target directory on the destination vSAN datastore was not fully deleted.
Even if the replication is no longer visible in the vSphere Replication UI, stale files (specifically the .vmx or configuration files) will remain in the DR vSAN Datastore since there was no proper cleanup performed during the VM Replication removal state.
To resolve this issue, you must manually remove the stale configuration files from the target datastore before re-attempting the replication setup.
Refer : Stop Replicating a Virtual Machine
Step 1: Identify the Stale Directory
Step 2: Clear Stale Files
Step 3: Reconfigure Replication