# Getting Exception with Versioning?

**URL:** <https://discuss.elastic.co/t/getting-exception-with-versioning/7124>\
**Category:** Elasticsearch\
**Created:** [March 26, 2012, 10:58am UTC](https://discuss.elastic.co/t/getting-exception-with-versioning/7124 "2012-03-26T10:58:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [March 26, 2012, 10:58am UTC](https://discuss.elastic.co/t/getting-exception-with-versioning/7124/1 "2012-03-26T10:58:19Z")

</div>

Hi All

I am using rabbitmq river to index document.i need to  
implement Versioning,i have prepared following message format:

{ "create" : { "\_index" :"idx\_testtable", "\_type" :"test\_type", "\_id"  
:"1","\_version" :1}}  
{ "test\_type" :{"id":1,"Description":"A computer is a programmable machine  
designed to sequentially and automatically carry out a sequence of  
arithmetic or logical operations"}}  
{ "create" : { "\_index" :"idx\_testtable", "\_type" :"test\_type", "\_id"  
:"2","\_version" :1}}  
{ "test\_type" :{"id":2,"Description":"The particular sequence of operations  
can be changed readily, allowing the computer to solve more than one kind  
of problem."}}  
{ "create" : { "\_index" :"idx\_testtable", "\_type" :"test\_type", "\_id"  
:"3","\_version" :1}}  
{ "test\_type" :{"id":3,"Description":"hello-world"}}  
{ "create" : { "\_index" :"idx\_testtable", "\_type" :"test\_type", "\_id"  
:"4","\_version" :1}}

after publishing message it got following exception:

[2012-03-26 16:09:11,696][INFO][cluster.metadata] [Test]  
[idx\_testtable] update\_mapping [test\_type]  
[2012-03-26 16:09:11,783][WARN][river.rabbitmq] [Test]  
[rabbitmq][river] failed to executefailure in bulk execution:  
[0]: index [idx\_testtable], type [test\_type], id [1], message  
[VersionConflictEngineException[[idx\_testtable][2] [test\_type][1]: version  
conflict, current [-1], provided [1]]]  
[1]: index [idx\_testtable], type [test\_type], id [2], message  
[VersionConflictEngineException[[idx\_testtable][3] [test\_type][2]: version  
conflict, current [-1], provided [1]]]  
[2]: index [idx\_testtable], type [test\_type], id [3], message  
[VersionConflictEngineException[[idx\_testtable][4] [test\_type][3]: version  
conflict, current [-1], provided [1]]]  
[3]: index [idx\_testtable], type [test\_type], id [4], message  
[VersionConflictEngineException[[idx\_testtable][0] [test\_type][4]: version  
conflict, current [-1], provided [1]

Initially all document having version 1,after updation it incremented.  
please tell me implementing Versioning required,other configuration and  
also where the problem and solution.

Thanks

---

<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:** [July 6, 2017, 3:34am UTC](https://discuss.elastic.co/t/getting-exception-with-versioning/7124/2 "2017-07-06T03:34:50Z")

</div>


