We're migrating from SP2007 to SP2010 and are seeing some error messages about missing web parts during the upgrade, but the error messages only list the GUID and not the web part name. Is there a way to easily get the web part name from a GUID? Maybe a PowerShell command?
|
|
Run the Get-SPFeature Powershell against your 2007 environment and it'll kick out a list of all of your features resolving the GUIDs to the names. Powershell Commands to List SharePoint Features To James' point, it sounds like you missed a step or two in your upgrade planning. Make sure you're running Test-SPContentDatabase before you kick off the actual upgrade to avoid those "oh by the way's" along the upgrade process.
|
|||||||
|
|
Then I've got some bad news for you as the only way to find out the answers for many of these issues is to dive into the content database directly via SQL Server Management Studio. I know, I know, according to MS, you aren't supposed to ever go into the SQL database. Unfortunately, they provide horribly inadequate tools when it comes to the 2007-2010 upgrade which leaves people with very few other options. In order to answer your specific question, you will need to run SQL like this:
(replacing the GUID with the web part type GUID you are looking for of course) That isn't the exact SQL you will need but should get you started toward finding those missing pieces. A large number of the issues you will hit in the pre-upgrade check can be identified by querying the WebParts and/or the AllDocs tables in some way. Note: this is just to help you identify the specifics of the issue - do not modify the data in any way. |
|||
|
|
One quick trick (which doesn't quite get you what you want, but will be helpful) is to add "?Contents=1" to the end of the URL for any page. This will show you the /_layouts/spcontnt.aspx page which displays all of the Web Parts which are on the page, including those which are closed. It's often the case that the issues are with closed Web Parts, and you can remove them from this page. (Always a good practice in any case.) If the issue persists, then you can see the GUIDs for some of the open Web Parts using the Developer Tools in IE7+ or Firebug in Firefox. You can use either tool to inspect the DON and search for the GUID. |
|||
|
|