# Fault - InvalidDatastore(vim.fault.InvalidDatastore)

Thrown by
  AttachDisk_Task, ChangeOwner, CloneVApp_Task, CloneVM_Task, CloneVStorageObject_Task, ConvertNamespacePathToUuidPath, CopyDatastoreFile_Task, CopyVirtualDisk_Task, CreateChildVM_Task, CreateDirectory, CreateDisk_Task, CreateImportSpec, CreateVirtualDisk_Task, CreateVM_Task, DefragmentVirtualDisk_Task, DeleteDatastoreFile_Task, DeleteDirectory, DeleteFile, DeleteVirtualDisk_Task, DeleteVStorageObject_Task, EagerZeroVirtualDisk_Task, ExtendDisk_Task, ExtendVirtualDisk_Task, FindByDatastorePath, HostCloneVStorageObject_Task, HostCreateDisk_Task, HostDeleteVStorageObject_Task, HostExtendDisk_Task, HostInflateDisk_Task, HostListVStorageObject, HostReconcileDatastoreInventory_Task, HostRegisterDisk, HostRelocateVStorageObject_Task, HostRenameVStorageObject, HostRetrieveVStorageObject, HostRetrieveVStorageObjectState, HostScheduleReconcileDatastoreInventory, ImportUnmanagedSnapshot, ImportVApp, InflateDisk_Task, InflateVirtualDisk_Task, ListVStorageObject, MakeDirectory, MarkAsVirtualMachine, MoveDatastoreFile_Task, MoveVirtualDisk_Task, QueryVirtualDiskFragmentation, QueryVirtualDiskGeometry, QueryVirtualDiskUuid, ReconcileDatastoreInventory_Task, ReconfigVM_Task, RegisterChildVM_Task, RegisterDisk, RegisterVM_Task, ReleaseManagedSnapshot, RelocateVM_Task, RelocateVStorageObject_Task, RenameVStorageObject, RetrieveVStorageObject, RetrieveVStorageObjectState, ScheduleReconcileDatastoreInventory, SearchDatastore_Task, SearchDatastoreSubFolders_Task, SetVirtualDiskUuid, ShrinkVirtualDisk_Task, UpdateVAppConfig, UpdateVirtualMachineFiles_Task, UpdateVVolVirtualMachineFiles_Task, ZeroFillVirtualDisk_Task
Extended by
  DatastoreNotWritableOnHost, InaccessibleDatastore, InvalidDatastorePath
Extends
  VimFault
See also
  Datastore

## Fault Description

An InvalidDatastore exception is thrown if an operation fails because of a problem with the specified datastore. Typically, a subclass of this exception is thrown, indicating a problem such as an inaccessible datastore or an invalid datastore path.

Properties

Name | Type | Description
--- | --- | ---
datastore* | ManagedObjectReference to a Datastore | The datastore that is invalid.
name* | xsd:string | The name of the datastore that is invalid.
Properties inherited from VimFault
None
Properties inherited from MethodFault
faultCause, faultMessage

*May not be present
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="InvalidDatastore"> <complexContent> <extension base="vim25:VimFault"> <sequence> <element name="datastore" type="vim25:ManagedObjectReference" minOccurs="0"/> <element name="name" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>