# Fault - VmAlreadyExistsInDatacenter(vim.fault.VmAlreadyExistsInDatacenter)

Thrown by
  MoveIntoFolder_Task
Extends
  InvalidFolder
See also
  HostSystem, VirtualMachine
Since
  vSphere API 4.0

## Fault Description

Fault thrown when moving a standalone host between datacenters, and one or more of the virtual machines registered on the host are already registered to hosts in the target datacenter.

Properties

Name | Type | Description
--- | --- | ---
host | ManagedObjectReference to a HostSystem | The target host.
hostname | xsd:string | Name of the target host.
vm | ManagedObjectReference[] to a VirtualMachine[] | Virtual machines in the target datacenter which have the same registration information as those belonging to the target host.
Properties inherited from InvalidFolder
target
Properties inherited from VimFault
None
Properties inherited from MethodFault
faultCause, faultMessage

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="VmAlreadyExistsInDatacenter"> <complexContent> <extension base="vsan:InvalidFolder"> <sequence> <element name="host" type="vsan:ManagedObjectReference"/> <element name="hostname" type="xsd:string"/> <element name="vm" type="vsan:ManagedObjectReference" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>