Link to home
Start Free TrialLog in
Avatar of Armen Minasyan
Armen MinasyanFlag for United States of America

asked on

Issue moving primary mailbox to Office 365 after Archive was moved

Hey guys,

We're in the middle of migration to Office 365. We moved a lot of users already mostly through ECP on Office 365. Then we decided to move some users Archives only first and it was working just fine. So, when we try to move the user's  primary mailbox for users who already have Archive Online migrated earlier - it gives us following error:

[PS] C:\Windows\system32>New-MoveRequest -id "user@domain.com" -Remote -RemoteHostName "email.domain.com" -Target
DeliveryDomain domain.mail.onmicrosoft.com -RemoteCredential $LocalCredential -primaryonly
Target user 'User' already has a primary mailbox.
    + CategoryInfo          : InvalidArgument: (user@domain.com:MailboxOrMailUserIdParameter) [New-MoveRequest], R
   ecipientTaskException
    + FullyQualifiedErrorId : [Server=EX01,RequestId=1bdf2276-2d56-47ef-9545-28a88uu402cb,TimeStamp=7/27/2017 6:59:13
   PM] [FailureCategory=Cmdlet-RecipientTaskException] 338394AD,Microsoft.Exchange.Management.Migration.MailboxReplic
  ation.MoveRequest.NewMoveRequest
    + PSComputerName        : ex01.domain.com


Not sure where the error is. User's primary mailbox still on premises. And Archive is online. User can access both from Outlook. ECP on Exchange don't have this user as a recipient. When I run Get-MailboxStatistics I see that user still on-prem and only archive on Office 365

[PS] C:\Windows\system32>Get-MailboxStatistics -Identity jlavo@domain.com | fl


RunspaceId                                 : 7e8f0cb3-c855-4bbe-8a50-a77f05943e83
MoveHistory                                :
AssociatedItemCount                        : 97
DeletedItemCount                           : 327
ItemCount                                  : 52919
TotalDeletedItemSize                       : 2.466 MB (2,586,266 bytes)
TotalItemSize                              : 5.108 GB (5,485,153,416 bytes)
CurrentSchemaVersion                       :
DisconnectDate                             :
DisconnectReason                           :
DisplayName                                : Jonathan Lav
LastLoggedOnUserAccount                    : DOMAIN\userl
LastLogoffTime                             : 7/27/2017 3:46:42 PM
LastLogonTime                              : 7/27/2017 3:46:19 PM
LegacyDN                                   : /O=ASSOCIATESLTD/OU=EXCHANGE ADMINISTRATIVE GROUP
                                             (FYDIBOHF45SPDLT)/CN=RECIPIENTS/CN=JONATHAN LAV
MailboxGuid                                : aff07843-8f7c-4f30-9278-9b0bf1d018be
OwnerADGuid                                : 00000000-0000-0000-0000-000000000000
MailboxType                                : Private
MailboxTypeDetail                          : None
ObjectClass                                : Mailbox
StorageLimitStatus                         : BelowLimit
MailboxTableIdentifier                     : 1F61-4058AB
Database                                   : MDB2
ServerName                                 : EX2KMBOX
DatabaseName                               : MDB2
IsDatabaseCopyActive                       : True
IsClutterEnabled                           : False
IsQuarantined                              : False
QuarantineDescription                      :
QuarantineLastCrash                        :
QuarantineEnd                              :
QuarantineFileVersion                      :
ExternalDirectoryOrganizationId            : 00000000-0000-0000-0000-000000000000
IsEncrypted                                : False
DataEncryptionPolicyId                     :
KeyVersionID                               :
AdvancedDataEncryptionDetails              :
IsArchiveMailbox                           : False
IsMoveDestination                          : False
MailboxMessagesPerFolderCountWarningQuota  :
MailboxMessagesPerFolderCountReceiveQuota  :
DumpsterMessagesPerFolderCountWarningQuota :
DumpsterMessagesPerFolderCountReceiveQuota :
FolderHierarchyChildrenCountWarningQuota   :
FolderHierarchyChildrenCountReceiveQuota   :
FolderHierarchyDepthWarningQuota           :
FolderHierarchyDepthReceiveQuota           :
FoldersCountWarningQuota                   :
FoldersCountReceiveQuota                   :
NamedPropertiesCountQuota                  :
SystemMessageSize                          : 0 B (0 bytes)
SystemMessageCount                         : 0
SystemMessageSizeWarningQuota              : Unlimited
SystemMessageSizeShutoffQuota              : Unlimited
DatabaseIssueWarningQuota                  : 3.799 GB (4,078,960,640 bytes)
DatabaseProhibitSendQuota                  : 4 GB (4,294,967,296 bytes)
DatabaseProhibitSendReceiveQuota           : 4.6 GB (4,938,792,960 bytes)
Identity                                   : aff07883-85tt-4f30-9253-9b0bfgh618be
MapiIdentity                               : aff07883-8f7c-4430-9253-9b07ujd018be
OriginatingServer                          : ex2kmbox.domain.com
IsValid                                    : True
ObjectState                                : Unchanged



Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Try initiating the move request from ExO PowerShell. Here's a reference article: https://www.granikos.eu/en/justcantgetenough/PostId/171/move-cloud-archive-enabled-primary-mailbox-to-office-365
Avatar of Armen Minasyan

ASKER

Vasil, thanks for quick reply. Yes, I saw this article and that is exactly what I was doing. I'm using PowerShell to connect to MSOL first and then running these commands. Exactly the same error

User generated imageScreenshot_2.png
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OMG... Thank you!!! Spent all day on EMS!!! Can't thank you enough!