SPC015203: Declare required attributes in ContentType

Required attributes ID and Name must be declared in ContentType.

TypeName: DeclareRequiredAttributesInContentType
CheckId: SPC015203
Severity: CriticalError
Type: ContentTypeDefinition
Resolution

Add missing attribute 'ID' and 'Name' to ContentType. See sample below:

<ContentType
   ID="0x0101"
   Name="$Resources:Document"
   Group="$Resources:Document_Content_Types"
   Description="$Resources:DocumentCTDesc"
   V2ListTemplateName="doclib"
   Version="0">
   <FieldRefs>
      <RemoveFieldRef ID="{ae069f25-3ac2-4256-b9c3-15dbc15da0e0}" Name="GUID" />
      <FieldRef ID="{5f47e085-2150-41dc-b661-442f3027f552}" Name="SelectFilename" />
      ...
   </FieldRefs>   
</ContentType>

comments powered by Disqus