# Fault - NoActiveHostInCluster(vim.fault.NoActiveHostInCluster)

Thrown by
  MigrateVM_Task, ValidateMigration
Extends
  InvalidState
See also
  ComputeResource

## Fault Description

A NoActiveHostInCluster fault is thrown when there is no host in a valid state in the given compute resource to perform a specified operation. This can happen, for example, if all the hosts are disconnected or in maintenance mode.

Properties

Name | Type | Description
--- | --- | ---
computeResource | ManagedObjectReference to a ComputeResource | The compute resource that does not have any active hosts.
Properties inherited from InvalidState
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="NoActiveHostInCluster"> <complexContent> <extension base="vsan:InvalidState"> <sequence> <element name="computeResource" type="vsan:ManagedObjectReference"/> </sequence> </extension> </complexContent> </complexType>