# Bulk Update Case | 504 Gateway Time Out.

**URL:** <https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495>\
**Category:** General\
**Tags:** 8-7, case-management\
**Created:** [May 19, 2023, 2:31am UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495 "2023-05-19T02:31:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [May 19, 2023, 2:31am UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/1 "2023-05-19T02:31:27Z")

</div>

Hi!!

Often we get requirement to bulk update cases. For ex 2000 cases in application and we need to set value of one property in these 2000 cases.

We do this by using Bulk update activities. But when we run this activity we often get error 504 GATEWAY TIME OUT.

What is the best way to do bulk update?

And why we get this 504 error while doing bulk update with activity.

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [May 19, 2023, 4:06am UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/2 "2023-05-19T04:06:30Z")

</div>

@AbhishekC1725 you can use queue processor to execute the activity so it will run in the background. This should work fine.

---

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [May 19, 2023, 2:07pm UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/3 "2023-05-19T14:07:33Z")

</div>

@Anoop Krishna Can we use Job Scheduler also for running this activity?

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [May 19, 2023, 2:14pm UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/4 "2023-05-19T14:14:55Z")

</div>

@AbhishekC1725 yaa sure you can. Your scenario is to do bulk update on frequent basis or do you have any screen to trigger this bulk update?

---

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [May 19, 2023, 4:32pm UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/5 "2023-05-19T16:32:26Z")

</div>

@Anoop Krishna you can on 4-5 months/ quarter end/ or when we need to introduce new field in our application case and set some default value on that field.

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [May 19, 2023, 5:04pm UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/6 "2023-05-19T17:04:25Z")

</div>

@AbhishekC1725 is there any reason why default value is not during case processing itself?

---

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [May 20, 2023, 12:27pm UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/7 "2023-05-20T12:27:41Z")

</div>

@Anoop Krishna No specific reason as per my knowledge.

---

<div class="post-metadata">

**Author:** ![Anoop\_Krishna](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/anoop_krishna/32/23458_2.png) [@Anoop\_Krishna](https://forums.pega.com/u/Anoop_Krishna)\
**Post date:** [May 20, 2023, 2:22pm UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/8 "2023-05-20T14:22:47Z")

</div>

@AbhishekC1725 okay, then better to keep the default value setting in case processing itself.

---

<div class="post-metadata">

**Author:** ![AbhishekC1725](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@AbhishekC1725](https://forums.pega.com/u/AbhishekC1725)\
**Post date:** [May 21, 2023, 3:51am UTC](https://forums.pega.com/t/bulk-update-case-504-gateway-time-out/4495/9 "2023-05-21T03:51:41Z")

</div>

@Anoop Krishna Ok Thanks.
