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 – Ankit Katiyar Jul 19 '18 at 9:31
  • All these things are fine. It is not working when the value have more than 255 characters – Ankit Katiyar Jul 19 '18 at 9:46
  • have u updated the type of the column or created a new column – Sunil Sahu Jul 19 '18 at 10:48
  • I have created a new column – Ankit Katiyar Jul 19 '18 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 '18 at 10:58

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..? – Ankit Katiyar Jul 19 '18 at 11:09
  • Dont have with rest but you refer the link mosstechnet-kk.com/… – Sunil Sahu Jul 19 '18 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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