trying to enable publishing infra inside communication site collection gives error

%3CLINGO-SUB%20id%3D%22lingo-sub-92337%22%20slang%3D%22en-US%22%3Etrying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92337%22%20slang%3D%22en-US%22%3E%3CP%3Etrying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20ususal%20or%20its%20a%20bug.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-92337%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-370194%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-370194%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F44548%22%20target%3D%22_blank%22%3E%40Velin%20Georgiev%3C%2FA%3E%26nbsp%3BHey%2C%20I%20was%20able%20to%20activate%20the%20feature%20at%20the%20-site%20collection%20level%20but%20when%20I%20try%20to%20activate%20the%20Publishing%20feature%20at%20the%20-web%20level%2C%20I%20keep%20getting%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%22Provisioning%20did%20not%20succeed.%20Details%3A%20Failed%20to%20initialize%20some%20site%20properties%20for%20Web%20at%20Url%3A%20'%3CA%20href%3D%22https%3A%2F%2Fvaughnconstruction.sharepoint.com%2Fsites%2FDevelopment_Comm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fvaughnconstruction.sharepoint.com%2Fsites%2FDevelopment_Comm%3C%2FA%3E'%20OriginalException%3A%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object.%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat's%20missing%3F%20Any%20thoughts%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277045%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277045%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Velin.%20It%20worked.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-207188%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-207188%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20PowerShell%20to%20activate%20it.%3CBR%20%2F%3EPnP%20code%3A%20Enable-PnPFeature%20-Identity%20f6924d36-2fa8-4f0b-b16d-06b7250180fa%20-Scope%20Site%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-93599%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-93599%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20would%20be%20nice%20to%20use%20navigation%20from%20publishing%20features%20as%20well.%26nbsp%3B%20I%20was%20attempting%20to%20add%20publishing%20for%20that%20reason%20when%20I%20got%20the%20error.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-93286%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-93286%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20considering%20activating%20the%20publishing%20features%2C%20so%20that%20I%20can%20have%20access%20to%20the%20managed%20metadata%20navigation%20in%20my%20new%20communication%20site.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-92414%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92414%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20tried%20to%20enable%20the%20Site%20Collection%20publishing%20feature%2C%20I%20got%20an%20error%20that%20indicated%20this%20was%20not%20possible.%20See%20screenshot%20below.%20Is%20it%20disabled%20by%20default%26nbsp%3Bbecause%20it%20is%20a%20Communication%20site%3F%3C%2FP%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%2F18068i0EBD9749F7271B01%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22SiteCollectionPublishingFeatureError.PNG%22%20title%3D%22SiteCollectionPublishingFeatureError.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%20I%20tried%20to%20enable%20the%20Site%20publishing%20feature%20but%2C%20correctly%2C%20it%20would%20not%20work%20because%20the%20Site%20Collection%20feature%20was%20not%20enabled%20(in%20the%20past%2C%20on%20on-prem%20sites%2C%20we%20found%20that%20site%20owners%20would%20sometimes%20enable%20this%20without%20the%20Site%20Collection%20feature%20enabled).%20See%20screenshot%20below.%3C%2FP%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%2F18069i8509E65185326A36%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22SitePublishingFeatureError.PNG%22%20title%3D%22SitePublishingFeatureError.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%20perhaps%20the%20errors%20are%20correct%2C%20even%20if%20not%20very%20informative.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-92404%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92404%22%20slang%3D%22en-US%22%3EI%20was%20also%20wondering%20why%20do%20you%20require%20to%20enable%20publishing%20in%20a%20communication%20site...%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-92361%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-92361%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20raises%20a%20good%20question%20-%20are%26nbsp%3Bpublishing%20features%20needed%20in%20Communication%20sites%3F%20If%20not%2C%20should%20the%20feature%20be%20removed%3F%3C%2FP%3E%3CP%3EIt%20also%20raises%20the%20question%20if%20publishing%20sites%20will%20still%20be%20required%20in%20the%20future.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-475484%22%20slang%3D%22en-US%22%3ERe%3A%20trying%20to%20enable%20publishing%20infra%20inside%20communication%20site%20collection%20gives%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-475484%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F300452%22%20target%3D%22_blank%22%3E%40JTamez%3C%2FA%3E%26nbsp%3B%20This%20code%20should%20work%26nbsp%3B%3C%2FP%3E%3CP%3EEnable-PnPFeature%20-Identity%2094c94ca6-b32f-4da9-a9e3-1f3d343d7ecb%20-Scope%20Web%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

trying to enable publishing infra inside communication site collection gives error

 

Is it ususal or its a bug.

 

thanks

10 Replies

It raises a good question - are publishing features needed in Communication sites? If not, should the feature be removed?

It also raises the question if publishing sites will still be required in the future.

I was also wondering why do you require to enable publishing in a communication site...

When I tried to enable the Site Collection publishing feature, I got an error that indicated this was not possible. See screenshot below. Is it disabled by default because it is a Communication site?

SiteCollectionPublishingFeatureError.PNG

So I tried to enable the Site publishing feature but, correctly, it would not work because the Site Collection feature was not enabled (in the past, on on-prem sites, we found that site owners would sometimes enable this without the Site Collection feature enabled). See screenshot below.

SitePublishingFeatureError.PNG

So perhaps the errors are correct, even if not very informative.

I am considering activating the publishing features, so that I can have access to the managed metadata navigation in my new communication site.

It would be nice to use navigation from publishing features as well.  I was attempting to add publishing for that reason when I got the error.

You can use PowerShell to activate it.
PnP code: Enable-PnPFeature -Identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -Scope Site

Thanks Velin. It worked. 

@Velin Georgiev Hey, I was able to activate the feature at the -site collection level but when I try to activate the Publishing feature at the -web level, I keep getting;

"Provisioning did not succeed. Details: Failed to initialize some site properties for Web at Url: 'https://vaughnconstruction.sharepoint.com/sites/Development_Comm' OriginalException: Object reference not set to an instance of an object."

 

What's missing? Any thoughts?

@JTamez  This code should work 

Enable-PnPFeature -Identity 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb -Scope Web

Connect-PnPOnline -url https://contoso.sharepoint.com/sites/Publishing
Enable-PnPFeature -Identity dffaae84-60ee-413a-9600-1cf431cf0560 -force
Enable-PnPFeature -Identity 22a9ef51-737b-4ff2-9346-694633fe4416 -force
Enable-PnPFeature -Identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -force -Scope site
Enable-PnPFeature -Identity 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb -force -Scope web