Migration from MOSS 2007 to SharePoint 2010 with Dutch language pack and Publishing template results in navigation error

Symptoms

On Microsoft Office SharePoint Server 2007:

You have installed the Dutch language pack. You created a publishing portal with SubSites and additional pages.

You want to migrate the content database to Microsoft SharePoint Server 2010 and attach the database to a new Web Application.

When you navigate to the homepage of the given Web Application you will see an error (Fout) and the navigation is not usable.

Cause

With Microsoft Office SharePoint Server 2007 we stored new Publishing Pages in a library called Pages. In SharePoint 2010 it has been translated to Paginas as the default for Dutch. The navigation code assumes that any changes from the default are noted in a specific property, which is not the case for upgraded Dutch sites that have been created with the 2007 default name.

Resolution

You need to set a particular property to the right value. To accomplish this start SharePoint Powershell and use the following script:

$site = Get-SPSite("http://WebApplicationURL")
foreach ($web in $site.AllWebs)
{
    Write-Output("web:" + $web.ServerRelativeUrl);
    $pageslistid = $web.AllProperties["__PagesListId"]

    if ([String]::IsNullOrEmpty($pageslistid))
    {
        Write-Output($web.ServerRelativeUrl +" doesn't have a pages list id set - skipping");
    }
    else
    {
        $pageslistguid = new-object System.Guid($pageslistid)
        $pageslist = $web.Lists[$pageslistguid]
        $pagesurl = $pageslist.RootFolder.Url
        $pb = $web.Properties;
        $pb.Add("__PagesListName", $pagesurl);
        $pb.Update();
        Write-Output($web.ServerRelativeUrl +" set pages list to " + $pagesurl);
    }
}

More Information

If you want to disable the Publishing feature for any reason and it will not be enabled again you can use the following workaround instead.

Adding a document-library called ‘Paginas’ to the web (subsite) on which you tried to activate the feature again. After that you may remove the temporary document library.
Properties

Article ID: 2484317 - Last Review: Jan 11, 2011 - Revision: 1

Microsoft SharePoint Server 2010

Feedback