Home > Customizations, SharePoint > This field can have no more than 255 characters.

This field can have no more than 255 characters.

    Well you should have seen this message if you have a custom multiline column added to the SharePoint document library and try to add a text that is more than 255 Characters. And there is no way around to solve this issue in the SharePoint UI/ at least I didn’t find one so far.

Today I was trying to create a custom list template, and found an attribute called UnlimitedLengthInDocumentLibrary. This is the attribute that will solve your issue. And in case if you don’t want to create a custom List Template to solve this issue , there is a easier way around this.

Hope this helps!!!!

Categories: Customizations, SharePoint
  1. Andrew
    May 12, 2010 at 9:19 am

    namespace ABB.AttachementField.WebControls
    public class AttachementFieldControl : BaseFieldControl
    { …

    protected void SaveDates_OnClick(object sender, EventArgs e)
    if (this.Field.UnlimitedLengthInDocumentLibrary != true)
    this.Field.UnlimitedLengthInDocumentLibrary = true;
    this.Field.Update(); <= (exception)This functionality is unavailable for fields not associated with a list.
    Indeed i switched in xml to node and field to inherit from SPFieldMultiLineText

    what else?

  2. Bhavtosh
    June 7, 2010 at 4:25 pm

    thanks senthil,
    so as per your suggestion; how to code this script and deploy it on SP server?


  3. Haider
    February 23, 2011 at 12:38 pm

    Thank You, u just saved another programmer … 😀 u made my day ..

  4. December 22, 2011 at 4:42 pm

    This doesn’t work for me. I get no error, but the value of UnlimitedLengthInDocumentLibrary stays unchanged at False..
    Any clue?

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: