Expand Minimize

SPC016502: Define attribute 'ID' with curly brackets in FieldRef

The attribute 'ID' in elements of type 'FieldRef' should start and end with '}'. Otherwise they may not work correctly.

CheckId SPC016502
TypeName DefineValidIDInFieldRef
Severity Error
Type FieldRef

Add characters '{...}' at start and end of attribute 'ID' in element FieldRef. The field ID is the string representation of a GUID, including braces. The value is case sensitive.

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":"SPC016502:DefineValidIDInFieldRef","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.