Expand Minimize

Define attribute 'ID' with curly brackets in RemoveFieldRef

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

CheckId SPC016603
TypeName DefineValidIDInRemoveFiedRef
Severity Error
Type RemoveFieldRef

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

<FieldRefs>
   <RemoveFieldRef ID="{67df98f4-9dec-48ff-a553-29bece9c5bf4}" Name="Attachments" />
   <RemoveFieldRef ID="{f1e020bc-ba26-443f-bf2f-b68715017bbc}" Name="WorkflowVersion" />
   ...
</FieldRefs>

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":"SPC016603:DefineValidIDInRemoveFiedRef","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.