Monday, April 13, 2009

The DisplayName property contains leading or trailing whitespace, which must be removed.

Exchange mixed environment (Exchange 2003 & 2007). Move mailbox reported failure with the following message:

Mailbox for user Failed

Error:
The Name property contains leading or trailing whitespace, which must be removed.




For some AD accounts (Mailboxes on 2003), you may notice the following when "Mailbox" is clicked in Exchange Management Console (Exchange 2007).

WARNING: Object DOMAIN.COM/OU/USER, has been corrupted and it is in an inconsistent state. The followingvalidation errors have occurred:WARNING: The DisplayName property contains leading or trailing whitespace, which must be removed.


Solution:

run the following command from Exchange 2007 management Shell:

get-mailbox -identity USER Foreach { Set-Mailbox -Identity $_.Identity -DisplayName $_.DisplayName.Trim() }

substitute the USER with the problematic mailbox user.

1 comment:

  1. I have heard about another way of recover corrupted data in mssql server. Besides, you can visit my blogs at: http://daspeac.livejournal.com/ or http://daspeac.blogspot.com/ where I’m trying to share my experience with regard to data corruption issues

    ReplyDelete