Error upgrading exchange 2013 to cu23.

PABLO 96 Reputation points
2021-03-22T01:11:30.94+00:00

Error:
The following error was generated when "$error.Clear();
if (($RoleIsDatacenter -ne $true) -and ($RoleIsDatacenterDedicated -ne $true))
{
if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
{
$sysMbx = $null;
$name = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";
$dispname = "Microsoft Exchange";
$mbxs = @( get-mailbox -arbitration -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
if ( $mbxs.length -eq 0)
{
$dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
if ($dbs.Length -ne 0)
{
$arbUsers = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
if ($arbUsers.Length -ne 0)
{
$sysMbx = enable-mailbox -Arbitration -identity $arbUsers[0] -DisplayName $dispname -database $dbs[0].Identity;
}
}
}
else
{
if ($mbxs[0].DisplayName -ne $dispname )
{
set-mailbox -Arbitration -identity $mbxs[0] -DisplayName $dispname -Force;
}
$sysMbx = $mbxs[0];
}

      # Set the Organization Capabilities needed for this mailbox
      if ($sysMbx -ne $null)
      {
      Write-ExchangeSetupLog -Info ("Setting mailbox properties.");
      set-mailbox -Arbitration -identity $sysMbx -UMDataStorage:$true -Force;

      # No RetentionPolicy assigned to E-Discovery arbitration mailbox currently, we need to set it here.
      # This can be remove after BUG(O15#2555914) is fixed.
      if ($sysMbx.RetentionPolicy -eq $null )
      {
      $arbitrationRetentionPolicy = @(Get-RetentionPolicy -DomainController $RoleDomainController | where {$_.Name -eq 'ArbitrationMailbox'});
      set-mailbox -Arbitration -identity $sysMbx -RetentionPolicy $arbitrationRetentionPolicy[0].Identity -Force;
      }
      }
      else
      {
      Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.");
      }
      }
      else
      {
      write-exchangesetuplog -info "Skipping creating Discovery Arbitration Mailbox because of insufficient permission."
      }
      }
    " was run: "Microsoft.Exchange.Data.DataValidationException: Database is mandatory on UserMailbox.".

Error:
The following error was generated when "$error.Clear();
if (($RoleIsDatacenter -ne $true) -and ($RoleIsDatacenterDedicated -ne $true))
{
if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
{
$sysMbx = $null;
$name = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";
$dispname = "Microsoft Exchange";
$mbxs = @( get-mailbox -arbitration -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
if ( $mbxs.length -eq 0)
{
$dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
if ($dbs.Length -ne 0)
{
$arbUsers = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
if ($arbUsers.Length -ne 0)
{
$sysMbx = enable-mailbox -Arbitration -identity $arbUsers[0] -DisplayName $dispname -database $dbs[0].Identity;
}
}
}
else
{
if ($mbxs[0].DisplayName -ne $dispname )
{
set-mailbox -Arbitration -identity $mbxs[0] -DisplayName $dispname -Force;
}
$sysMbx = $mbxs[0];
}

      # Set the Organization Capabilities needed for this mailbox
      if ($sysMbx -ne $null)
      {
      Write-ExchangeSetupLog -Info ("Setting mailbox properties.");
      set-mailbox -Arbitration -identity $sysMbx -UMDataStorage:$true -Force;

      # No RetentionPolicy assigned to E-Discovery arbitration mailbox currently, we need to set it here.
      # This can be remove after BUG(O15#2555914) is fixed.
      if ($sysMbx.RetentionPolicy -eq $null )
      {
      $arbitrationRetentionPolicy = @(Get-RetentionPolicy -DomainController $RoleDomainController | where {$_.Name -eq 'ArbitrationMailbox'});
      set-mailbox -Arbitration -identity $sysMbx -RetentionPolicy $arbitrationRetentionPolicy[0].Identity -Force;
      }
      }
      else
      {
      Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.");
      }
      }
      else
      {
      write-exchangesetuplog -info "Skipping creating Discovery Arbitration Mailbox because of insufficient permission."
      }
      }
    " was run: "Microsoft.Exchange.Data.DataValidationException: Database is mandatory on UserMailbox.

at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target, Boolean reThrow)
at Microsoft.Exchange.Configuration.Tasks.DataAccessTask1.Validate(TDataObject dataObject) at Microsoft.Exchange.Configuration.Tasks.SetTaskBase1.InternalValidate()
at Microsoft.Exchange.Configuration.Tasks.SetRecipientObjectTask3.InternalValidate() at Microsoft.Exchange.Management.Common.SetMailEnabledRecipientObjectTask3.InternalValidate()
at Microsoft.Exchange.Management.RecipientTasks.SetUserBase2.InternalValidate() at Microsoft.Exchange.Management.RecipientTasks.SetMailboxBase2.InternalValidate()
at Microsoft.Exchange.Management.RecipientTasks.SetMailbox.InternalValidate()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,341 questions
0 comments No comments
{count} votes

Accepted answer
  1. PABLO 96 Reputation points
    2021-03-23T10:16:32.013+00:00

    @Xzsssss

    All 3 are null

    SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c} is not in there.


4 additional answers

Sort by: Most helpful
  1. Xzsssss 8,861 Reputation points Microsoft Vendor
    2021-03-22T08:24:48.667+00:00

    Hi @PABLO ,

    We could get some useful message from the errors you posted, like:

    Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.")

    This refers to the error message that will be wrote to the ExchangeSetupLogs.
    Based on my knowledge, this is because something is wrong of the arbitration mailboxes.
    So you could first check them with:

    Get-Mailbox –Arbitration | Select Name,Database  
    

    If it's right, the result will be five databases as this doc described: Recreating arbitration mailboxes
    Or it's like: https://www.petenetlive.com/KB/Article/0001221
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Regards,
    Lou


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Xzsssss 8,861 Reputation points Microsoft Vendor
    2021-03-23T06:06:46.037+00:00

    Hi @PABLO ,

    From the result we could see the following arbitration mailboxes(System mailboxes) are corrupted, so we should first repair them to install the update.

    1. SystemMailbox{1f05a927-d349-42cf-a6a6-f5aea5feab7c}
    2. FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042
    3. SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}

    Please first check it with:

    1. Open ADSI EDIT and connect to default naming context partition.
    2. Expand CN=Users so you'll find the above CN=SystemMailbox and CN=FederatedEmail units, right click the corrupted ones and click Properties.
    3. From the Attribute Editor, find homeMDB, check if it's <not set> or null, if so you could copy the right value from the other system mailbox like SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}.
    4. If the homeMDB values of these system mailboxes are good, you could consider recreate them with Recreating arbitration mailboxes

    After fixed these errors, retry installing the update.

    Regards,
    Lou


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. PABLO 96 Reputation points
    2021-03-26T13:18:38.77+00:00

    Put in a call with Microsoft. The Distinguished name was copied into the homeDB value. After this was done, reran the update and all was good. Thanks for your help.

    0 comments No comments

  4. Carl94580345 31 Reputation points
    2023-06-09T22:46:18.3666667+00:00

    I was getting somewhere wilh this https://learn.microsoft.com/en-us/exchange/security-and-compliance/in-place-ediscovery/delete-and-re-create-default-discovery-mailbox#Overview

    Add-MailboxPermission "DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}" -User "Discovery Management" -AccessRights FullAccess -InheritanceType all
    

    and I got error

    Add-MailboxPermission: The operation couldn't be performed because 'DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}' matches multiple entries.

    this sounds like what stopped the installer.

    0 comments No comments