Expand Minimize

SPC015201: Do not define ContentType ID longer than 1024 characters

Content type IDs have a maximum length of 512 bytes. Because two hexadecimal characters can fit in each byte, each content type ID has an effective maximum length of 1024 characters.

CheckId SPC015201
TypeName DoNotDefineContentTypeIDWithMoreThan1024Characters
Severity Error
Type ContentType

Reduce the number of characters to less than 1024 characters in the ID of the ContentType.

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":"SPC015201:DoNotDefineContentTypeIDWithMoreThan1024Characters","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 AB. 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.