If you would like to discuss anything, please contact me via email: Howard.Bayliss@sequence.co.uk

Friday, February 18, 2011

SharePoint failed to retrieve field value

Issue: The Associated Content Type of a page layout is shown as "failed to retrieve field value".

After packaging and deploying some new page layouts, I went to the home page of a site collection and tried to put the default page into edit mode.

The following page error appeared: "Value does not fall within the expected range".

The stack trace wasn't very helpful. However, when I looked at the "Master Page" gallery using the Site Content and Structure tool, I noticed the issue described above. Here is a screen shot, with the problem highlighted in yellow:




I went back to the module definition for the page layout and compared it with some others in the same file.

The error was caused because of a missing # symbol, which should have preceeded the content type reference. This is shown below, again with the issue highlighted:

No comments:

Post a Comment