SPC015105: Declare required attributes in Field

Required attributes ID, Name and Type must be declared in Field.

TypeName: DeclareAllRequiredAttributesInFields
CheckId: SPC015105
Severity: CriticalWarning
Type: FieldDefinition
Resolution

Add missing required attribute to a Field. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   ...
   <Field  
      ID="{060e50ac-e9c1-4d3c-b1f9-de0bcac300f6}"
      Name="Amount"
      DisplayName="Amount"
      Type="Currency"
      Decimals="2"
      Min="0"
      Required="FALSE"
      Group="Financial Columns" />
   ...
</Elements>

Remarks

According to MSDN the attribute 'Required' is also required. Reality shows that SharePoint does not expect the attribute. Therefore SPCAF does not require the attribute.

comments powered by Disqus