Forum Discussion
NetSysEngMN
Mar 13, 2021Brass Contributor
Exchange 2010 to Exchange Online Public Folder Migration Failed
Looking for any advice on an issue that I am facing. Currently in process of migrating from Exchange 2010 to Exchange Online and everything has gone relatively well up to this point. I have successfu...
- Mar 19, 2021Support got back to me and said this error can happen if the Public Folder name and the Display Name do not match. To check the names in PowerShell: Get-Mailbox -PublicFolder Mailbox1 | fl name,displayname
If mismatched (like mine are), I wrote the following PowerShell script to rename all of the public folder mailboxes to match the display name. If you only have a couple of mailboxes you could also just rename them in the EAC.
# Connect to EXO
$Credential = Get-Credential
Connect-ExchangeOnline -Credential $credential -ShowProgress $true
# Get all public folders
$PFM = Get-Mailbox -PublicFolder | Select-Object Name,DisplayName
# Loop through each public folder
ForEach ($M in $PFM){
# Define the mailbox display name
$MBDN = $M.DisplayName
# Define the mailbox name
$MBN = $M.Name
# Compare the name vs. display name
If ($MBN -ne $MBDN){
Write-Host "Name mismatch! Updating $MBDN now." -ForegroundColor Yellow
# Rename the mailbox to match the display name
Set-Mailbox -PublicFolder $MBDN -Name $MBDN
}
ElseIf ($MBN -eq $MBDN){ Write-Host "$MBDN is set correctly." -ForegroundColor Green}
}
I'm sure there is better/more efficient code but that worked for me. After the mailboxes have been renamed, try resuming the failed mailboxes and see if they start syncing as expected. In my case (still monitoring it) they at least did not fail right away so I believe it's working but only time will tell.
Nemi83
Mar 19, 2021Copper Contributor
Hi there,
seems like I am in the exact same situation... migrated all user/ressource/shared mailboxes successfully.
Did the preparations for the public folders exactly as mentioned in the guides from Microsoft https://docs.microsoft.com/en-us/exchange/collaboration/public-folders/migrate-to-exchange-online?view=exchserver-2019#step-5-start-the-migration-request , but once I start the migration job I get this error:
Error: MigrationMailboxNotFoundException: Das Migrationspostfach für die Organisation fehlt oder ist ungültig.
Running Exchange 2016 CU19
Any advice!?
- NetSysEngMNMar 19, 2021Brass ContributorSupport got back to me and said this error can happen if the Public Folder name and the Display Name do not match. To check the names in PowerShell: Get-Mailbox -PublicFolder Mailbox1 | fl name,displayname
If mismatched (like mine are), I wrote the following PowerShell script to rename all of the public folder mailboxes to match the display name. If you only have a couple of mailboxes you could also just rename them in the EAC.
# Connect to EXO
$Credential = Get-Credential
Connect-ExchangeOnline -Credential $credential -ShowProgress $true
# Get all public folders
$PFM = Get-Mailbox -PublicFolder | Select-Object Name,DisplayName
# Loop through each public folder
ForEach ($M in $PFM){
# Define the mailbox display name
$MBDN = $M.DisplayName
# Define the mailbox name
$MBN = $M.Name
# Compare the name vs. display name
If ($MBN -ne $MBDN){
Write-Host "Name mismatch! Updating $MBDN now." -ForegroundColor Yellow
# Rename the mailbox to match the display name
Set-Mailbox -PublicFolder $MBDN -Name $MBDN
}
ElseIf ($MBN -eq $MBDN){ Write-Host "$MBDN is set correctly." -ForegroundColor Green}
}
I'm sure there is better/more efficient code but that worked for me. After the mailboxes have been renamed, try resuming the failed mailboxes and see if they start syncing as expected. In my case (still monitoring it) they at least did not fail right away so I believe it's working but only time will tell.- TP_ITMar 22, 2021Brass ContributorThank you so much. Run in the same issue. The Script created the PF in EXO under: Name_random. Changing the name did not fixed the issue.
The script did!
Check the logs under:
Exchange\Logging\HttpProxy\Ews
inetpub\logs\LogFiles\W3SVC1
you should see finally MRS Connections! - Nemi83Mar 19, 2021Copper ContributorAs I already thanked you via PM - I can confirm this... after adjusting the names the sync is running 🙂
- Patdu31Mar 20, 2021Copper Contributor
Hello,
My 3 pf mailboxes had an incorrect name. I've remaned them and now they are syncing!
Thank you very much 🙂
Regards,
Patrick