Share via


Error - 'You cannot have both ArchiveDatabase and ArchiveDomain set.' - when performing a dial tone recovery for mailboxes on-premises that have online archives

The issue below can be noticed when performing a dial tone recovery of a database. (Using DAG as per Microsoft recommendations would narrow such scenarios in your environments.) It can occur on Exchange 2010, 2013 and 2016 in a hybrid configuration with Exchange Online regardless the CU version or type of database used.

Mailboxes which are located on-premises and have online archive mailboxes generate an error when you try to change their DB by using  Set-Mailbox cmdlet.

 

 

Example:

 

[PS] C:\windows\system32>get-mailbox lara.diz | fl *arch*,*guid*,*userprin*,*data*

IsExcludedFromServingHierarchy : False

IsHierarchyReady               : True

ArchiveDatabase                :

ArchiveGuid                    : 5**b-a**0-**9-9**e-b****0

ArchiveName                    : {In-Place Archive - Lara Diz}

JournalArchiveAddress          :

ArchiveQuota                   : 100 GB (107,374,182,400 bytes)

ArchiveWarningQuota            : 90 GB (96,636,764,160 bytes)

ArchiveDomain                  : lilmiracleink.mail.onmicrosoft.com

ArchiveStatus                  : Active

ArchiveState                   : HostedProvisioned

DisabledArchiveDatabase        :

DisabledArchiveGuid            : 00000000-0000-0000-0000-000000000000

ArchiveRelease                 :

ExchangeGuid                   : b*****c-c**0-4**2-b**2-d********c

MailboxContainerGuid           :

AggregatedMailboxGuids         : {}

ArchiveGuid                    : 5**b-a**0-**9-9**e-b****0

DisabledArchiveGuid            : 00000000-0000-0000-0000-000000000000

Guid                           : 1*****e-0**1-4**b-9**1-f**********c

UserPrincipalName              : Lara.Diz@v-sikoev.msftonlinerepro.com

Database                       : Mailbox Database 1447468907

UseDatabaseRetentionDefaults   : True

UseDatabaseQuotaDefaults       : True

ArchiveDatabase                :

DisabledArchiveDatabase        :

 

 

 

[PS] C:\windows\system32>Get-MailboxDatabase | fl name,*dist*

Name              : Mailbox Database 1447468907

DistinguishedName : CN=Mailbox Database 1447468907,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=LittleMiracle,CN=MicrosoftExchange,CN=Services,CN=Configuration,DC=littlemiracle,DC=local

 

Name              : DB

DistinguishedName : CN=DB,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=AdministrativeGroups,CN=LittleMiracle,CN=MicrosoftExchange,CN=Services,CN=Configuration,DC=littlemiracle,DC=local

 

 

 

[PS] C:\windows\system32>Set-Mailbox Lara.Diz@v-sikoev.msftonlinerepro.com -DataBase DB

You cannot have both ArchiveDatabase and ArchiveDomain set.

+ CategoryInfo          : NotSpecified: (littlemiracle.local/O365/Lara Diz:ADObjectId) [Set-Mailbox], DataValidationException

+ FullyQualifiedErrorId : [Server=EX2013,RequestId=81f8dfa7-a768-4090-81b6-8b573a884dde,TimeStamp=5/5/2017 10:36:33 AM] [FailureCategory=Cmdlet-DataValidationException] D3607E8B,Microsoft.Exchange.Management.RecipientTasks.SetMailbox

+ PSComputerName        : ex2013.littlemiracle.local

 

[PS] C:\windows\system32>

[PS] C:\windows\system32>Set-Mailbox Lara.Diz@v-sikoev.msftonlinerepro.com -DataBase 'CN=DB,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=LittleMiracle,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=littlemiracle,DC=local'

You cannot have both ArchiveDatabase and ArchiveDomain set.

+ CategoryInfo          : NotSpecified: (littlemiracle.local/O365/Lara Diz:ADObjectId) [Set-Mailbox], DataValidationException

+ FullyQualifiedErrorId : [Server=EX2013,RequestId=0b5daa58-c72d-49b1-aab9-036e3b6bada6,TimeStamp=5/5/2017 10:36:33 AM] [FailureCategory=Cmdlet-DataValidationException] D3607E8B,Microsoft.Exchange.Management.RecipientTasks.SetMailbox

+ PSComputerName        : ex2013.littlemiracle.local

 

[PS] C:\windows\system32>

[PS] C:\windows\system32>Set-Mailbox b*****c-c**0-4**2-b**2-d********c -DataBase DB

You cannot have both ArchiveDatabase and ArchiveDomain set.

+ CategoryInfo          : NotSpecified: (littlemiracle.local/O365/Lara Diz:ADObjectId) [Set-Mailbox], DataValidationException

+ FullyQualifiedErrorId : [Server=EX2013,RequestId=04739767-6e17-4fbb-86d4-2004ddbcea17,TimeStamp=5/5/2017 10:36:33 AM] [FailureCategory=Cmdlet-DataValidationException] D3607E8B,Microsoft.Exchange.Management.RecipientTasks.SetMailbox

+ PSComputerName        : ex2013.littlemiracle.local

 

[PS] C:\windows\system32>

[PS] C:\windows\system32>Set-Mailbox b*****c-c**0-4**2-b**2-d********c -DataBase 'CN=DB,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=LittleMiracle,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=littlemiracle,DC=local'

You cannot have both ArchiveDatabase and ArchiveDomain set.

+ CategoryInfo          : NotSpecified: (littlemiracle.local/O365/Lara Diz:ADObjectId) [Set-Mailbox], DataValidationException

+ FullyQualifiedErrorId : [Server=EX2013,RequestId=b2e6cf4c-8ba4-4e82-8623-a408180195dc,TimeStamp=5/5/2017 10:36:33 AM] [FailureCategory=Cmdlet-DataValidationException] D3607E8B,Microsoft.Exchange.Management.RecipientTasks.SetMailbox

+ PSComputerName        : ex2013.littlemiracle.local

 

 

 

Workarounds:

  • Removing the online archive, moving the mailbox and re-attaching the online archive (which basically removes the cause of the error)

Example:

Get-Mailbox - Database 'Mailbox Database 1447468907' | Set-Mailbox -Database DB -ArchiveDomain $Null

Set-Mailbox -Database DB -ArchiveDomain lilmiracleink.onmicrosoft.com

 

  • Performing a change of the HomeMDB of the user through ADSI Edit the change is being done. (Please note that this method is not a supported scenario and is to be used on your own responsibility.)

Example:

 

From: CN=Mailbox Database 1447468907,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=LittleMiracle,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=littlemiracle,DC=local

 

To: CN=DB,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=LittleMiracle,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=littlemiracle,DC=local

Comments

  • Anonymous
    May 09, 2017
    Thanks for sharing. That's quite a tricky workaround.