Can't create contacts by using the directory service in SharePoint


When you try to configure incoming email by using advanced configuration to write contacts and distribution groups to an organizational unit (OU) in Active Directory, you encounter an error. When this error occurs, the following stack is generated in the Unified Logging Service (ULS):

[Date and Time] w3wp.exe (SP:0x32C8) 0x1F4C SharePoint Foundation Runtime tkau Unexpected
Microsoft.SharePoint.SPException: Error in the application.
at Microsoft.SharePoint.SPList.UpdateDirectoryManagementService(String oldAlias, String newAlias)
at Microsoft.SharePoint.SPList.Update(Boolean bFromMigration)
at Microsoft.SharePoint.ApplicationPages.EmailSettingsPage.SubmitButton_Click(Object sender, EventArgs args)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


This problem may occur if Microsoft SharePoint is installed in a forest that was not extended by the Microsoft Exchange schema. In this situation, the SharePoint directory service tries to create mail-enabled contacts by using Exchange attributes. However, these attributes do not exist unless the schema of the forest has been extended by Exchange.


To resolve this issue, extend the schema with Exchange in the resource forest where SharePoint is installed. By extending the schema, the missing mail attributes are added, and then SharePoint can successfully create contacts by using the directory service.  

More Information

To determine whether this issue has occurred, capture a network trace, and filter on the LDAP traffic. In this scenario, the LDAP AddRequest element returns nine attributes. However, Add Response returns a "No Such Attribute" error.

For an illustration of this behavior, see the following:

//Add Request from SharePoint:

321 [Date and Time] 7.5727794 LDAPSASLBuffer LDAPSASLBuffer:BufferLength: 462, AuthMechanism: GSS-SPNEGO {LDAP:49, TCP:48, IPv4:40}

AddRequest: Entry: CN=Jon Doe,OU=SP,DC=contoso,DC=com

Attributes: 9 Partial Attributes
PartialAttribute: givenName=( Jon)
PartialAttribute: sn=( Doe)
PartialAttribute: displayName=( Jon Doe)
PartialAttribute: TargetAddress=(
PartialAttribute: mail=(
PartialAttribute: MAPIRecipient=( FALSE )
PartialAttribute: InternetEncoding=( 1310720 )
PartialAttribute: mailNickname=( JonDoe)
PartialAttribute: objectClass=( contact )

//Response from the server:  

322 [Date and Time] 7.5729991 LDAPSASLBuffer LDAPSASLBuffer:BufferLength: 148, AuthMechanism: GSS-SPNEGO {LDAP:49, TCP:48, IPv4:40}
Ldap: Add Response, MessageID: 31, Status: No Such Attribute
LDAPMessage: Add Response, MessageID: 31
ErrorMessage: 00000057: LdapErr: DSID-0C090D11, comment: Error in attribute conversion operation, data 0, v23f0

Article ID: 2934141 - Last Review: 6 May 2014 - Revision: 1