# Es highlevel client do bulk operations java.lang. IllegalStateException happened

**URL:** <https://discuss.elastic.co/t/es-highlevel-client-do-bulk-operations-java-lang-illegalstateexception-happened/190849>\
**Category:** Elasticsearch\
**Created:** [July 17, 2019, 1:55am UTC](https://discuss.elastic.co/t/es-highlevel-client-do-bulk-operations-java-lang-illegalstateexception-happened/190849 "2019-07-17T01:55:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [July 17, 2019, 12:43pm UTC](https://discuss.elastic.co/t/es-highlevel-client-do-bulk-operations-java-lang-illegalstateexception-happened/190849/2 "2019-07-17T12:43:11Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

Also what are the values of all the constants?

---

_[View the full topic](https://discuss.elastic.co/t/es-highlevel-client-do-bulk-operations-java-lang-illegalstateexception-happened/190849)._
