#1 Global Leader in Data Resilience

Exchange Backup Fails With: "Failed to get folder properties. Not allowed to access Non IPM folder"

KB ID: 4569
Product: Veeam Backup for Microsoft 365
Published: 2024-04-03
Last Modified: 2024-05-23
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Veeam Data Cloud for Microsoft 365 Customers
Customers utilizing Veeam Data Cloud for Microsoft 365, please be advised that no actions are required to address this issue. All the necessary actions were implemented in the Veeam Data Cloud backend on 2024-04-04.

Challenge

A backup job in Veeam Backup for Microsoft 365 processing Exchange data fails with the error:

Failed to get folder properties. Not allowed to access Non IPM folder

Cause

During Exchange backup, Veeam Backup for Microsoft 365 requests the properties of all mailbox folders, including the properties of hidden and legacy folders (e.g., ‘TeamsMessagesData’).

Due to a recent change in Microsoft 365, the properties of the ‘TeamsMessagesData’ folder cannot be retrieved using the EWS API, which is used by Veeam Backup for Microsoft 365 to process Exchange data backup.

More Information

Workaround

This workaround is provided for customers who are not ready to upgrade to the latest version of Veeam Backup for Microsoft 365 and are using at least build 6.1.0.1015.

If a build of Veeam Backup for Microsoft 365 older than 6.1.0.1015 is presently installed, we suggest upgrading to the latest version of Veeam Backup for Microsoft 365, which will resolve the issue and ensure that a supported version is in use.

There are two options to implement this workaround; choose only one:

Option 1: PowerShell Script to Update Config.xml

The script below was created by Veeam and is provided as a courtesy. Note, however, that if any problems occur with the script, Veeam Support will recommend upgrading to the latest version of Veeam Backup for Microsoft 365 to resolve the issue.

  1. Execute the following PowerShell script as Administrator on the Veeam Backup for Microsoft 365 server:

    Note: Any active Restore Session(s) will be halted when this script restarts the Veeam Backup for Microsoft 365 Service service. Backup jobs should not be affected because running jobs are managed by the Veeam Backup Proxy for Microsoft 365 Service service, which is not restarted by this script. After the Veeam Backup for Microsoft 365 Console is launched, the status of running jobs may take a moment to update.
$configFilePath = "C:\ProgramData\Veeam\Backup365\Config.xml"
$xmlContent = [xml](Get-Content $configFilePath)
if ($xmlContent.SelectSingleNode("//Archiver/Proxy[@SkipTeamsMessagesDataFolders='True']")) {
Write-Output "SkipTeamsMessagesDataFolders setting already exists. No changes made."
} else {
Copy-Item -Path $configFilePath -Destination "$configFilePath$($(Get-Date -Format '.yyyyMMdd')).old"
$newElement = $xmlContent.CreateElement("Proxy")
$newElement.SetAttribute("SkipTeamsMessagesDataFolders", "True")
$archiverNode = $xmlContent.SelectSingleNode("//Archiver")
$archiverNode.AppendChild($newElement)
$xmlContent.Save($configFilePath)
Write-Output "SkipTeamsMessagesDataFolders setting added."
Restart-Service -Name "Veeam.Archiver.Service"
}
  1. Retry the job(s).
Option 2: Manually Update Config.xml
  1. Update the Config.xml file to skip the TeamsMessagesData folder.
    Only the config.xml file on the main Veeam Backup for Microsoft 365 server needs to be updated.
    1. Open the folder: C:\ProgramData\Veeam\Backup365\
      The ProgramData folder is hidden by default. Copy and paste the folder path into the Explorer address bar.
    2. Within that folder, create a copy of Config.xml with the extension .old (i.e., Config.xml.old).
      If the Config.xml file is not present, double-check the folder path (i.e., ProgramData not Program Files).
    3. Launch NotePad as an Administrator, and open C:\ProgramData\Veeam\Backup365\Config.xml
    4. Add the following line withinAnywhere below and above . the <Archiver> section and save the file.
    <Proxy SkipTeamsMessagesDataFolders="True" />
Example
Example
  1. Restart the Veeam Backup for Microsoft 365 Service service.
    Note: Restarting the Veeam Backup for Microsoft 365 Service will cause any active Restore Session to halt. Active backup jobs should not be affected because once they are started, they are managed by the Veeam Backup Proxy for Microsoft 365 Service service, which does not need to be restarted. After the Veeam Backup for Microsoft 365 Console is launched, the status of running jobs may take a moment to update.
  2. Retry the job(s).
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.