Getting error to install Exchange 2019 CU9

Al Amran 326 Reputation points
2021-03-21T10:59:18.73+00:00

Hi
I am getting below error, when I am trying to install the exchange 2019 CU9 into our current Exchange 2013 CU23 environment,

Error:
The following error was generated when "$error.Clear();
if (!$RoleIsDatacenter -and !$RoleIsDatacenterDedicated)
{
$mailboxId = [Microsoft.Exchange.Management.Migration.MigrationService.Batch.MigrationBatchIdParameter]::MigrationMailboxName;
$dispName = "Microsoft Exchange Migration";
$mbxs = @(Get-Mailbox -Arbitration -DomainController $RoleDomainController -Filter {Name -eq $mailboxId});
$migrationMailbox = $null;

   if ($mbxs.Length -eq 0)  
   {  
   Write-ExchangeSetupLog -Info ("Retrieving mailbox databases on Server=$RoleFqdnOrName.");  
   $dbs = @(Get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);  
   if ($dbs.Length -ne 0)  
   {  
   Write-ExchangeSetupLog -Info ("Retrieving users with Name=$mailboxId.");  
   $arbUsers = @(Get-User -Filter {Name -eq $mailboxId} -IgnoreDefaultScope -ResultSize 1);  
   if ($arbUsers.Length -ne 0)  
   {  
   Write-ExchangeSetupLog -Info ("Enabling mailbox $mailboxId.");  
   $migrationMailbox = Enable-Mailbox -Arbitration -Identity $arbUsers[0] -DisplayName $dispName -database $dbs[0].Identity;  
   }  
   }  
   }  
   else  
   {  
   $migrationMailbox = $mbxs[0];  
   }  
   # Set the Organization Capabilities and quotas needed for this mailbox  
   if ($migrationMailbox -ne $null)  
   {  
   Set-Mailbox -Arbitration -Identity $migrationMailbox -ProhibitSendReceiveQuota 300MB -ProhibitSendQuota 300MB -IssueWarningQuota 150MB -RecoverableItemsQuota 30GB -RecoverableItemsWarningQuota 20GB -UseDatabaseQuotaDefaults $false -SCLDeleteEnabled $false -SCLJunkEnabled $false -SCLQuarantineEnabled $false -SCLRejectEnabled $false -HiddenFromAddressListsEnabled $true -DisplayName $dispName -Management:$true -Force;  
   }  
   else  
   {  
   Write-ExchangeSetupLog -Info ("Cannot find migration mailbox with name=$mailboxId.");  
   }  
   }  
 " was run: "Microsoft.Exchange.Data.DataValidationException: Database is mandatory on UserMailbox.".  

Error:
The following error was generated when "$error.Clear();
if (!$RoleIsDatacenter -and !$RoleIsDatacenterDedicated)
{
$mailboxId = [Microsoft.Exchange.Management.Migration.MigrationService.Batch.MigrationBatchIdParameter]::MigrationMailboxName;
$dispName = "Microsoft Exchange Migration";
$mbxs = @(Get-Mailbox -Arbitration -DomainController $RoleDomainController -Filter {Name -eq $mailboxId});
$migrationMailbox = $null;

   if ($mbxs.Length -eq 0)  
   {  
   Write-ExchangeSetupLog -Info ("Retrieving mailbox databases on Server=$RoleFqdnOrName.");  
   $dbs = @(Get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);  
   if ($dbs.Length -ne 0)  
   {  
   Write-ExchangeSetupLog -Info ("Retrieving users with Name=$mailboxId.");  
   $arbUsers = @(Get-User -Filter {Name -eq $mailboxId} -IgnoreDefaultScope -ResultSize 1);  
   if ($arbUsers.Length -ne 0)  
   {  
   Write-ExchangeSetupLog -Info ("Enabling mailbox $mailboxId.");  
   $migrationMailbox = Enable-Mailbox -Arbitration -Identity $arbUsers[0] -DisplayName $dispName -database $dbs[0].Identity;  
   }  
   }  
   }  
   else  
   {  
   $migrationMailbox = $mbxs[0];  
   }  
   # Set the Organization Capabilities and quotas needed for this mailbox  
   if ($migrationMailbox -ne $null)  
   {  
   Set-Mailbox -Arbitration -Identity $migrationMailbox -ProhibitSendReceiveQuota 300MB -ProhibitSendQuota 300MB -IssueWarningQuota 150MB -RecoverableItemsQuota 30GB -RecoverableItemsWarningQuota 20GB -UseDatabaseQuotaDefaults $false -SCLDeleteEnabled $false -SCLJunkEnabled $false -SCLQuarantineEnabled $false -SCLRejectEnabled $false -HiddenFromAddressListsEnabled $true -DisplayName $dispName -Management:$true -Force;  
   }  
   else  
   {  
   Write-ExchangeSetupLog -Info ("Cannot find migration mailbox with name=$mailboxId.");  
   }  
   }  
 " 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.SetUserBase3.InternalValidate() at Microsoft.Exchange.Management.RecipientTasks.SetMailboxBase3.InternalValidate()
at Microsoft.Exchange.Management.RecipientTasks.SetMailbox.InternalValidate()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".

We have checked that. Arbitration and Migration Mailbox exists with database.

79889-image.png

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,116 questions
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,284 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Al Amran 326 Reputation points
    2021-03-31T07:17:01.38+00:00

    @Yuki Sun-MSFT

    Sorry for the late response.

    I had checked the homeMDB attribute of the migration mailbox is identical to the value of homeMDB for the other arbitration mailboxes. As you suggested, I had moved the arbitration mailboxes to another database but the issue persisted.

    Exchange 2019 CU9 installation issue is resolved after 4 days of tiresome troubleshooting. I have found that the issue was Public Folder Mailbox which database is not exist. After setting the database, the issue is resolved.

    Please someone accept this answer and upvote it if this answer is helpful.

    1 person found this answer helpful.

  2. Andy David - MVP 139.8K Reputation points MVP
    2021-03-21T12:08:02.327+00:00

    Did you run each Forest Prep Step Individually?

    If not, try that:

    https://learn.microsoft.com/en-us/exchange/plan-and-deploy/prepare-ad-and-domains?view=exchserver-2019

    Run each step separately:  
    

    Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareSchema
    Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD
    Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAllDomains


  3. Yuki Sun-MSFT 40,646 Reputation points
    2021-03-22T06:14:47+00:00

    Hi @Al Amran ,

    Please ensure that all the Exchange Server prerequisites have been installed and it's also recommended to follow the best practices listed here when installing the Exchange 2019 CU9.

    Besides, as regards to the error message you shared above, I'd suggest trying to recreate the Microsoft Exchange Migration mailbox and see if there would be any improvement:
    1.Remove the existent migration system mailbox via ADUC > CN=Users:
    79960-1.jpg
    2.Run the Get-Mailbox -Arbitration command again to verify that it's really removed. Then run the command below (from the correct installation media by the way) to recreate the Arbitration Mailbox:

    Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms     
    

    3.Run the following command in Exchange Management Shell, :

    Enable-Mailbox -Arbitration -Identity "Migration.8f3e7716-2011-43e4-96b1-aba62d229136"  
    Set-Mailbox "Migration.8f3e7716-2011-43e4-96b1-aba62d229136" -Arbitration -Management:$True -Force  
    

    If an Answer 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.