Thursday, April 19, 2012

Missing social webparts in Ribbon after migrating from SharePoint 2007

After migrating our SharePoint 2007 envoirement to SharePoint 2010 we where missing the new cool webparts SharePoint 2010 gave us. The following webparts are missing in the updated site:
  • Dual Chinese Search 
  • Note Board 
  • Organization Browser
  • People Refinement Panel 
  • Refinement Panel
  • Tag Cloud
After some research we found out that those webparts are missing in the "webpartdwpfiles.xml". The reason this file is out of sync is because the PortalLayouts feature already is installed in SharePoint 2007 but has changed in SharePoint 2010. 
If we look at the differents we see that the six webparts i mentioned above  are missing in the 2007 version of the "webpartdwpfiles.xml" and there are three webparts deleted form the xml file. The following webparts are not in the 2010 version.
  • I need to… (TaskAndTools.webpart) 
  • This Week in Pictures (ThisWeekInPictures.dwp)
  • Top Sites (TopSitesWebPart.webpart)
When u do an update you still have the removed webparts in the webpart gallery.
We’re interested in adding the new SharePoint 2010 web parts to the site collection’s web part gallery.  You can manually upload them if you so choose.  However, I’m not really a fan of that solution, but it will work in a pinch.  Instead my solution now is to activate the PortalLayouts feature again.  The feature is hidden, so your best bet to do this is with PowerShell.  We do this with the Enable-SPFeature cmdlet.  Since the feature was technically already activated in SharePoint 2007, we have to use the –force parameter.  Here is the complete command for a root site located at http://sharepoint2010.

Enable-SPFeature –Identity PortalLayouts –url http://sharepoint2010 –force

If the command worked successfully, you should receive no errors and another command prompt.  At this point, you can add your new web parts to an existing page.  You should see three new ones in the Social section.

Popular Posts