SPC015405: Remove curly brackets from attribut FeatureId in ListInstance

Curly brackets should be removed from attribute 'FeatureId' in ListInstance.

TypeName: RemoveCurlyBracketsFromFeatureIdInListInstance
CheckId: SPC015405
Severity: Warning
Type: ListInstanceDefinition
Resolution

Remove curly brackets from attribute 'FeatureId' in ListInstance. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <ListInstance  
      Id="WssAdminTasks"  
      Title="Administrator Tasks"  
      TemplateType="1200"  
      FeatureId="00bfea71-de22-43b2-a848-c05709900100"
      Url="Lists/ListInstance2" >
   </ListInstance>
</Elements>

Remarks

The MSDN documentation does not state explicitly that curly brackets are not allowed in attribute 'FeatureId'. However, in all samples in MSDN the attribute contains no curly brackets. To achieve an universal appearance of this attribute the curly brackets should be removed.

comments powered by Disqus