Microsoft KB Archive/286760

{|
 * width="100%"|

BUG: Error 0x8007202F Constraint Violation Occurs When Adding a Value for the Description Property of a User Object

 * }

Q286760

-

The information in this article applies to:


 * Microsoft Active Directory Service Interfaces, version 2.5
 * Microsoft Active Directory Services Interface, System Component
 * Microsoft Active Directory Services Interface, Microsoft Active Directory Client
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server
 * Microsoft Windows 2000 Server

-

SYMPTOMS
When a user attempts to place multiple values into the description property of a user object, one of the following error codes or messages may be generated.

HRESULT returned in Microsoft Visual C++:

Error 0x8007202F (2147950639) Constraint violation

Error description returned in a .vbs file in the Err.Description property of the error object:

Trying to Set Multiple Values into Description

Error returned from ADSI Edit when the Apply button is clicked in the Properties dialog box:

Multiple values were specified for an attribute that can have only one value

The error occurs even though the Active Directory Schema describes the description attribute as a multivalued attribute.

CAUSE
The description property of a user object in the Active Directory must be only a single value. Early in the development process for the 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 given object prevents multiple values from being placed into the property, so the constraint violation error is returned.

RESOLUTION
Place only single values into the description property of an object.

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products that are listed at the beginning of this article.

Steps to Reproduce Behavior
In Microsoft Visual Basic Scripting Edition, perform the following steps:


 * 1) Create a new text document.
 * 2) Add the following lines of code, substituting a valid LDAP ADsPath for a user into the LDAP_PATH string:
 * 3) Save the text file as a file named Test.vbs on the desktop.
 * 4) Use Cscript.exe to execute the VBS file.

The following error message will appear:

Trying to Set Multiple Values into Description

Additional query words: 0x8007202F

Keywords : kbADSI kbOSWin2000 _IK

Issue type : kbbug

Technology : kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000DataServ kbwin2000DataServSearch kbwin2000Serv kbwin2000ServSearch kbwin2000Search kbAudDeveloper kbActiveDirectory kbADSISearch kbWinAdvServSearch kbWinDataServSearch kbADSI250 kbADSISysComp