# Failed to Complete action : create\_index in Elasticsearch AWS

**URL:** <https://discuss.elastic.co/t/failed-to-complete-action-create-index-in-elasticsearch-aws/202151>\
**Category:** Elasticsearch\
**Created:** [October 3, 2019, 10:56am UTC](https://discuss.elastic.co/t/failed-to-complete-action-create-index-in-elasticsearch-aws/202151 "2019-10-03T10:56:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![khushal\_adlakha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/khushal_adlakha/32/55327_2.png) [@khushal\_adlakha](https://discuss.elastic.co/u/khushal_adlakha)\
**Post date:** [October 3, 2019, 10:56am UTC](https://discuss.elastic.co/t/failed-to-complete-action-create-index-in-elasticsearch-aws/202151/1 "2019-10-03T10:56:13Z")

</div>

Hello all,

I am trying to insert multiple indices in Elasticsearch using single document API. I have around 9000 multiple indices. And each index has multiple documents.

single document API: `es.index(index=myObject._id, doc_type=doc_name, body=records,request_timeout=40)`

The process starts fine but interestingly enough after inserting 499 random indices (having multiple documents), I receive an error during inserting action.

The error is:

```auto
RequestError(400, 'illegal_argument_exception', '[9de9df3c092bfd8ae79870249a31cf28][x.x.x.x:9300][indices:admin/create]').

```

I am running Elasticsearch on AWS and I am using Python Elasticsearch Client

Is there anyone who can help me with this error?

Thanks  
Khushal Adlakha

---

<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:** [October 31, 2019, 10:56am UTC](https://discuss.elastic.co/t/failed-to-complete-action-create-index-in-elasticsearch-aws/202151/2 "2019-10-31T10:56:15Z")

</div>

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