The Backup of SharePoint Sites objects for an Organization added using the Modern App-Only Authentication method may display the warning:
Cannot change WebPart ExportMode to 'All'. WebPart will be skipped (WebPart ID: <guid>)
Copy
To back up Classic Web Parts with the Modern App-Only Authentication method, Veeam Backup for Microsoft 365 requires setting the “Export Mode” property of the web part from “None” to “All” to make this Web Part exportable and available for backup.
Sometimes permissions or scale may make it challenging to configure “Export Mode”. To automatically allow Veeam Backup for Microsoft 365 to mark a Web Part as exportable you must enable the “Allow custom script” option for affected SharePoint sites.
Important: Custom scripting support in SharePoint Online is changing, and so the content of this knowledge base article is subject to change.
Administrators have the option to allow execution of custom scripts. This setting is accessible in SharePoint Admin Center, under Settings -> Classic Settings.
It is also possible to enable custom scripting using the PowerShell command Set-SPOSite:
Set-SPOSite -DenyAddAndCustomizePages $False
Copy
Learn more about custom scripting:
Microsoft has announced that, starting in March 2024, it will remove the ability to execute custom scripts on personal and self-service sites.
As part of the rollout of this change, Microsoft has created a new PowerShell option for Set-SPOTenant:
Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $True
Copy
This command is available in SharePoint Online Management Shell version 16.0.24524.12000 or later and allows administrators to delay the removal of custom script execution until May 2024.
Update June 2024: In Message ID MC714186, Microsoft announced that they will allow administrators to delay the change until mid-November 2024 using this command.
**Critical Note:**Suppressing the warning will prevent the alert, and WebParts that would have triggered the warning will be skipped silently and not protected by Veeam Backup for Microsoft 365.
Before you begin:
Perform the following 4 steps on the Veeam Backup for Microsoft 365 server and each of the Proxies:
C:\ProgramData\Veeam\Backup365\Proxy.xml
Copy
Within the Proxy.xml file, add the following line under the <Archiver> section:
<Source ShowSkippedSharePointWebPartsWarning=“False” />
Copy
Example Proxy.xml
Existing <Source /> Entry in Proxy.xml
If the Proxy.xml already contains a <Source />
node, add the parameter ShowSkippedSharePointWebPartsWarning=“False” after the existing parameters.
Do not create a second <Source />
line entry within the Proxy.xml file, it will not be read.
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.
Vendor | Product | Version | CPE |
---|---|---|---|
veeam | veeam_backup_for_google_cloud | 365 | cpe:2.3:a:veeam:veeam_backup_for_google_cloud:365:*:*:*:*:*:*:* |