# Email attachment greater than 5mb not getting picked

**URL:** <https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897>\
**Category:** User Experience\
**Tags:** financial-services, 7-3-1, solutions-consultant, user-experience\
**Created:** [November 16, 2021, 4:05am UTC](https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897 "2021-11-16T04:05:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MallikarjunA5355](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MallikarjunA5355](https://forums.pega.com/u/MallikarjunA5355)\
**Post date:** [November 16, 2021, 4:05am UTC](https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897/1 "2021-11-16T04:05:55Z")

</div>

Hi Team,

I was trying to find the configurations to verify how to increase the attachment size.

When i am sending email to a outlook mailbox with less than 5mb email listner is picking it up and doing things needed(creating workobject and other things).

But when the email attachment is greater than 5mb then the mail is not getting picked from the outlook.

I am not able to trace it why it is not picking.

I was looking where to increase the size.

Can someone please help me. I have see few things from pdn and tried but it didnot help me.

I updated the size in service email process tab.

I added few fields in DSS and have set them to 25 but no luck.

prconfig/services/emailmaxsize/default

indexing/attachmentsizethreshold

Initialization/MaximumFileUploadSizeMB

---

<div class="post-metadata">

**Author:** ![abdulq95](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/abdulq95/32/8139_2.png) [@abdulq95](https://forums.pega.com/u/abdulq95)\
**Post date:** [November 16, 2021, 4:29am UTC](https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897/2 "2021-11-16T04:29:14Z")

</div>

@MallikarjunA5355 have you tried looking into your server config.

not sure which server you are using a sample config to be added in web.xml looks like this

```auto
<max-file-size>83886080</max-file-size>
<max-request-size>83886080</max-request-size>

```

if you don’t have access to server engage your server administrator add the above change and have him bounce the server.

let me know if this works

---

<div class="post-metadata">

**Author:** ![MallikarjunA5355](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MallikarjunA5355](https://forums.pega.com/u/MallikarjunA5355)\
**Post date:** [November 16, 2021, 4:45am UTC](https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897/3 "2021-11-16T04:45:21Z")

</div>

@abdulq95 --Hi Thanks for your speedy response i will try and update.

There is no server admin as per my knowledge and application is in AWS and we are using jboss i could not see any web.xml only prconfig.xml and

/[config](https://stash.internal.macquarie.com/projects/MAMSYD/repos/pegainfra/browse/config?at=uat1)/jboss-eap.conf are there.

---

<div class="post-metadata">

**Author:** ![MallikarjunA5355](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MallikarjunA5355](https://forums.pega.com/u/MallikarjunA5355)\
**Post date:** [November 16, 2021, 5:29am UTC](https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897/4 "2021-11-16T05:29:11Z")

</div>

@abdulq95 Hi Adbul,

I verified the code and could find the below thing already in the config file.

But still not picking.

---

<div class="post-metadata">

**Author:** ![NEHAM736](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@NEHAM736](https://forums.pega.com/u/NEHAM736)\
**Post date:** [November 16, 2021, 5:36am UTC](https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897/5 "2021-11-16T05:36:01Z")

</div>

Hi @MallikarjunA5355,

We also faced similar issue and did below changes for Email Account, advanced section of receiver:

- Set _email/partialfetch_ dynamic system setting is set to true. This setting controls whether to use IMAP partial-fetch.
- Set the _email/fetchsize_ dynamic system setting to 1024000 bytes in advanced receiver. This setting controls the size of the fetch if IMAP partial-fetch is enabled.  
For Pega Platform 8.3 and later, the default value is 1024000 bytes. For Pega Platform versions prior to 8.3, the default value is 16 KB.

Using this we were able to attach 15MB email attachments(max outlook limit) also to case using listener in lesser duration.

---

<div class="post-metadata">

**Author:** ![MallikarjunA5355](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@MallikarjunA5355](https://forums.pega.com/u/MallikarjunA5355)\
**Post date:** [November 17, 2021, 5:07am UTC](https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897/6 "2021-11-17T05:07:47Z")

</div>

@NEHAM736 --Thank you this helped me in UAT need to implement in preprod and prod.

---

<div class="post-metadata">

**Author:** ![HarishS0](https://avatars.discourse-cdn.com/v4/letter/h/b38774/32.png) [@HarishS0](https://forums.pega.com/u/HarishS0)\
**Post date:** [October 21, 2022, 6:58pm UTC](https://forums.pega.com/t/email-attachment-greater-than-5mb-not-getting-picked/1897/7 "2022-10-21T18:58:18Z")

</div>

Hi @MallikarjunA5355

If you found the solution can you please help us we are also facing the similar issue. User is sending multiple files sometimes it is going with all the files size beyond 5mb and some times it is not going less than 3 mb and I don’t see any error in the log . Can you please help me if possible.

Well in advance thanks
