When switching a mailbox Migration Agent for Exchange (MAgE) logs the following error:
Error System.Runtime.InteropServices.COMException (0x80040107): The client operation failed. - MAPI_E_INVALID_ENTRYID (Microsoft Exchange Server Information Store) File: 'aeMAPIProp.cpp' Line: '204'
Server stack trace:
at Quest.MigrationManager.Exchange.Interop.aeEMWMageLib.AeMapiMessageClass.Update(Object KeepOpenReadWrite)
at Dell.MigrationManagerForExchange.General.MAPI.aeMapiMessageWrapped.Update(Object KeepOpenReadWrite)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Dell.MigrationManagerForExchange.General.MAPI.IMapiMessage.Update(Object KeepOpenReadWrite)
at Quest.MigrationManager.Exchange.MigrationConnectors.MAPI.MapiPostAssist.PostMessage(String subject, String body, String from, Boolean isAssociated)
at Dell.MigrationManagerForExchange.Shared.Switching.UserNotifier.PutNotificationMessage(IPostAssist postAssist, Int32 parentId, MailNotificationType mailNotificationType, MailNotificationParentType mailNotificationParentType, MailNotificationParentType defaultMailNotificationParentType)
at Dell.MigrationManagerForExchange.Shared.Switching.UserNotifier.NotifySwitch(IPostAssist postAssistSrc, IPostAssist postAssistTrg, Int32 parentId, MailNotificationParentType mailNotificationParentType, MailNotificationParentType defaultMailNotificationParentType)
at Dell.MigrationManagerForExchange.Shared.Switching.BaseSwitcher.Switch()
at Dell.MigrationManagerForExchange.API.DoSwitch.SwitchUnswitch(Boolean isSwitch, IMailbox mailbox, ICollection collection)
similar error is logged in EMWMigration.log file if switching a mailbox manually with MMEX console.