Expand Minimize

SPC082201: Declare FieldType in File 'fldtypes_[namespace].xml'

The XML file which contains FieldTypes should follow the pattern 'fldtypes_[Namespace].xml'. [Namespace] represents the name of the WSP solution with replaced '.' with underscore. Reason: All FieldTypes are deployed to folder /SharePointRoot/Templates/XML and therefore must be stored in a file with a unique filename to avoid overriding existing FieldTypes from SharePoint or other custom solutions.

CheckId SPC082201
TypeName DeclareFieldTypeInCorrectlyNamedFile
Severity Warning
Type FieldType

Rename the file according to the pattern 'fldtypes_[Namespace].xml'. If multiple files with FieldTypes are deployed the pattner is 'fldtypes_[Namespace]_[FieldName].xml'

To suppress this violation in XML SharePoint code add the following comment right before the XML tag which causes the rule violation. Learn more about SuppressMessage here.

<!-- "SuppressMessage":{"rule":"SPC082201:DeclareFieldTypeInCorrectlyNamedFile","justification":"Provide reason for suppression here"} -->
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.