Change Page Layout Error

Posted: March 17, 2010 in Pages, SharePoint, SharePoint Designer

Sometimes you copy the Page Layouts to another server or another web application. In these scenarios you may encounter some problems in cases that you want to modify the page in browser or SharePoint Designer. For example when you want to modify the page in browser you may encounter this problem “Value does not fall within the expected range”. Or if you try to modify the page in the SharePoint Designer and you try to detach the Page from its Page Layout (To customize), the system gives you an error.

This is because the codes in the page are using the Page Layout with the old URL. So you should modify this URL in the page code.

You can do this by:

  1. Select the Page in SharePoint Designer and Export it (File > Export) to your hard drive.
  2. Open the exported file in an editor like Notepad.
  3. Search for “mso:PublishingPageLayout”. You will find that the URL inside this tag is invalid.
  4. So Change the URL and Import the file to the new server.

I found the solution in this blog and it was helpful to me. Thanks to ¥ong¥s .

  1. Andrew says:

    Thank you!

    Stright to the point, and fixed my problem without risk to the rest of the site.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s