question

PABLO-0960 avatar image
0 Votes"
PABLO-0960 asked PABLO-0960 answered

Error upgrading exchange 2013 to cu23.

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.DataAccessTask`1.Validate(TDataObject dataObject)
at Microsoft.Exchange.Configuration.Tasks.SetTaskBase`1.InternalValidate()
at Microsoft.Exchange.Configuration.Tasks.SetRecipientObjectTask`3.InternalValidate()
at Microsoft.Exchange.Management.Common.SetMailEnabledRecipientObjectTask`3.InternalValidate()
at Microsoft.Exchange.Management.RecipientTasks.SetUserBase`2.InternalValidate()
at Microsoft.Exchange.Management.RecipientTasks.SetMailboxBase`2.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)".

office-exchange-server-administrationoffice-exchange-server-mailflowoffice-exchange-server-connectivity
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PABLO-0960 avatar image
0 Votes"
PABLO-0960 answered ZhengqiLou-MSFT commented

@ZhengqiLou-MSFT

All 3 are null


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

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PABLO-0960 ,

Please first make the homeMDB value right(copy the correct ones).
Then you can recreate the missed SystemMailbox: Re-create the Microsoft Exchange organization mailbox for OABs

After all these done, check the update. If the error still happens, you could consider recreate all system mailboxes.

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 Votes 0 ·

Hi @PABLO-0960 ,

Do the suggestions above help? If the issue has been resolved, please click “Accept as answer” to mark helpful reply as an answer, this will make answer searching in the forum easier and be beneficial to other community members as well. If not, please fell free to post your questions and I will go on following XD
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 Votes 0 ·
ZhengqiLou-MSFT avatar image
0 Votes"
ZhengqiLou-MSFT answered

Hi @PABLO-0960 ,

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PABLO-0960 avatar image
0 Votes"
PABLO-0960 answered

This is what I got.

SystemMailbox{1f05a927-d349-42cf-a6a6-f5aea5feab7c}
WARNING: The object QUALITY.LOCAL/Users/SystemMailbox{1f05a927-d349-42cf-a6a6-f5aea5feab7c} has been corrupted, and
it's in an inconsistent state. The following validation errors happened:
WARNING: Database is mandatory on UserMailbox.
WARNING: Database is mandatory on UserMailbox.
FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042
WARNING: The object QUALITY.LOCAL/Users/FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 has been corrupted, and
it's in an inconsistent state. The following validation errors happened:
WARNING: Database is mandatory on UserMailbox.
WARNING: Database is mandatory on UserMailbox.
SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c} Mailbox Database 0062776415
SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}
WARNING: The object QUALITY.LOCAL/Users/SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9} has been corrupted, and
it's in an inconsistent state. The following validation errors happened:
WARNING: Database is mandatory on UserMailbox.
WARNING: Database is mandatory on UserMailbox.
Migration.8f3e7716-2011-43e4-96b1-aba62d229136 Mailbox Database 0062776415

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ZhengqiLou-MSFT avatar image
0 Votes"
ZhengqiLou-MSFT answered

Hi @PABLO-0960 ,

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PABLO-0960 avatar image
0 Votes"
PABLO-0960 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.