SOLVED

SPMT breaks "Newsfeed.aspx" page, when migrating EMPTY SharePoint 2013 site to Communication site

%3CLINGO-SUB%20id%3D%22lingo-sub-1011593%22%20slang%3D%22en-US%22%3ESPMT%20breaks%20%22Newsfeed.aspx%22%20page%2C%20when%20migrating%20EMPTY%20SharePoint%202013%20site%20to%20Communication%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1011593%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EWhen%20you%20use%20SharePoint%20Migration%20Tool%20and%20migrate%20any%20SharePoint%202013%20site%20(with%20%22Site%20Feed%22%20feature%20ENABLED)%20to%20pre-created%20%3C%2FSPAN%3E%3CSTRONG%3ECommunication%20site%3C%2FSTRONG%3E%3CSPAN%3E%2C%20%22Newsfeed.aspx%22%20page%20(%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fmsdevtests.sharepoint.com%2Fsites%2Fnewsfeed-page-tests-4%2Fnewsfeed.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%3EtenantName%3C%2FSPAN%3E%3CSPAN%3E.sharepoint.com%2Fsites%2F%3C%2FSPAN%3E%3CSPAN%3EsiteName%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3CSTRONG%3Enewsfeed.aspx%3C%2FSTRONG%3E%3C%2FA%3E%3CSPAN%3E)%20appears%20to%20be%20broken.%20An%20additional%20WebPart%20is%20added%20to%20the%20page%2C%20and%20both%20display%20the%20following%20error%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3EWeb%20Part%20Error%3A%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3CSPAN%3EA%20Web%20Part%20or%20Web%20Form%20Control%20on%20this%20Page%20cannot%20be%20displayed%20or%20imported.%20You%20don't%20have%20Add%20and%20Customize%20Pages%20permissions%20required%20to%20perform%20this%20action.%20Correlation%20ID%3A%20fc1c189f-e07c-1000-b42a-e22218e27e28.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20the%20following%20screenshot%3A%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F157431i8280F90FF42FD7DC%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_1.png%22%20title%3D%22clipboard_image_1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22Newsfeed.aspx%22%20cannot%20be%20modified%20by%20Site%20Owner%20(or%20even%20Tenant%20admin)%2C%20as%20it%20is%20not%20allowed%20in%20SPO.%20So%20it%20remains%20broken%20forever.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESteps%20to%20reproduce%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Invoke%20the%20following%20PowerShell%20Command%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3ENew-SPOSite%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B-Url%26nbsp%3B%3C%2FSTRONG%3E%3CA%20href%3D%22https%3A%2F%2FtenantName%2Fsites%2FsiteName%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSTRONG%3Ehttps%3A%2F%2FtenantName%3C%2FSTRONG%3E%3CSTRONG%3E%2Fsites%2FsiteName%3C%2FSTRONG%3E%3C%2FA%3E%3CSTRONG%3E%26nbsp%3B%60%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E-Title%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E%22Site%20Name%22%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%60%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E-Owner%26nbsp%3B%22tenantAdmin%40tenantName.onmicrosoft.com%22%26nbsp%3B%60%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E-StorageQuota%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E100%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%60%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E-LocaleId%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E1033%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%60%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E-Template%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E%22SITEPAGEPUBLISHING%230%22%3C%2FSTRONG%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E2.%20Run%20%3CSTRONG%3ESharePoint%20Migration%20Tool%3C%2FSTRONG%3E%2C%20select%20any%20Source%20site%20(with%20%22Site%20Feed%22%20enabled)%2C%20and%20migrate%20it%20to%20pre-created%20Communication%20site.%3C%2FP%3E%3CP%3E3.%20Navigate%20to%20%3CA%20href%3D%22https%3A%2F%2Fmsdevtests.sharepoint.com%2Fsites%2Fnewsfeed-page-tests-4%2Fnewsfeed.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2FtenantName.sharepoint.com%2Fsites%2FsiteName%2F%3CSTRONG%3Enewsfeed.aspx%3C%2FSTRONG%3E%3C%2FA%3E%20and%20see%20broken%20Newsfeed%20page%2C%20without%20options%20to%20fix%20it%2C%20remove%20broken%20webparts%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhen%20everything%20works%20fine%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3EWhen%20%22Site%20Feed%22%20feature%20is%20%3CSTRONG%3EDISABLED%20ON%20SOURCE%20site%3C%2FSTRONG%3E.%20It%20remains%20disabled%20on%20Target.%20It's%20possible%20to%20enable%20it%20later.%3C%2FLI%3E%3CLI%3EWhen%26nbsp%3B%20you%20%3CSTRONG%3Epre-create%20TEAM%20Site%3C%2FSTRONG%3E%20(%22STS%233%22%20template).%3C%2FLI%3E%3CLI%3EWhen%20you%20%3CSTRONG%3EDON'T%20PRE-CREATE%20Target%20site%3C%2FSTRONG%3E%20at%20all.%20Then%20SPMT%20creates%20Team%20site%20itself%20-%20and%20Newsfeed%20is%20fine%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESPMT%20Migration%20settings%3A%20default.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETested%20on%203%20different%20tenants.%20The%20issue%20persists%20in%20all%20of%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20looks%20like%20%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3Ea%20bug%20in%20SharePoint%20Migration%20Tool%2C%20which%20adds%20a%20new%20%22Site%20Feed%22%20webpart%20during%20migration%3C%2FSTRONG%3E%3C%2FFONT%3E%2C%20when%20activating%20the%20feature%20on%20Target.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESPMT%20version%3C%2FSTRONG%3E%3A%203.2.115.0%20(latest%20Public%20Beta)%20and%203.2.114.2%20(latest%20Release).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ESharePoint%20Online%20Management%20Shell%20version%3C%2FSTRONG%3E%3A%2016.0.9119.1200%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20help%20will%20be%20appreciated.%20Thanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1011593%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMigration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESPMT%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1042176%22%20slang%3D%22en-US%22%3ERe%3A%20SPMT%20breaks%20%22Newsfeed.aspx%22%20page%2C%20when%20migrating%20EMPTY%20SharePoint%202013%20site%20to%20Communi%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1042176%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20the%20ones%2C%20who%20might%20hit%20this%20issue%20-%20there%20is%20an%20easy%20workaround.%20After%20you%20pre-create%20a%20Target%20site%20(and%20before%20you%20start%20SPMT%20migration%20session)%2C%20%3CSTRONG%3Eyou%20need%20to%20Disable%20%22DenyAddAndCustomizePages%22%3C%2FSTRONG%3E%20for%20that%20particular%20site%20using%20the%20following%20command%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3ESet-SPOSite%20-Identity%20%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fsites%2FsiteName%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%2FsiteName%3C%2FA%3E%20-DenyAddAndCustomizePages%200%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EWith%20that%20setting%20configured%2C%20%22Newsfeed.aspx%22%20remains%20healthy%20after%20SPMT%20migration%20is%20done.%20Tested%20on%202%20different%20tenants%20and%20a%20number%20of%20sites.%3CBR%20%2F%3E%3CBR%20%2F%3EI'm%20grateful%20to%20O365%20Support%20team%20(and%20specifically%20Damien%20Haince)%2C%20for%20helping%20us%20with%20this%20workaround.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

When you use SharePoint Migration Tool and migrate any SharePoint 2013 site (with "Site Feed" feature ENABLED) to pre-created Communication site, "Newsfeed.aspx" page (https://tenantName.sharepoint.com/sites/siteName/newsfeed.aspx) appears to be broken. An additional WebPart is added to the page, and both display the following error:

 

Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. You don't have Add and Customize Pages permissions required to perform this action. Correlation ID: fc1c189f-e07c-1000-b42a-e22218e27e28.

 

See the following screenshot:

 

clipboard_image_1.png

 

 

"Newsfeed.aspx" cannot be modified by Site Owner (or even Tenant admin), as it is not allowed in SPO. So it remains broken forever.

 

Steps to reproduce:

 

1. Invoke the following PowerShell Command:

New-SPOSite -Url https://tenantName/sites/siteName `

    -Title "Site Name" `

    -Owner "tenantAdmin@tenantName.onmicrosoft.com" `

    -StorageQuota 100 `

    -LocaleId 1033 `

    -Template "SITEPAGEPUBLISHING#0" 

2. Run SharePoint Migration Tool, select any Source site (with "Site Feed" enabled), and migrate it to pre-created Communication site.

3. Navigate to https://tenantName.sharepoint.com/sites/siteName/newsfeed.aspx and see broken Newsfeed page, without options to fix it, remove broken webparts etc.

 

When everything works fine:

 

  1. When "Site Feed" feature is DISABLED ON SOURCE site. It remains disabled on Target. It's possible to enable it later.
  2. When  you pre-create TEAM Site ("STS#3" template).
  3. When you DON'T PRE-CREATE Target site at all. Then SPMT creates Team site itself - and Newsfeed is fine

 

SPMT Migration settings: default.

 

Tested on 3 different tenants. The issue persists in all of them.

 

It looks like a bug in SharePoint Migration Tool, which adds a new "Site Feed" webpart during migration, when activating the feature on Target.

 

SPMT version: 3.2.115.0 (latest Public Beta) and 3.2.114.2 (latest Release).

 

SharePoint Online Management Shell version: 16.0.9119.1200

Any help will be appreciated. Thanks in advance!

1 Reply
Highlighted
Solution

For the ones, who might hit this issue - there is an easy workaround. After you pre-create a Target site (and before you start SPMT migration session), you need to Disable "DenyAddAndCustomizePages" for that particular site using the following command:

 

 

Set-SPOSite -Identity {Site Url} -DenyAddAndCustomizePages 0

 


With that setting configured, "Newsfeed.aspx" remains healthy after SPMT migration is done. Tested on 2 different tenants and a number of sites.

I'm grateful to O365 Support team (and specifically Damien Haince), for helping us with this workaround.