# Validation error when trying to re-index

**URL:** <https://discuss.elastic.co/t/validation-error-when-trying-to-re-index/51464>\
**Category:** Elasticsearch\
**Created:** [May 31, 2016, 5:02pm UTC](https://discuss.elastic.co/t/validation-error-when-trying-to-re-index/51464 "2016-05-31T17:02:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prkvk](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@prkvk](https://discuss.elastic.co/u/prkvk)\
**Post date:** [May 31, 2016, 5:02pm UTC](https://discuss.elastic.co/t/validation-error-when-trying-to-re-index/51464/1 "2016-05-31T17:02:50Z")

</div>

I have an index say **test\_index** which I create using a template.

Everything was working fine until I tried to update the template, delete the index and create the index again with the updated template. (I did these steps successfully a couple of times).

I use the BulkRequestBuilder java API for indexing.

The error I get is  
`org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: source is missing`

Appreciate your help to resolve this issue please.

Thanks,  
Kavi

---

<div class="post-metadata">

**Author:** ![prkvk](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@prkvk](https://discuss.elastic.co/u/prkvk)\
**Post date:** [May 31, 2016, 7:35pm UTC](https://discuss.elastic.co/t/validation-error-when-trying-to-re-index/51464/2 "2016-05-31T19:35:27Z")

</div>

I figured it out. I accidentally removed the `setSource()` on `bulkRequest.add()` method !!

---

<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 5, 2017, 10:47pm UTC](https://discuss.elastic.co/t/validation-error-when-trying-to-re-index/51464/3 "2017-07-05T22:47:33Z")

</div>


