What is the Exchange database mandatory error?
Exchange servers 2016 and 2019 are considered to be the updated versions of the legacy systems and many businesses are migrating to Exchange 2016 and 2019 to take advantage of the new features and stay up to date with security patches. However, when you upgrade Exchange 2013 to 2016 or 2019, you might encounter the following error messages.
The following error was generated when “$error.Clear();
if(($server -eq $null) -and ($RolelsDatacenter -ne $true))
{
Update-RmsSharedIdentity -ServerName $RoleNetBIOSName
}
was run :Microsoft.Exchange.Data.DataValidationException: Database is mandatory on UserMailbox
You might see the following warning message when you navigate to the Exchange admin center (EAC).
The object has been corrupted or isn’t compatible with Microsoft support requirements, and it is in an inconsistent state. The following validation errors happened. Database is mandatory on UserMailbox.
This error is caused when there is no database associated with the usermailbox or when the homeDB attribute in the Active Directory Services is not set. In Exchange 2016 and higher versions a mandatory database is required for all mailboxes and when the database is missing, you might get the error message. A second possible reason is that the Exchange database (EDB) file is corrupted and fails to mount to the Exchange server.
How to resolve the error Exchange database is mandatory on UserMailbox?
You can resolve the error with the following three methods
- Set the HomeMDB attribute in the Active Directory Services Interface
- Move the mailbox to a Database Availability Group (DAG)
- Recover and convert the corrupted EDB to PST with EdbMails