The topic of discussion in this article is one of the most common 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).
Are you not able to search your mailbox while using Outlook web access? Yes, some Exchange 2016 users face this issue while using Outlook web access. 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
However, this error is not found to affect the accessibility of Exchange data. Users can still send and receive emails. So, it only impacts the mailbox search attempted by the users. And this is mostly noticed in Exchange 2016 and sometimes in Exchange 2013 and Exchange 2010 too.
You can check the content index state in your Exchange Server by running this command in Exchange Management Shell.
You will get results like your content index status is failed and suspended. You can get it for more than one content Index state.
Exchange administrators can take the 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:
- To know which content indexes are affected and show the failed status, run this command in Exchange Management Shell:
- Repair the catalog of the affected database by executing this command:
- To check if the procedure has worked successfully, execute this command and see if the status has been changed to Healthy.
Here, use Database Name in the format Database\Server and the 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.
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 a corrupt content index state ( as Exchange Server is not a member of DAG).
- The first step includes stopping two Exchange services ( Microsoft Exchange Search and Microsoft Exchange Search Host Controller) either from the interface or running these commands in Exchange Management Shell.
- Stop-Service MSExchangeFastSearch
- Stop-Service HostControllerService
- 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.
- Delete this folder with the long string along with all the sub-folders.
- Now start those Exchange services again, which were stopped earlier. Run these commands:
- Start-Service MSExchangeFastSearch
- Start-Service HostControllerService
- Within a couple of minutes, a new folder with rebuilt content index gets created.
This solves the ‘corrupted content index’ issue in the Exchange Server database.
However, even after performing these complex steps, if no success is obtained in the smooth access and search of data, your EDB file will certainly be corrupted. Exchange database (EDB) file corruption can make the entire user data inaccessible. Though there are a few inbuilt repair options with Exchange, they do not assure the complete recovery of the data. But you can try Kernel for Exchange Server Recovery tool that easily recovers all the corrupted and deleted data and saves it to destinations like Exchange Server, Outlook PST, Office 365, and Outlook profiles. This is an easy-to-use tool that supports EDB files of old versions like Exchange 2007 and recent versions like Exchange 2019.
If you are an Exchange 2016 user, you may face the ‘Content Index state failed’ error while searching the mailbox in Outlook web access. Manual tricks to fix the error Content Index state failed are explained here. In addition, a tool is recommended for safe EDB recovery in case of database corruption issues.