# Fault - DuplicateName(vim.fault.DuplicateName)

Thrown by
  AddCustomFieldDef, AddDVPortgroup_Task, AddHost_Task, AddStandaloneHost_Task, CreateAlarm, CreateCluster, CreateClusterEx, CreateDatacenter, CreateDVPortgroup_Task, CreateDVS_Task, CreateFolder, CreateLocalDatastore, CreateNasDatastore, CreateObjectScheduledTask, CreateProfile, CreateResourcePool, CreateScheduledTask, CreateStoragePod, CreateVApp, CreateVM_Task, CreateVmfsDatastore, CreateVvolDatastore, ImportVApp, MoveInto_Task, MoveIntoFolder_Task, MoveIntoResourcePool, ReconfigureAlarm, ReconfigureDVPortgroup_Task, ReconfigureDvs_Task, ReconfigureScheduledTask, ReconfigVM_Task, RegisterVM_Task, Rename_Task, RenameCustomFieldDef, RenameDatastore, UpdateClusterProfile, UpdateConfig, UpdateHostProfile, UpdateScsiLunDisplayName, UpdateVAppConfig
Extends
  VimFault

## Fault Description

A DuplicateName exception is thrown because a name already exists in the same name space.

Properties

Name | Type | Description
--- | --- | ---
name | xsd:string | The name that is already bound in the name space.
object | ManagedObjectReference | Managed object that already holds the name.
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="DuplicateName"> <complexContent> <extension base="vsan:VimFault"> <sequence> <element name="name" type="xsd:string"/> <element name="object" type="vsan:ManagedObjectReference"/> </sequence> </extension> </complexContent> </complexType>