Wednesday, 9 April 2014

Increase the attachment size to 10mb CRM 4

The default attachment file size limit in Microsoft Dynamic CRM 4.0 is 5 MB.  There is good reason for this - as a general rule you should be placing some restrictions on the amount of file data that can enter CRM so that the database can maintain a reasonable size and so that performance is optimized. However, your business may find the need to increase this size a little in order to handle larger file attachments.  Here are the instructions to increase the file size limit to 10 MB.  You can go larger than this, but pay close attention to the table size and performance over time as you want to keep CRM running as well as possible. Note - even though the System Settings option looks like this it would apply to email attachments only, it does apply to "notes" type attachments as well.  Finally, this procedure to change the max attachment size is not an officially published recommendation, so use this at your own risk. How to increase the max attachment size in CRM 4.0:

1.           Open the application web.config (C:\Inetpub\CRM\web.config).

2.           Locate the <httpRuntime> key within the <system.web> element and change the values to the following:
<httpRuntime executionTimeout="9999" maxRequestLength="10240"/>
3.           Locate the <httpRuntime> key within the <system.web> element of the <location path='MSCRMServices"> element, and change it to the following:
<httpRuntime maxRequestLength="10240"/>
4.           Save and close the web.config.

5.           Open the CRM web application (http://crm).

6.           Navigate to Settings | Administration | System Settings.

7.           Click the E-mail tab.

8.           Change the maximum file size (in kilobytes) field to 10240.

9.           Click Ok to save the changes.


10.        Perform IISReset. 

No comments:

Post a Comment