Office 365 troubleshooting

Sync Issues folder fills with conflicts - Office 365 OWA and Outlook are out of sync - Mails can not be deleted in OWA

Problem description: More and more conflict messages fill the Sync Issues folder in Outlook. If the problematic emails are deleted from Outlook, they are still present in OWA. Attempting to delete them in OWA will fail or they will reappear after a short time. Trying to delete the mails manually in the PowerShell with the command:

PS C:\>

Search-Mailbox -Identity [username] -SearchQuery 'Subject:[query]' -DeleteContent

returned the following error message:

Deletion failed with error 'Move/Copy messages failed.' for the following item:

+ CategoryInfo : ReadError: (0:Int32) [Search-Mailbox], SearchMailboxException

 

Possible reason: The problem could be a broken search index in the Office 365 database.

 

Solution: We have to rebuild the search index with the command:

PS C:\>

New-MoveRequest -Identity [username]

To show some information about the current status you can run one of these two commands:

PS C:\>

Get-MoveRequestStatistics -Identity [username]

PS C:\>

Get-MoveRequest -Identity [username]

After it completed execute:

PS C:\>

Remove-MoveRequest -Identity [username]

References

Microsoft techcommunity - Rebuild search index of a mailbox in Exchange Online

https://techcommunity.microsoft.com/t5/Exchange/Rebuild-search-index-of-a-mailbox-in-Exchange-Online/td-p/25663

Windows Docs - Search-Mailbox

https://docs.microsoft.com/en-us/powershell/module/exchange/mailboxes/search-mailbox?view=exchange-ps

 

Enable “Mailbox Import Export” role for the use of Search-Mailbox

https://kb.cloudiway.com/article/how-to-delete-a-mailbox-content-in-office-365-or-exchange/

Get enabled commands

Get-Command -Module $tmpModule.Name -Name "Search*"

https://techcommunity.microsoft.com/t5/Office-365/Missing-Search-Mailbox-Command-in-my-imported-session/td-p/64734

Try to delete messages from deleted items folder

Search-Mailbox -Identity [username] -SearchQuery '#deleted items#' -DeleteContent

https://social.technet.microsoft.com/Forums/en-US/76437dc7-8d11-4bd8-bf0f-98353b77269c/powershell-script-to-empty-users-deleted-items?forum=exchangesvrgeneral

Kommentare

Bitte addieren Sie 5 und 3.