I am using SharePoint REST API to update the values in columns in document library. Below is the code.

var url= "http://mycompany.sharepoint.com/site1/_api/Web/Lists/GetByTitle('My Library')/Items(7)/file/listitemallfields/ValidateUpdateListItem";
        'url': url,
        'method': 'POST',
        'data': JSON.stringify({
            'formValues': [
                '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
                'FieldName': 'NoteCol','FieldValue': 'Test Value'
            'bNewDocumentUpdate': true,
        'headers': {
            'accept': 'application/json;odata=verbose',
            'content-type': 'application/json;odata=verbose',
            'X-RequestDigest': $('#__REQUESTDIGEST').val()
        'success': function (data) {
        'error': function (err) {

The above code is working fine if the NoteCol column is of TEXT type. But my requirement is to make the column of type MULTILINE. But the above code is not working if I am trying to insert more than 255 characters which should not be the case as 255 characters if the limit for TEXT type column.

Any idea what is going wrong..

Thanks in advance..!!

  • Multiple Lines of Text Jul 19, 2018 at 9:31
  • All these things are fine. It is not working when the value have more than 255 characters Jul 19, 2018 at 9:46
  • have u updated the type of the column or created a new column
    – Sunil Sahu
    Jul 19, 2018 at 10:48
  • I have created a new column Jul 19, 2018 at 10:52
  • 1
    did you checked the "Allow unlimited length in document libraries checkbox." while creating the column in document library
    – Sunil Sahu
    Jul 19, 2018 at 10:58

1 Answer 1


While creating multi line text in document library if you don't check the Allow unlimited length in document libraries checkbox." then field validate you with limit of 255 characters.

  • One more thing...while we are creating this column through REST Api, what is the parameter that will set this limit..? Jul 19, 2018 at 11:09
  • Dont have with rest but you refer the link mosstechnet-kk.com/…
    – Sunil Sahu
    Jul 19, 2018 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.