Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

String field is taking more than 4000 characters

Mahendra RC
Mega Sage

Hi All,

I have created a string field with Maxlength value as 4000. But when I am trying to insert more than 4000 character in this string field it is taking the data and saving it in table. As per the requirement it should not allow users to enter more than 4000 characters. Below is the attached screenshot of field accepting more than 4000 characters:

find_real_file.png

I am using developer instance Jakarta version. I have verified this on 2 jakarta version SN instance.

Can anyone please help me to know how can I achieve this.

Thanks & Regards,

Mahendra Choudhary

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

Hi Mahendra,

 

Its a known issue when character limit is set to more than 255. You may refer link for additional information.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

View solution in original post

2 REPLIES 2

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

A string field with more than 255 characters is created on database side as a mediumtext type and the length restriction is imposed from the platform side rather than database side.


Can you tell me which release of Jakarta you used, I would like to replicate and see if we need to open a problem for this.

 

Regards,

Sergiu

Jaspal Singh
Mega Patron
Mega Patron

Hi Mahendra,

 

Its a known issue when character limit is set to more than 255. You may refer link for additional information.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.