SPC015402: Declare required attributes in ListInstance

Required attributes TemplateType, Title and Url be declared in ListInstance.

TypeName: DeclareRequiredAttributesInListInstance
CheckId: SPC015402
Severity: CriticalError
Type: ListInstanceDefinition
Resolution

Add required attributes TemplateType, Title and Url to ListInstance.

Remarks

The attribute 'FeatureId' is also defined as Required in the documentation but it can be left empty and will not be checked by this rule.

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <ListInstance  
      Id="WssAdminTasks"  
      Title="Administrator Tasks"  
      Description="Create an Administrator Tasks list to track a group of admin work items."
      TemplateType="1200"  
      Url="Lists/AdminTasks">
      ...
   </ListInstance>
</Elements>

comments powered by Disqus