question

Phil-Gideon-IT avatar image
0 Votes"
Phil-Gideon-IT asked LalenkoIgor-3340 answered

Microsoft Exchange 2019 search issues since CU8 and HAFNIUM patches

We have on-premises Exchange 2019 which was at CU6. When then HAFNIUM news broke I immediately updated to CU 8 and then installed the HAFNIUM patches overnight. The upgrade appeared to go well and after a bit of fiddling with IIS to get OWA and Exchange Admin working again all appeared normal.

Since then though users have been reporting that Outlook 2019 searches on their desktop PCs are NOT returning all results, specifically nothing after the date of the patch (3rd March 2021). Also when you sign in remotely using OWA the same thing is happening. No recent emails are returned by a search.

I have an email from a colleague dated yesterday with the subject line being about their birthday. If I put 'birthday' as the search term nothing is returned when restricting the search to 'within the last week' on OWA, yet I can clearly see & open the email in the Inbox view. If I don't restrict the date only old emails from January this year and earlier are returned.

The same happens in Outlook 2019, the first search result returned is the same as the one in OWA from January.

If you use the Advanced Search function then the email from yesterday IS found!!

If you use Apple Mail on an iPhone linked to the Exchange server then the email is found during a search.

I've rebuilt the Windows Search index on Windows 10 (all the desktop PCs are on Windows 10) and this hasn't worked, even though it took hours to re-index Outlook. Checking the Indexing Status in Outlook 2019 shows zero items still to be indexed.

I've tried turning off cached Exchange Mode and turning it back on again. It was the same with the cache on as well as off.

My last ditch try is turning the cache off, deleting the OST file, then turning it back on. This will force Outlook 2019 to re-download all the email from the server. I presume the local Windows Search only indexes the OST file so if that's corrupt it will miss items out. I'm not hopeful that this will work as the search doesn't work in OWA and that has NOTHING to do with desktop Outlook and it's local OST cache file.

Anyone else got any other ideas?

Would a repair of the Exchange database work? How dangerous is that? Is it worth trying Isinteg ?

office-outlook-itprooffice-exchange-server-itpro
· 5
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.

Did you install the patch with as elevated? If not, reinstall it with an elevated prompt and see if that fixes things

0 Votes 0 ·

Yep - I did update as Admin.

0 Votes 0 ·

Ok, can you move the mailbox to another database?
Im thinking specifically of the OWA searches that arent working

1 Vote 1 ·

It appears to be all mailboxes and I only have the one database for mailboxes.

0 Votes 0 ·
Show more comments
Phil-Gideon-IT avatar image
1 Vote"
Phil-Gideon-IT answered YukiSun-MSFT commented

I created a new temporary database and moved some of the mailboxes over and that fixed the problem for those mailboxes. So over the weekend I moved all the rest and then moved them back before deleting the temporary database.

Thanks AndyDavid for the suggestion!

Moving the mailbox must force a rebuild of the index. One of the major changes in Exchange 2019 from 2016 is that the index is now inside the database and is maintained by Bing technology known as BigFunnel. The vast majority of blog posts and tech forums posts about how to re-index an Exchange database are for 2016 and earlier. In most cases a fix from Exchange 2016 will work on 2019 but not in this case!

To find out which mailboxes have unindexed items, and how many, you can run this from the Exchange Management Shell...

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | ? {$_.BigfunnelNotIndexedCount -ge "1"} | ft DisplayName,BigfunnelNotIndexedCount

Obviously the "Microsoft Exchange Search Host Controller Service" and the "Microsoft Exchange Search" must be running and set to Automatic as they maintain the index.

· 1
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 @Phil-Gideon-IT,

Great to know that you've sorted it out and thanks for your valuable sharing!


If an Answer 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 ·
YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered

Hi @Phil-Gideon-IT,

Is there any relevant event logs recorded in the Event Viewer on the server?

Please have a check and make sure the services below are running properly on the Exchange 2019 CU8 servers and the startup type is "automatic":

  • Microsoft Exchange Search Host Controller Service

  • Microsoft Exchange Search


If an Answer 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.

LalenkoIgor-3340 avatar image
0 Votes"
LalenkoIgor-3340 answered

For me, the box migration solution was not applicable, so I found another way.

Start EMS from Admin

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn

Start-MailboxAssistant -Identity admin@contoso.com -AssistantName BigFunnelRetryFeederTimeBasedAssistant

Or a loop for OU. But reindexing is slow. 4TB of boxes re-indexed 2 weeks

$name = Get-Mailbox -OrganizationalUnit Users
foreach ($names in $name)
{
Start-MailboxAssistant -Identity $names -AssistantName BigFunnelRetryFeederTimeBasedAssistant
}

Tracking reindexing

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | ? {$_.BigfunnelNotIndexedCount -ge "1"} | Start-MailboxAssistant -AssistantName BigFunnelRetryFeederTimeBasedAssistant

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.