SPC015406: Deploy missing ListDefinition in CustomSchema of ListInstance

A ListInstance can directly reference a ListDefinition in attribute 'CustomSchema'. This ListDefinition must be depoyed in the same Feature as ElementFile.

TypeName: DeployMissingCustomSchemaForListInstance
CheckId: SPC015406
Severity: CriticalError
Type: ListInstanceDefinition
Resolution

Deploy the specified ListDefinition or remove the ListInstance. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <ListInstance
      TemplateType="121"
      Title="Solution Gallery"  
      Url="_catalogs/solutions"  
      CustomSchema="Files\_catalogs\solutions\Schema.xml"  
      RootWebOnly="TRUE" xmlns="http://schemas.microsoft.com/sharepoint/" />
</Elements>

Expected Schema.xml in Feature:

<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Id="a3342be9-2b7c-44c5-a0c5-0259343a4000" Scope="Web" ...>  
   <ElementManifests>
      <ElementFile Location="Files\_catalogs\solutions\Schema.xml" />
      ...
   </ElementManifests>
<Feature>

comments powered by Disqus