Maximum file size attachments - Incident Management

tom_brown
Kilo Explorer

Hi could you tell me the maximum size limit for an attachment in the Incident Management module please?

6 REPLIES 6

Jim Coyne
Kilo Patron

The following wiki article will show you how to find out the value in your instance - Administering Attachments - ServiceNow Wiki



It is a platform-wide limit and not based on application.   Email attachments are, however, limited to 25 MB.


Bhavesh Jain1
Giga Guru
Hi Tom,
I agree with Tom. In case you want to have a specific limit for incident management, you can write a business rule on sys_attachment table (Before Insert).
if(parseInt(current.size_bytes) > 1000000 && current.table_name == 'incident')
{
//Abort the insert if size is greater than 1MB --> 1000000bytes
gs.log('Size has been exceeded');
current.setAbortAction(true);
}
Regards,
Bhavesh

Syaharruddin
Mega Guru

This is an addendum to what Jim said. His link also contain another link to the attachment limit: http://wiki.servicenow.com/index.php?title=Email_Attachment_Limits



ServiceNow default for incoming & outgoing email attachment limit is 18 MB. The limit can be changed using the instructions in the link above.



P/s:


I found this post while researching an issue with missing scheduled report. If a user scheduled a report with attachment size greater than the set limit, the email will not go out at all (listed under System Mailboxes -> Failed). This is contrary to what ServiceNow wiki stated that the email will still go out minus the attachment. We're on Calgary Patch 3.



P/p/s:


The scheduled report that our user was trying to send had 5k rows but it was attached to the email as a 29 MB .xls file. If we saved the same file as an .xlsx, the file size drops to 5 MB. Go figure.


tony_fugere
Mega Guru

Tom,



To tag onto this thread (as I was searching for something else and stumbled upon this), also understand that ServiceNow currently has a hard size limit of 1GB baked into the Tomcat App behind the scenes. So, while the system properties allude to unlimited sizes of files, you will hit an application wall of 1GB.



Hope our answers have helped. Be sure to mark the thread answered so folks searching the community know the value of the responses within the thread.