Email Subject Length

DK41
Kilo Explorer

Hi ,

I have a problem with the subject in the email notifications.The subject gets truncated in the email.

Intiially the max length of the subject was 100 in template notification and also in email logs .I have changed the max length in all the 3 places to 200 it made no change ..made it to 1000 didnt make a change , and also i have personalized style with width = 800px that didnt work and also changed it eo 1300 px ..that also didnt work.

Am I missing anything or is it some database related issue.

Please help as we have a high priority where we have this issue for more than 5 notiifixcations which has been a big issue.

Thanks for your help.

DK

8 REPLIES 8

Hi Adam,



I'm answering to this old post because we had the same issue on our ServiceNow instance and we couldn't find any answer.



we had the same issue with the subject length, that was occurring only in pre-production and production instances, not on our development environment.



We have found out that it is due to the modification to the field length of a rotated table carried between instances using update sets. In this case the modification is applied only to the "parent" table of a table rotation and not to the rotated tables (shards).



In our case, table sys_email had the subject field with length 350, while all sys_email0001...sys_email0099 had the previous value, 160.



To apply modifications to rotated tables in different environments, you need to either apply the modification manually on all environments (remember to exclude the update from the update set!) or to synchronize the shards of the rotated table using the dedicated UI action on the table rotation group form.


This is due to restrictions inherent to Email:



What is the email subject length limit? - Stack Overflow



Bottom line: it makes sense that the subjects gets no longer than the default 160 characters.



If this answer was helpful, I would appreciate if you marked it as such - thanks!

Best
Daniel

Hi you need to change the character limit of Subject in sys_email table. wiki.PNG


lSurya 24
Giga Guru

Hello DK,



Please find the below link for the size of the field type "string"



https://www.servicenowguru.com/scripting/client-scripts-scripting/maximum-length-large-string-fields...



Thanks,


Surya Amara



PS: Hit like, Helpful or Correct depending on the impact of the response