# TransportError: TransportError(429, 'circuit\_breaking\_exception', '\[parent\] Data too large,

**URL:** https://discuss.elastic.co/t/transporterror-transporterror-429-circuit-breaking-exception-parent-data-too-large/254161
**Category:** Elasticsearch
**Created:** [November 3, 2020, 1:12pm UTC](https://discuss.elastic.co/t/transporterror-transporterror-429-circuit-breaking-exception-parent-data-too-large/254161 "2020-11-03T13:12:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![subham\_p](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@subham\_p](https://discuss.elastic.co/u/subham_p)
#### Post date: [November 3, 2020, 1:12pm UTC](https://discuss.elastic.co/t/transporterror-transporterror-429-circuit-breaking-exception-parent-data-too-large/254161/1 "2020-11-03T13:12:26Z")

</div>

elasticsearch  
Version: 7.8.0  
Summary: Python client for Elasticsearch

```auto
TransportError: TransportError(429, 'circuit_breaking_exception', '[parent] Data too large, data for [<http_request>] would be [2128807074/1.9gb], which is larger than the limit of [2040109465/1.8gb], real usage: [2128646072/1.9gb], new bytes reserved: [161002/157.2kb], usages [request=0/0b, fielddata=1186/1.1kb, in_flight_requests=161002/157.2kb, model_inference=0/0b, accounting=10784126/10.2mb]')

```

Is there any way to fix this error?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 3, 2020, 1:24pm UTC](https://discuss.elastic.co/t/transporterror-transporterror-429-circuit-breaking-exception-parent-data-too-large/254161/2 "2020-11-03T13:24:08Z")

</div>

Could you tell what code is causing this?

---

<div class="post-metadata">

### Author: ![subham\_p](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@subham\_p](https://discuss.elastic.co/u/subham_p)
#### Post date: [November 4, 2020, 5:06am UTC](https://discuss.elastic.co/t/transporterror-transporterror-429-circuit-breaking-exception-parent-data-too-large/254161/3 "2020-11-04T05:06:51Z")

</div>

Dear dadoonet,  
I am trying to push more than 10000 data to elk.

```auto
df1=df.to_dict('records')
def generator(df1):
    for c, line in enumerate(df1):
        yield {
        '_index':'in-dev-patient-summary-research_str', 
        '_id':line.get('summarized_test_data_id'),
        '_source':{
            'loinc_nm':line.get('loinc_nm'),
            'test_type':line.get('test_type'),
            'hos_patient_id':line.get('hos_patient_id'),
            'isactive':line.get('isactive'),
            
        }
             }
res=helpers.bulk(es,generator(df1),request_timeout=3600)

```

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 4, 2020, 5:58am UTC](https://discuss.elastic.co/t/transporterror-transporterror-429-circuit-breaking-exception-parent-data-too-large/254161/4 "2020-11-04T05:58:53Z")

</div>

Split what you have to send to elasticsearch in smaller bulk requests.

I'm normally not sending more than 10000 requests at once but it depends on the size of the documents.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 2, 2020, 5:58am UTC](https://discuss.elastic.co/t/transporterror-transporterror-429-circuit-breaking-exception-parent-data-too-large/254161/5 "2020-12-02T05:58:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
