MSTeams: Restored webpart page fails to open with error - error on line 1 at column 2: StartTag: invalid element name

book

Article ID: 100072944

calendar_today

Updated On:

Description

Error Message

Job Log reports :
error on line 1 at column 2: StartTag: invalid element name 
 

Cause

When the webpart page is restored, it is considered as a file upload. So, by default, SharePoint does not allow webpart to run any script, resulting in the above error. 
 

Resolution


This issue can be fixed by enabling custom script settings using the following link -  

https://learn.microsoft.com/en-gb/sharepoint/allow-or-prevent-custom-script#to-allow-custom-script-on-other-sharepoint-sites  

 

Issue/Introduction

MSTeams: Restored webpart page fails to open with error - error on line 1 at column 2: StartTag: invalid element name

Additional Information

ETrack: 4168350