Expand Minimize

Declare required attributes in RemoveFieldRef

Required attributes ID must be declared in RemoveFieldRef.

CheckId SPC016601
TypeName DeclareRequiredAttributesInRemoveFieldRef
Severity CriticalError
Type RemoveFieldRef

Add required attribute 'ID' to RemoveFieldRef. 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":"SPC016601:DeclareRequiredAttributesInRemoveFieldRef","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.