When configuring the replication for the virtual machine from Prod to DR, the validation failed with the error "Some of the selected virtual machines are not in a valid state for replication."
When checking the replication status during the validation it says "Already configured to VM-Name"
On the vSphere replication configuration wizard, you will see the below validation error.
vSphere Replication 8.8
vSphere Replication 9.0
This issue would occur when the VM was enabled with replication from Prod to DR and the replication was broken or the VM was force stopped where the STALE entry was left on the replication servers.
When verifying the replication status for the VM on both the primary and DR site, you would see the status error as below.
In order to resolve the issue we need to verify and remove the STALE entries from both Primary and DR site.
Alternatively, you can use the Managed Object Browser (MOB) of the vSphere Replication Management server to delete the orphaned replication. Use steps 1 to 6 of KB to remove the orphaned object from MOB