The topic of discussion in this article is one of the Exchange Server errors “Content Index state failed’. Basically, we will be going to learn how to get rid of this unwanted Exchange Server error (for versions above Exchange Server 2010)

Exchange Server administrators and users encounter a variety of errors while working on it. These errors create issues in the accessibility of email data. Likewise, when the Exchange users get struck with Content Index State Failed error, it:

  • Stops or interrupts the search process in the Outlook Web Access and Outlook applications
  • Blocks the activation of the passive database copies while switching over the database

You can check the content index state in your Exchange Server by running this command in Exchange Management Shell.

Get-MailboxDatabase Database Name | Get-MailboxDatabaseCopyStatus | Select Name,*index*

You will get the output results like your content index status is failed and suspended. You can get it for more than one content Index states.

Exchange administrators can take help of the Exchange Management Shell for making content index state in the healthy state again.

We are going to run the commands in the Exchange Management Shell for fixing the ‘content index state failed’ error.

Case1: When Exchange Server is a member of the Database Availability Group

Follow the below-given instructions carefully to repair the content index error:

  1. First to know which content indexes are affected and shows the failed status. Then run this command in Exchange Management Shell:
  2. Get-MailboxDatabase Database Name | Get-MailboxDatabaseCopyStatus | Select Name,*index*

  3. Repair the catalog of the affected database by executing this command:
  4. Update-MailboxDatabasecopy Database\Server1 –sourceserver Server Name –catalogonly

    Here, use Database Name in the format Database\Server and source server name is the one in a healthy state.

    The time for the completion of this update is dependent on its size. Repeat this procedure for all damaged database copies.

  5. To check if the procedure has worked successfully, execute this command and see if the status has been changed to Healthy.
  6. Get-MailboxDatabase Database Name | Get-MailboxDatabaseCopyStatus | Select Name,*index*

    If the status of the content index state of all databases status is changed to healthy, then the error is fixed.

Case2: When Exchange Server is not a member of the Database Availability Group

Here, we have only one database copy with corrupt content index state ( as Exchange Server is not a member of DAG).

  1. First step includes stopping two Exchange services ( Microsoft Exchange Search and Microsoft Exchange Search Host Controller) either from the interface or by running these commands in Exchange Management Shell.
    • Stop-Service MSExchangeFastSearch
    • Stop-Service HostControllerService
  2. Navigate to the database saving location on your Exchange system. Here, search for the folder with a long string (GUID). This folder contains the content index of your database.
  3. Delete this folder with the long string along with all the sub-folders.
  4. Now start those Exchange services again which were stopped earlier. Run these commands:
    • Start-Service MSExchangeFastSearch
    • Start-Service HostControllerService
  5. Within a couple of minutes, a new folder with rebuilt content index gets created.

This solves the ‘corrupted content index’ issue in Exchange Server database.

However, even after performing these complex steps, if no success is obtained in the smooth access and search of data, then certainly your EDB file may be corrupted. You can try Kernel for Exchange Server Recovery tool that easily recovers all the corrupted and deleted data, and saves to destinations like Exchange Server, Outlook PST, Office 365 and Outlook profiles.

Download

Conclusion

Manual tricks to fix the Exchange error Content Index state failed for Exchange databases are explained here. In addition, a tool is recommended for safe EDB recovery in case of database corruption issues.