# 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, InflateDisk_Task, InflateVirtualDisk_Task, InstantClone_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, RetrieveSnapshotDetails, RetrieveSnapshotInfo, RetrieveVStorageInfrastructureObjectPolicy, RetrieveVStorageObject, RetrieveVStorageObjectState, RevertVStorageObject_Task, ScheduleReconcileDatastoreInventory, SearchDatastore_Task, SearchDatastoreSubFolders_Task, SetVirtualDiskUuid, SetVStorageObjectControlFlags, ShrinkVirtualDisk_Task, UpdateVAppConfig, UpdateVirtualMachineFiles_Task, UpdateVStorageInfrastructureObjectPolicy_Task, UpdateVStorageObjectCrypto_Task, UpdateVStorageObjectPolicy_Task, UpdateVVolVirtualMachineFiles_Task, VCenterUpdateVStorageObjectMetadataEx_Task, VslmAttachDisk_Task, VslmClearVStorageObjectControlFlags, VslmCloneVStorageObject_Task, VslmCreateDisk_Task, VslmCreateDiskFromSnapshot_Task, VslmCreateSnapshot_Task, VslmDeleteSnapshot_Task, VslmDeleteVStorageObject_Task, VslmExtendDisk_Task, VslmInflateDisk_Task, VslmQueryChangedDiskAreas, VslmReconcileDatastoreInventory_Task, VslmRegisterDisk, VslmRelocateVStorageObject_Task, VslmRenameVStorageObject, VslmRetrieveSnapshotDetails, VslmRetrieveSnapshotInfo, VslmRetrieveVStorageInfrastructureObjectPolicy, VslmRetrieveVStorageObject, VslmRetrieveVStorageObjectMetadata, VslmRetrieveVStorageObjectMetadataValue, VslmRetrieveVStorageObjectState, VslmRevertVStorageObject_Task, VslmScheduleReconcileDatastoreInventory, VslmSetVStorageObjectControlFlags, VslmSyncDatastore, VslmUpdateVStorageInfrastructureObjectPolicy_Task, VslmUpdateVstorageObjectCrypto_Task, VslmUpdateVStorageObjectMetadata_Task, VslmUpdateVstorageObjectPolicy_Task, VStorageObjectCreateSnapshot_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:vslm="urn:vslm" name="InvalidDatastore"> <complexContent> <extension base="vslm:VimFault"> <sequence> <element name="datastore" type="vslm:ManagedObjectReference" minOccurs="0"/> <element name="name" type="xsd:string" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>