Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

BUG: An Error 0x8007202F constraint violation occurs when you add a value for the description property of a user object


View products that this article applies to.

Symptoms

When you try to put multiple values in the description property of a user object, you may receive one of the following error messages:
  • HRESULT that is returned in Microsoft Visual C++:
    Error 0x8007202F (2147950639) Constraint violation
  • Error description that is returned in a .vbs file in the Err.Description property of the error object:
    Trying to Set Multiple Values into Description
  • Error message that is returned from Active Directory Service Interfaces (ADSI) Edit when you click Apply in the Properties dialog box:
    Multiple values were specified for an attribute that can have only one value
This problem occurs even though the Active Directory Schema describes the description property as a multivalued attribute.

↑ Back to the top


Cause

The description property of a user object in Active Directory must be only a single value. Early in the development process for Active Directory, the description property was defined in the Active Directory Schema as an attribute that could contain multiple values. However, the implementation of how the attribute is stored on a specific object prevents multiple values from being put in the property. Therefore, the constraint violation error occurs.

↑ Back to the top


Resolution

Put only single values in the description property of an object.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

Steps to reproduce the problem

In Microsoft Visual Basic Scripting Edition, follow these steps:
  1. Create a new text file.
  2. Add the following lines of code to the text file. Replace the LDAP_PATH string with a valid LDAP ADsPath for a user.
    dim oUser
    Wscript.Echo "Binding to a user object"
    Set oUser = GetObject("LDAP_PATH")
    WScript.Echo "Attempting to set multiple values into the description property"
    oUser.Put "description", ARRAY("Description one", "Description Two")
    					
  3. Save the text file on the desktop. Name the text file Test.vbs.
  4. Use Cscript.exe to run the Test.vbs file.
You receive the following error message:
Trying to Set Multiple Values into Description

↑ Back to the top


Keywords: KB286760, kbnofix, kbbug, kbdswadsi2003swept

↑ Back to the top

Article Info
Article ID : 286760
Revision : 5
Created on : 5/19/2005
Published on : 5/19/2005
Exists online : False
Views : 621