ERROR_DS_OBJ_STRING_NAME_EXISTS - 8305 (0x2071)
An attempt was made to add an object to the directory with a name that is already in use.
Updated: Feb 21, 2026
Technical Meaning
The error code ERROR_DS_OBJ_STRING_NAME_EXISTS (8305, 0x2071) indicates that an attempt was made to add a new object to the directory with a name that is already in use. This can occur when attempting to create or modify objects within a directory service such as Active Directory.
Error Details
This error typically arises during operations involving object creation, modification, or renaming where the specified name conflicts with an existing entry in the directory. The exact nature of the conflict depends on the context and type of operation being performed.
Usage Context
This error is relevant to developers working with directory services APIs, particularly those dealing with Active Directory or similar LDAP-based systems. It can also be encountered when using tools that interact with these services.
Developer Interpretation
When encountering this error, it is important to understand the context in which the operation was attempted. The developer should ensure that the object name being used does not already exist within the directory structure. This may involve checking for existing objects or ensuring unique naming conventions are followed.
Related Errors
ERROR_DS_NAME_CONFLICT(8352, 0x2148): Indicates a more general name conflict in the directory.ERROR_DS_OBJECT_ALREADY_EXISTS(8369, 0x2171): Suggests that an object with the specified attributes already exists.
FAQ
Q: What does this error mean?
A: This error indicates that a name conflict was detected when attempting to add or modify an object in the directory. The operation failed because the specified name is already in use.
Q: How can I resolve this issue?
A: Ensure that the object name being used is unique within the directory structure and does not conflict with existing entries.
Summary
The ERROR_DS_OBJ_STRING_NAME_EXISTS error signifies a naming conflict when adding or modifying objects in a directory service. Developers should verify the uniqueness of names to avoid this issue during operations involving Active Directory or similar systems.