SharePoint: Cannot Change WebPart ExportMode To 'All'

Issue

While backing up SharePoint sites, the job is completed successfully, but your Veeam Data Cloud backup logs say that the job has completed with a warning: Cannot change WebPart ExportMode to ‘All’.

Summary

When checking your Veeam Data Cloud for Microsoft 365 backup session logs you may see the following warning:

Warning

Processing site <Site Name> finished with warning: Cannot change web part export mode to ‘All’, because custom scripting is disabled for site: <Site Name>. Web part will be skipped (web part ID: <ID>, page: <Page Name>).

Cause

To back up Web Parts, Veeam changes the Export Mode property of the web part from False to True to make this Web Part exportable and available for backup. Sometimes changing the Export Mode property is prohibited by a SharePoint administrator, and thus Veeam Backup for Microsoft 365 cannot change it and back up the Web Part.

Resolution

To allow changing the Export Mode property, you need to enable the Allow custom script option on the affected SharePoint sites. If you want to back up Personal Sites, follow the steps described in this Microsoft article.

For any other SharePoint sites, follow the steps described in this Microsoft article.

Help And Support

If you have followed the steps outlined above, and the issue recurs in the next backup cycle, or you need help with performing these changes, you can contact Veeam Customer Support.

References

For information on how to check your backup session logs, see Viewing Backup Logs.

For more information on how to overcome this issue, see this Veeam KB article.