Below is error details and I also attached setup logs
[03/23/2021 12:45:49.0244] [1] [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.Data.Directory.SystemConfiguration.TenantConfigurationCacheableItem1.TryRunADOperation(ADOperation operation, Boolean throwExceptions) at Microsoft.Exchange.Data.Directory.SystemConfiguration.TenantConfigurationCacheableItem
1.Initialize(OrganizationId organizationId, CacheNotificationHandler cacheNotificationHandler, Object state)
at Microsoft.Exchange.Data.Directory.SystemConfiguration.TenantConfigurationCache1.InitializeAndAddPerTenantSettings(OrganizationId orgId, Boolean allowExceptions, TSettings& perTenantSettings, Object state) at Microsoft.Exchange.Data.Directory.SystemConfiguration.TenantConfigurationCache
1.TryGetValue(OrganizationId orgId, Boolean allowExceptions, TSettings& perTenantSettings, Boolean& hasExpired, Object state)
at Microsoft.Exchange.Data.Directory.SystemConfiguration.TenantConfigurationCache1.GetValue(OrganizationId orgId) at Microsoft.Exchange.Management.RecipientTasks.GetMailbox.ConvertDataObjectToPresentationObject(IConfigurable dataObject) at Microsoft.Exchange.Configuration.Tasks.GetRecipientObjectTask
2.WriteResult(IConfigurable dataObject)
at Microsoft.Exchange.Configuration.Tasks.GetTaskBase1.WriteResult[T](IEnumerable
1 dataObjects)
at Microsoft.Exchange.Configuration.Tasks.GetTaskBase1.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.GetObjectWithIdentityTaskBase
2.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.GetRecipientObjectTask2.InternalProcessRecord() at Microsoft.Exchange.Management.RecipientTasks.GetRecipientWithAddressListBase
2.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".