SharePoint 2010: "Check names" results in "Item cannot be more than 256 characters"

Article ID: 2654222 - View products that this article applies to.
Expand all | Collapse all

Symptom

Consider the following scenario:

You copied a series of users as a string from Outlook and pasted it into a User Control inside a SharePoint 2010 site.
You click on the "Check Names" icon and get the following error message: 

"Item cannot be more than 256 characters."

Collapse this imageExpand this image
Error Message - Item cannot be more than 256 characters

Cause

This is a by-design behavior which has been introduced in SharePoint 2010 as a security measure.



Resolution

You still can insert up to 200 users inside a SharePoint 2010 user control box. You just need to use the "Check Names" control in smaller batches.
For example, you insert a number of users that add up to less than 256 characters and click the "Check Names" control. You then add another batch of users and click "Check Names", and so on until you have added and resolved all of the desired users.

More Information

The limitation of 200 users is defined by property DefaultMaximumEntities of Class PeopleEditor.

For more details, please check this MSDN article:

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.peopleeditor.defaultmaximumentities.aspx


Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2654222 - Last Review: January 10, 2012 - Revision: 5.0
APPLIES TO
  • Microsoft SharePoint Server 2010
  • Microsoft SharePoint Foundation 2010
Keywords: 
KB2654222

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com