Sometimes you need to tell SharePoint Publishing–“Activate Damnit!”

Written by Sean Wallbridge on. Posted in SharePoint 2010, SharePoint 2013, SharePoint Server 2010

Ok, I’ve run into this enough times, I figured I’d share it.

What

Today’s scenario was that I was using Metalogix Migration Manager (or rather, Content Matrix as it is now called) to move a SharePoint Site Collection to a new farm. During this move, SharePoint Publishing got, er, buggered, for lack of a better word.

My content came across, but no matter what I did, I could not, in the GUI or through tricks in SharePoint Designer (renaming libraries and other garbage suggested out there on the Interweb), I could not enable the SharePoint Server Publishing Infrastructure Feature.

So What

Well, this is a drag.  I can’t have a pages library and layouts, I can’t use navigation and frankly, I don’t like my stuff ‘broken’ either. Just not cricket and not something I like to carry on with me like herpes, er, luggage.  And, I don’t like to lose…

Now What

Here are some of the errors I encountered today, hoping Google helps others find this as well… Note, the errors below depended on what I was trying to do at the time (various other techniques that ultimately didn’t help):

Provisioning did not succeed. Details: Failed to provision all permission settings. OriginalException: The system cannot find the file specified. (Exception from HRESULT: 0×80070002)

And

Failed to instantiate file "ContentQueryMain.xsl" from module "XSLStyleSheets": The specified list does not exist.

Dude, What’s the Fix?

Note, I’ve come across this in both SharePoint 2010 and 2013 and suspect considering the Feature ID is the same, in 2007 this probably also applies.

  1. Take a Backup – I’m not responsible for your data, you are…
  2. Stop trying to click Activate in your Site Collection Features Admin for the SharePoint Server Publishing Infrastructure feature.  As Einstein says, the definition of being a nut job is trying the same thing over and over and expecting the same result…
  3. Go to your SharePoint Server’s PowerShell and Deactivate Publishing for your site collection from the PowerShell command line and reactivate it.  It will tell you that it wasn’t activated (gee, that’s what the GUI said too). But if you have ‘remnants’ of publishing kicking around, you’ll need to use the PowerShell equivalent to clean house and then reactivate it. Here goes:

To Deactivate

(Do it, you know you want to and will have to)

stsadm -o deactivatefeature -id f6924d36-2fa8-4f0b-b16d-06b7250180fa -url "http://yoursharepointurl/sites/sitecollection" -force

You’ll no doubt, if you came across this post, get a notice saying it wasn’t enabled… something to the effect of “"Feature ‘f6924d36-2fa8-4f0b-b16d-06b7250180fa’ is not activated at this scope"

To Activate

Ok, time to flip it back on

stsadm -o activatefeature -id f6924d36-2fa8-4f0b-b16d-06b7250180fa -url "http://yoursharepointurl/sites/sitecollection" –force

image thumb10 Sometimes you need to tell SharePoint Publishing–“Activate Damnit!”

And Viola!  It’s Activated

image thumb11 Sometimes you need to tell SharePoint Publishing–“Activate Damnit!”

Now you can turn on your site publishing feature if you want your /pages library and Navigation should be back as well.

Hope this helps someone.
Sean



Incoming search terms:

Tags: , , ,

Trackback from your site.

Sean Wallbridge

Sean Wallbridge, President and Principal Consultant of itgroove Professional Services Ltd, is a 5 time SharePoint MVP and Evangelist from Victoria, British Columbia, Canada. Sean likes to characterize himself as a “SharePoint Jedi” (there are no experts, just those who continue to explore the enormous ways of the SharePoint force) and there is no better way to describe Sean’s enthusiasm for SharePoint! Sean and itgroove specialize in bringing a rich, professional SharePoint experience to the small and mid-size companies that form the backbone of business in British Columbia and Canada. In addition to being a SharePoint MVP, Sean has a rich background in the Windows world and carries many certifications including CISSP, MCSE, MCT and MCSA. Sean has lived and worked internationally (Bermuda) and still carries on an international consulting practice from his base at itgroove in Victoria

Comments (2)

  • Sean Wallbridge

    |

    Funny, I’ll be the first to comment on this blog post. ;)

    I’m no doubt going to be told that I could use PowerShell for this. And I’ve tried, but I haven’t had the same mileage in this goofy situation…

    Just sayin… If you want to try the PowerShell equivalent, here you go:

    Disable-SPFeature FeatureFolderName -Url “http://*url of site collection”

    Enable-SPFeature FeatureFolderName -Url “http://*url of site collection”

    Reply

  • Heather Macintosh

    |

    I used PowerShell but found that if I didn’t include the -force attribute when enabling the feature, I still got the error.

    Reply

Leave a comment