string field (with max_limit 4000) accepts more than 4000 characters limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2017 11:40 AM
Hi Team,
I found that when we create a string field with max_limit 4000, it is accepting more than 4000 characters in the field. When I enter more than 4000 characters and tried to save it, the form was saved successfully with more than 4000 characters. Would like to know why it is accepting like that as the field max_length having only 4,000. I would like to know if this issue is with out of box itself.
Thanks in advance.
Rao M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2017 11:49 AM
I hope this can give you some info on that.
see section 8.1 in below
http://wiki.servicenow.com/index.php?title=Introduction_to_Fields#Database_Field_Types&gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2017 02:16 PM
I've also found this interesting. A new call description (task.description) can be > 100,000 chars even though the specified max limit is 4,000. What is the purpose of this max limit if it's not enforced?
I've noticed in the dictionary there's fields of the same type (string) with char limits > 1,000,000.
Weird.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2017 07:27 AM
Hi Rao,
Per our wiki Database Field Types Wiki Article (http://wiki.servicenow.com/index.php?title=Introduction_to_Fields#Database_Field_Types&gsc.tab=0) the database may translate the value you provide in the max_length field to the closest matching database field type. On MYSQL instances, a 4000 character max_length maps to MEDIUMTEXT data type which has a maximum length of 16,777,215 (224 − 1) characters. MySQL :: MySQL 5.7 Reference Manual :: 11.1.3 String Type Overview
Best Regards,
Dante
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2018 09:07 AM
Hi,
If we set field max length to more than 255 then it is more characters than we expected.
I think its not about 4000