Database is mandatory on UserMailbox. Property Name: Database error

Description

You get the following error when trying to install "Exchange 2010 SP1" on a server with Exchange 2010 installed:

The following error was generated when "$error.Clear();
if ($RoleIsDatacenter -ne $true)
{
if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
{
# upgrade the discovery mailboxes to R5 version, this will fix the RecipientDisplayType property of the discovery mailbox which was wrong in R4.
get-mailbox -RecipientTypeDetails DiscoveryMailbox -DomainController $RoleDomainController | where {$_.IsValid -eq $false} | set-mailbox -DomainController $RoleDomainController
$name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
$dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
$mbxs = @( get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
if ( $mbxs.length -eq 0)
{
$dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
if($dbs.Length -ne 0)
{
$mbxUser = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
if ($mbxUser.Length -ne 0)
{
enable-mailbox -Discovery -identity $mbxUser[0] -DisplayName $dispname -database $dbs[0].Identity;
}
}
}
}
else
{
write-exchangesetuplog -info "Skipping creating Discovery Search Mailbox because of insufficient permission."
}
}
" was run: "Database is mandatory on UserMailbox. Property Name: Database".



Database is mandatory on UserMailbox. Property Name: Database

Click here for help... http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.141).aspx?v=14.1.218.11&e=ms.exch.err.Ex88D115&l=0&cl=cp

When you try to run Get-Mailbox from a powershell window, you see:
Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
DiscoverySearchMailbox... DiscoverySearchMa... ks-xch 50 GB (53,687,091,200 bytes)
WARNING: The object domain.local/Users/DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852} has bee
corrupted, and it's in an inconsistent state. The following validation errors happened:
WARNING: Database is mandatory on UserMailbox.
WARNING: The property value you specified, "16", isn't defined in the Enum type "Nullable`1".
WARNING: Database is mandatory on UserMailbox.



Solution

If it's the "DiscoverySearchMailbox" mailbox and you don't need it, you can use the Disable-Mailbox command to disable it since the SP1 installation will re-create it anyway:

Disable-Mailbox -identity "DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}"

(Change the GUID [D919BA05-46A6-415f-80AD-7E09334BB852] to your own GUID)

Affected software:

Microsoft Exchange 2010 SP1




Comments:

Comment #1 from Roy P [Username: Guest] at 05/11/2010 10:45
Thx!! This problem gave me a headage last night, but this solution solved the problem. Thanks a lot.
Comment #2 from Dan [Username: Guest] at 25/11/2010 18:19
My question is how do you change the GUID and relink it to the DB for discovery to work again.
Comment #3 from Kobi Shmueli [Username: Kobi_S] at 26/11/2010 17:40
Dan, you can do something like:
New-Mailbox -identity "DiscoverySearchMailBox" -discovery -userprincipalname "discoverysearch@domain.com"
Comment #4 from Powerforce [Username: Guest] at 02/12/2010 17:25
Many times thanks, was working on this problem 3 days! and you solution solved the problem!
Comment #5 from Romeo [Username: Guest] at 02/08/2011 10:48
Thank you very much. I solved my problem with mailbox role installation. thx again
Comment #6 from Neela Lohit [Username: Guest] at 11/11/2011 20:34
Thank you very much.... i was banging my head from 6 hours. at last i could make it.. thanks a lot
Comment #7 from Andy [Username: Guest] at 09/02/2012 21:29
I had this - all you have to do is change the alias on the mailbox to something without foreign characters in. Mine had {} in it and once I took those out worked fine.
Comment #8 from Hani [Username: Guest] at 22/03/2012 08:33
This helped, thanks a lot
Comment #9 from BoomSchtick [Username: Guest] at 26/06/2012 08:03
This is also an issue with going from RTM to SP2. Worked great for me!

Thanks!
Comment #10 from BoomSchtick [Username: Guest] at 27/06/2012 07:26
This is also an issue with going from RTM to SP2. Worked great for me!

Thanks!
Comment #11 from BoomSchtick [Username: Guest] at 27/06/2012 07:27
This is also an issue with going from RTM to SP2. Worked great for me!

Thanks!
Comment #12 from Cmot [Username: Guest] at 23/11/2012 03:11
What more can I say...Thank you!
Comment #13 from zappawo [Username: Guest] at 11/04/2013 11:27
it still don't work for me because i need the mailbox
Comment #14 from Daniel [Username: Guest] at 27/10/2013 22:56
I'm sooooo lucky I found this. The Microsoft Article had me going through hoops and I figured there has got to be a better way. So in short IT WORKED!! Thanks!


Add new comment
Name:
Anti-Bots verification code (just write 1234):