Managed Folder Assistant fails with Event ID 9004 NotInBagPropertyErrorException in Exchange Server 2019 and 2016

Applies to: Exchange Server 2019Exchange Server 2016

Symptoms


In Microsoft Exchange Server 2019 or Exchange Server 2016, Managed Folder Assistant (MFA) fails on certain items, and you receive the following error message:
Log Name:      Application
Source:        MSExchange Assistants
Event ID:      9004
Task Category: Assistants
Level:         Warning
Description:
Service MSExchangeMailboxAssistants. 'Managed Folder Mailbox Assistant' failed to process mailbox. The following exception caused the failure: Microsoft.Exchange.Assistants.AIGrayException ---> Microsoft.Exchange.Common.GrayException ---> Microsoft.Exchange.Data.Storage.NotInBagPropertyErrorException: [0x1000001f] TextBody
   at Microsoft.Exchange.Data.Storage.MemoryPropertyBag.TryGetStoreProperty(StorePropertyDefinition propertyDefinition)
   at Microsoft.Exchange.Data.Storage.StoreObjectPropertyBag.TryGetStoreProperty(StorePropertyDefinition propertyDefinition)
   at Microsoft.Exchange.Data.Storage.NativeStorePropertyDefinition.InternalTryGetValue(BasicPropertyStore propertyBag)
   at Microsoft.Exchange.Data.Storage.PropertyBag.TryGetProperty(PropertyDefinition propertyDefinition)
   at Microsoft.Exchange.Data.Storage.Body.CalculateRawFormat()
   at Microsoft.Exchange.Data.Storage.Body.ChooseBestBody()
   at Microsoft.Exchange.Data.Storage.Conversations.BodyFragmentsExtractor.ShouldExtractOnSave(ICoreItem coreItem, CoreItemOperation operation, FixupStage fixupStage)
   at Microsoft.Exchange.Data.Storage.MessageItem.CoreObjectUpdateBodyFragmentList(IMailboxSession session, IMailboxOwner mailboxOwner, ICoreItem item, FixupStage fixupStage, CoreItemOperation operation)
   at Microsoft.Exchange.Data.Storage.MessageItem.AggregateMessageInConversation(ICoreItem item, CoreItemOperation operation)
   at Microsoft.Exchange.Data.Storage.MessageItemSchema.CoreObjectUpdate(CoreItem coreItem, CoreItemOperation operation)
   at Microsoft.Exchange.Data.Storage.CoreItem.InternalFlush(SaveMode saveMode, CoreItemOperation operation, OperationContext operationContext)
   at Microsoft.Exchange.Data.Storage.CoreItem.SaveOrSend(SaveMode saveMode, OperationContext operationContext, CoreItemOperation operation)
   at Microsoft.Exchange.Data.Storage.Item.SaveInternal(SaveMode saveMode, Boolean commit, OperationContext operationContext, CoreItemOperation operation)
   at Microsoft.Exchange.Data.Storage.Item.Save(SaveMode saveMode)
   at Microsoft.Exchange.MailboxAssistants.Assistants.ELC.ItemPropertySynchronizer.<>c__DisplayClass26_0.<CommitChangesAlready>b__0()
   at Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1 catchDelegate)
   at Microsoft.Exchange.MailboxAssistants.Assistants.ELC.ItemPropertySynchronizer.Update()
   at Microsoft.Exchange.MailboxAssistants.Assistants.ELC.FolderPropertySynchronizer.Update()
   at Microsoft.Exchange.MailboxAssistants.Assistants.ELC.Synchronizer.ProcessFolder(List`1 folderList)
   at Microsoft.Exchange.MailboxAssistants.Assistants.ELC.Synchronizer.UpdateEntireMailbox()
   at Microsoft.Exchange.MailboxAssistants.Assistants.ELC.TagProvisioner.InvokeInternal(MailboxDataForTags mailboxDataForTags)
   at Microsoft.Exchange.MailboxAssistants.Assistants.ELC.TagProvisioner.Invoke(MailboxDataForTags mailboxDataForTags)

Resolution


To fix this issue, install one of the following updates:

For Exchange Server 2019, install the Cumulative Update 6 for Exchange Server 2019 or a later cumulative update for Exchange Server 2019.​

For Exchange Server 2016, install the 
Cumulative Update 17 for Exchange Server 2016 or a later cumulative update for Exchange Server 2016.

References


Learn about the terminology that Microsoft uses to describe software updates.