Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

PageLayout exceiption for Customized pages

  Asked By: Dominic    Date: Apr 06    Category: Sharepoint    Views: 852

We're experiencing a problem where many of our files somehow got into
a "customized" (SPCustomizedPageStatus.Customized) state. Our site
was developed and created using all uncustomized
(SPCustomizedPageStatus.None) files. It is currently unclear how or
why these files are becoming customized.

But once they do become customized, an exception is occurring in the
pubPage.Layout property of our PublishingPage, with a
System.ArgumentException: Value does not fall in the expected range
exception that we cannot get past. The Layout property is the only
property throwing an exception.

We've tried resetting the file through designer (using "Reset to site
definition") as well as programmatically setting the file back to
uncustomized (referencing the code in the following article:
stsadm.blogspot.com/2007/09/re-ghosting-pages.html), but the
pubPage.Layout still throws the exception.

Ultimately, we'd like to be able revert all of these files back to the
completely uncustomized state (SPCustomizedPageStatus.None). A
workaround for an alternative way to get the PageLayout of a file
would be helpful as well. As would any ideas as to how our
uncustomized files are getting into this customized state.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Glenda Roth     Answered On: Apr 06

I haven't done extensive research on this, but it appears that something
in the "Publishing Feature" unghosts pages  automatically. I suspect its
part of storing the page as an instance page to pre-combine the Layout
page and the content stored in the content type that will populate the
Field Controls at runtime, in essence pre-caching the results page in
the database. I don't think there is a way to get around it. Its part
of the design for publishing.

I should point out that this is all supposition, but it makes some
sense.

 
Didn't find what you were looking for? Find more on PageLayout exceiption for Customized pages Or get search suggestion and latest updates.