# Fault - InvalidDatastore(vim.fault.InvalidDatastore)

Thrown by
  AttachDisk_Task, ChangeOwner, ClearVStorageObjectControlFlags, CloneVApp_Task, CloneVM_Task, CloneVStorageObject_Task, ConvertNamespacePathToUuidPath, CopyDatastoreFile_Task, CopyVirtualDisk_Task, CreateChildVM_Task, CreateDirectory, CreateDisk_Task, CreateDiskFromSnapshot_Task, CreateImportSpec, CreateVirtualDisk_Task, CreateVM_Task, DefragmentVirtualDisk_Task, DeleteDatastoreFile_Task, DeleteDirectory, DeleteFile, DeleteSnapshot_Task, DeleteVirtualDisk_Task, DeleteVStorageObject_Task, DeleteVStorageObjectEx_Task, EagerZeroVirtualDisk_Task, ExtendDisk_Task, ExtendVirtualDisk_Task, FindByDatastorePath, HostClearVStorageObjectControlFlags, HostCloneVStorageObject_Task, HostCreateDisk_Task, HostDeleteVStorageObject_Task, HostDeleteVStorageObjectEx_Task, HostExtendDisk_Task, HostInflateDisk_Task, HostListVStorageObject, HostReconcileDatastoreInventory_Task, HostRegisterDisk, HostRelocateVStorageObject_Task, HostRenameVStorageObject, HostRetrieveVStorageInfrastructureObjectPolicy, HostRetrieveVStorageObject, HostRetrieveVStorageObjectMetadata, HostRetrieveVStorageObjectMetadataValue, HostRetrieveVStorageObjectState, HostScheduleReconcileDatastoreInventory, HostSetVStorageObjectControlFlags, HostUpdateVStorageObjectMetadata_Task, HostUpdateVStorageObjectMetadataEx_Task, HostVStorageObjectCreateDiskFromSnapshot_Task, HostVStorageObjectCreateSnapshot_Task, HostVStorageObjectDeleteSnapshot_Task, HostVStorageObjectRetrieveSnapshotInfo, HostVStorageObjectRevert_Task, ImportUnmanagedSnapshot, ImportVApp, IncreaseDirectorySize, InflateDisk_Task, InflateVirtualDisk_Task, InstantClone_Task, IsClusteredVmdkEnabled, ListVStorageObject, MakeDirectory, MarkAsVirtualMachine, MoveDatastoreFile_Task, MoveVirtualDisk_Task, QueryDirectoryInfo, QueryFileLockInfo, QueryVirtualDiskFragmentation, QueryVirtualDiskGeometry, QueryVirtualDiskUuid, ReconcileDatastoreInventory_Task, ReconfigVM_Task, RegisterChildVM_Task, RegisterDisk, RegisterVM_Task, ReleaseManagedSnapshot, RelocateVM_Task, RelocateVStorageObject_Task, RenameVStorageObject, RenameVStorageObjectEx, RetrieveSnapshotDetails, RetrieveSnapshotInfo, RetrieveVStorageInfrastructureObjectPolicy, RetrieveVStorageObject, RetrieveVStorageObjectState, RevertVStorageObject_Task, RevertVStorageObjectEx_Task, ScheduleReconcileDatastoreInventory, SearchDatastore_Task, SearchDatastoreSubFolders_Task, SetVirtualDiskUuid, SetVStorageObjectControlFlags, ShrinkVirtualDisk_Task, UpdateVAppConfig, UpdateVirtualMachineFiles_Task, UpdateVStorageInfrastructureObjectPolicy_Task, UpdateVStorageObjectCrypto_Task, UpdateVStorageObjectPolicy_Task, UpdateVVolVirtualMachineFiles_Task, VCenterUpdateVStorageObjectMetadataEx_Task, VStorageObjectCreateSnapshot_Task, VStorageObjectCreateSnapshotEx_Task, VStorageObjectDeleteSnapshotEx_Task, VStorageObjectExtendDiskEx_Task, VstorageObjectVCenterQueryChangedDiskAreas, ZeroFillVirtualDisk_Task
Extended by
  DatastoreNotWritableOnHost, InaccessibleDatastore, InvalidDatastorePath
Extends
  VimFault
See also
  Datastore
Since
  2.0

## 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>