# Fault - NoActiveHostInCluster(vim.fault.NoActiveHostInCluster)

Thrown by
  CheckCompatibility_Task, 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:pbm="urn:pbm" name="NoActiveHostInCluster"> <complexContent> <extension base="pbm:InvalidState"> <sequence> <element name="computeResource" type="pbm:ManagedObjectReference"/> </sequence> </extension> </complexContent> </complexType>