Provisioning a SharePoint 2010 List Instance Causes Exception in a Site Scoped Feature


Provisioning a list using the ListInstance element causes an exception, if the element is included in a Site scoped feature and the RootWebOnly attribute is set to TRUE.

Setting RootWebOnly to FALSE, or removing the attribute, works as expected.

<ListInstance Title="Balancesheet Status Indicators"
				Description="Status Indicator List for the Balancesheet BI Report"
				Url="Lists/Balancesheet Status Indicators"
				TemplateType="432"
				FeatureId="065c78be-5231-477e-a972-14177cc5b3c7"
				OnQuickLaunch="FALSE"
				RootWebOnly="TRUE" />

If the ListInstance element, as shown above, is included in a Web scoped feature, it works as expected.

Published by

Phil Harding

SharePoint Consultant, Developer, Father, Husband and Climber.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s