# "Batch Error" on updating records in the table

**URL:** https://community.dreamfactory.com/t/batch-error-on-updating-records-in-the-table/3701
**Category:** REST API
**Created:** [March 9, 2017, 12:56pm UTC](https://community.dreamfactory.com/t/batch-error-on-updating-records-in-the-table/3701 "2017-03-09T12:56:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Nishant\_Soni](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/nishant_soni/32/954_2.png) [@Nishant\_Soni](https://community.dreamfactory.com/u/Nishant_Soni)
#### Post date: [March 9, 2017, 12:56pm UTC](https://community.dreamfactory.com/t/batch-error-on-updating-records-in-the-table/3701/1 "2017-03-09T12:56:55Z")

</div>

Hi,

I am calling the API via AJAX , When i am trying to update records in the table, all records are updating successfully, but API returns  
" **errorBatch Error: Not all records could be patched**" with the 400 error code.

Please suggest me to solve this problem.

---

<div class="post-metadata">

### Author: ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)
#### Post date: [March 14, 2017, 11:11am UTC](https://community.dreamfactory.com/t/batch-error-on-updating-records-in-the-table/3701/2 "2017-03-14T11:11:00Z")

</div>

Hi @Nishant_Soni!

How many itens do you have in request?

---

<div class="post-metadata">

### Author: ![Nishant\_Soni](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/nishant_soni/32/954_2.png) [@Nishant\_Soni](https://community.dreamfactory.com/u/Nishant_Soni)
#### Post date: [March 14, 2017, 11:28am UTC](https://community.dreamfactory.com/t/batch-error-on-updating-records-in-the-table/3701/3 "2017-03-14T11:28:02Z")

</div>

Hi @paulo.hgf1408,

I have multiple records in the request. Records may be 1 or more than 1 (it is dynamic).

But now some times i am getting error, some times it is working fine.

---

<div class="post-metadata">

### Author: ![paulo.hgf1408](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/paulo.hgf1408/32/751_2.png) [@paulo.hgf1408](https://community.dreamfactory.com/u/paulo.hgf1408)
#### Post date: [March 14, 2017, 11:50am UTC](https://community.dreamfactory.com/t/batch-error-on-updating-records-in-the-table/3701/4 "2017-03-14T11:50:08Z")

</div>

I have DF 2.4.2 and i solved this problem with blocks requests.  
This blocks contais ten itens its no perfect solution but its work.

---

<div class="post-metadata">

### Author: ![Nishant\_Soni](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/nishant_soni/32/954_2.png) [@Nishant\_Soni](https://community.dreamfactory.com/u/Nishant_Soni)
#### Post date: [March 14, 2017, 12:32pm UTC](https://community.dreamfactory.com/t/batch-error-on-updating-records-in-the-table/3701/5 "2017-03-14T12:32:16Z")

</div>

I have also DF 2.4.2, and i will also try this solution.
