Unable to delete exchange database - Duplicate key found in ADSI Edit

Dustin Smith 0 Reputation points
2023-01-24T23:22:20.49+00:00

We recently added a 2019 exchange server to our domain and are now ready to remove the old 2016 server. We have migrated all mailboxes to the 2019 server, and are now trying to delete the last database on the 2016 server. When we do, we get an error

This mailbox database is associated with one or more active MailboxImport requests. To get a list of all MailboxImport requests associated with this database, run Get-MailboxImportRequest | ?{ $_.RequestQueue -eq "<Database ID>" }. To remove a MailboxImport request, run Remove-MailboxImportRequest <Recipient ID\Request Name>.

When we run that command, nothing shows up. Searching the web, came across this article about ADSI Edit:

[https://social.technet.microsoft.com/Forums/ie/en-US/54fd0db4-11d3-421c-92e8-d4050338a907/trouble-removing-2016-mailbox-database?forum=Exch2016Adm

Launching ADSI Edit to look for lingering objects, and I did find one, but I also found something else. Under our exchange organization, we have two objects named "CN-Mailbox Replication". The Rogue MailBoxImportRequest is found under the second one. Do I just delete the rogue record, or should I also remove the entire duplicate set of folders?

User's image

The second set of folders, containing the remaining record, has a weird path as well:

User's image

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
963 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,217 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Aholic Liang-MSFT 13,731 Reputation points Microsoft Vendor
    2023-01-25T09:25:16.5433333+00:00

    Hi @Dustin Smith ,

    Please try creating a new database and moving all users from the old database to it. Then delete again to see if it succeeds.

    If possible, we try not to recommend modifying it in ADSI edit because it is destructive and cannot be undone.

    Here is a similar thread for your reference: Exchange 2013: This mailbox database is associated with one or more active mailboximport / Cannot uninstall exchange (microsoft.com)


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 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


  2. Amit Singh 4,766 Reputation points
    2023-01-27T07:12:23.65+00:00

    At first, one would use the Get-MailboxExportRequest PowerShell command to check if there are any pending mailboxes to be exported or stuck. For more detail - this mailbox database is associated with one or more active mailbox export requests.

    Please Note: Since the web sites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.


  3. Khurram Rahim 1,841 Reputation points
    2023-02-08T19:34:23.0166667+00:00

    You can use the following steps to remove the lingering MailboxImportRequest:

    1. Launch the ADSI Edit tool.
    2. Connect to the default naming context, CN=Configuration,DC=<domain name>.
    3. Expand the CN=Services,CN=Microsoft Exchange,CN=<organization name>,CN=Administrative Groups,CN=<administrative group name>,CN=Servers,CN=<server name>,CN=InformationStore,CN=<mailbox database name> object.
    4. Search for the MailboxImportRequest objects and identify the rogue MailboxImportRequest.
    5. Right-click the rogue MailboxImportRequest object and select Delete.
    6. Confirm the deletion and close the ADSI Edit tool.

    Regarding the duplicate set of folders, if you only need to delete the rogue MailboxImportRequest, then you only need to delete the rogue record. If you are unsure, you may contact Microsoft support for assistance.

    0 comments No comments