# Fault - DatacenterMismatch(vim.fault.DatacenterMismatch)

Thrown by
  CheckCompatibility_Task, CheckPowerOn_Task, CheckVmConfig_Task
Extends
  MigrationFault
See also
  Datacenter, DatacenterMismatchArgument
Since
  2.0

## Fault Description

The input arguments had entities that did not belong to the same datacenter.

Properties

Name | Type | Description
--- | --- | ---
expectedDatacenter | ManagedObjectReference to a Datacenter | The expected datacenter for the arguments.
invalidArgument | DatacenterMismatchArgument[] | The list of invalid arguments.
Properties inherited from MigrationFault
None
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="DatacenterMismatch"> <complexContent> <extension base="vsan:MigrationFault"> <sequence> <element name="invalidArgument" type="vsan:DatacenterMismatchArgument" maxOccurs="unbounded"/> <element name="expectedDatacenter" type="vsan:ManagedObjectReference"/> </sequence> </extension> </complexContent> </complexType>