problem in exchange 2016

bahar j 1 Reputation point
2020-03-16T20:16:05.9+00:00

Hi
I have problem when i install the exchange 2016 cu 15, last year i install and then remove exchange recently install again and stop in step 9
i copy the error

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)".

@bahar j

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,697 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-03-16T20:36:31.577+00:00

    QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.

    https://social.technet.microsoft.com/Forums/office/en-US/home?category=exchangeserver

    (please don't forget to mark helpful replies as answer)

    0 comments No comments