The move operation reaches 95 percent and then fails when you try to move a mailbox from Office 365 back to the on-premises environment in a hybrid deployment

Article translations Article translations
Article ID: 2698528 - View products that this article applies to.
Expand all | Collapse all

PROBLEM

Consider the following scenario:
  • You have a hybrid deployment of Microsoft Exchange Online in Microsoft Office 365 and of your on-premises Microsoft Exchange Server environment.
  • You previously moved a mailbox from the on-premises environment to Office 365.
  • You try to offboard or to move the same mailbox from Office 365 back to the on-premises environment.
In this scenario, the operation reaches 95 percent and then fails.

When this occurs, an "HTTP 400" error is generated in the following log files in the on-premises environment when you access the /EWS/mrsproxy.svc link:
  • The Internet Information Services (IIS) log files
  • The HTTP error log (HTTPERR) files
When you connect to Office 365 by using Windows PowerShell and then run the Get-MoveRequestStatistics MailboxID -IncludeReport | Export-CliXml FileName.xml command, the stack trace section of the XML report shows the following:
<S N="StackTrace"> at
Microsoft.Exchange.MailboxReplicationService.CommonUtils.CallService
(Action serviceCall, String epAddress, VersionInformation
serverVersion)_x000A_ at
Microsoft.Exchange.MailboxReplicationService.MailboxReplicationProxyClient.CallServiceWithTimeout
(TimeSpan timeout, Action serviceCall)_x000A_ at Microsoft.Exchange.MailboxReplicationService.RemoteDestinationFolder.Microsoft.Exchange.MailboxReplicationService.IDestinationFolder.SetRules(RuleData[] rules)_x000A_ at Microsoft.Exchange.MailboxReplicationService.DestinationFolderWrapper.&lt;&gt;c__DisplayClass31.&lt;Microsoft.Exchange.MailboxReplicationService.IDestinationFolder.SetRules&gt;b__30()_x000A_
at Microsoft.Exchange.MailboxReplicationService.ExecutionContext.Execute
(Action operation)_x000A_ at Microsoft.Exchange.MailboxReplicationService.DestinationFolderWrapper.Microsoft.Exchange.MailboxReplicationService.IDestinationFolder.SetRules(RuleData[] rules)_x000A_ at
Microsoft.Exchange.MailboxReplicationService.FolderRecWrapper.WriteRules
(IDestinationFolder targetFolder, Action`1 reportBadItemsDelegate)
_x000A_ at
Microsoft.Exchange.MailboxReplicationService.MailboxCopierBase.CopyFolderProperties
(FolderRecWrapper folderRec, ISourceFolder sourceFolder,
IDestinationFolder destFolder, FolderRecDataFlags dataToCopy)
_x000A_ at Microsoft.Exchange.MailboxReplicationService.MailboxMover.&lt;&gt;c__DisplayClass2.&lt;&gt;c__DisplayClass4.&lt;FinalSyncCopyAllFolders&gt;b__1()_x000A_ at
Microsoft.Exchange.MailboxReplicationService.ExecutionContext.Execute
(Action operation)_x000A_ at Microsoft.Exchange.MailboxReplicationService.MailboxMover.&lt;&gt;c__DisplayClass2.&lt;FinalSyncCopyAllFolders&gt;b__0
(FolderRecWrapper folderRec, EnumFolderContext ctx)_x000A_ at
Microsoft.Exchange.MailboxReplicationService.FolderMap.EnumSingleFolder
(FolderRecWrapper folderRec, EnumFolderContext ctx, EnumFolderCallback callback, EnumHierarchyFlags flags)_x000A_ at Microsoft.Exchange.MailboxReplicationService.FolderMap.EnumSingleFolder(FolderRecWrapper folderRec, EnumFolderContext ctx, EnumFolderCallback callback, EnumHierarchyFlags flags)_x000A_ at Microsoft.Exchange.MailboxReplicationService.FolderMap.EnumSingleFolder(FolderRecWrapper folderRec, EnumFolderContext ctx, EnumFolderCallback callback, EnumHierarchyFlags flags)_x000A_ at Microsoft.Exchange.MailboxReplicationService.MailboxMover.FinalSyncCopyAllFolders()
_x000A_ at
Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.&lt;FinalSync&gt;b__4d
(MailboxMover mbxCtx)_x000A_ at
Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.ForeachMailboxContext
(Action`1 del)_x000A_ at
Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.FinalSync(Object[] wiParams)_x000A_ at Microsoft.Exchange.MailboxReplicationService.CommonUtils.CatchKnownExceptions
(Action actionDelegate, Action`1 failureDelegate)</S>

CAUSE

This issue occurs if the SetRules call to the Mailbox Replication Proxy (MRSProxy) service fails. This issue may also occur if the mailbox that's being moved contains a large amount of junk-mail rules and user rules.

SOLUTION

To resolve this issue, change the values of the MRSProxyHttpsBinding settings and of the MRSProxyWSSecurityBinding settings in the Web.config file on every Client Access server in the on-premises environment that's in the path through which the mailbox passes when it is moved. To do this, follow these steps:
  1. On the Client Access server, locate and then open the Web.config file.

    Note In Exchange Server 2010, the Web.config file is located in the following folder:
    \Program Files\Microsoft\Exchange Server\V14\ClientAccess\exchweb\ews
  2. Change certain values of the MRSProxyHttpsBinding settings and of the MRSProxyWSSecurityBinding settings from 1048576 to 8388608. Then, save the file.

    The following example shows what this section of the Web.config will look like after it's changed:
    <binding name="MRSProxyHttpsBinding"> <reliableSession />

    <textMessageEncoding>

    <readerQuotas maxDepth="32"

    maxStringContentLength="8388608"

    maxArrayLength="8388608"

    maxBytesPerRead="4096"

    maxNameTableCharCount="16384" />

    </textMessageEncoding>

    <httpsTransport authenticationScheme="Negotiate"

    maxReceivedMessageSize="8388608" />

    </binding>

    <binding name="MRSProxyWSSecurityBinding">

    <reliableSession />

    <textMessageEncoding>

    <readerQuotas maxDepth="32"

    maxStringContentLength="8388608"

    maxArrayLength="8388608"

    maxBytesPerRead="4096"

    maxNameTableCharCount="16384" />

    </textMessageEncoding>

    <httpsTransport authenticationScheme="Anonymous"

    maxReceivedMessageSize="8388608" />

    </binding>
  3. Restart IIS by using the iisreset command.

MORE INFORMATION

Still need help? Go to the Office 365 Community website.

Properties

Article ID: 2698528 - Last Review: July 9, 2014 - Revision: 10.0
Applies to
  • Microsoft Exchange Online
  • Microsoft Exchange Server 2010 Enterprise
  • Microsoft Exchange Server 2010 Standard
Keywords: 
o365 o365a o365m o365e hybrid o365022013 KB2698528

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com