# Validation failed, source is missing? what does this mean

**URL:** <https://discuss.elastic.co/t/validation-failed-source-is-missing-what-does-this-mean/20066>\
**Category:** Elasticsearch\
**Created:** [October 3, 2014, 3:34pm UTC](https://discuss.elastic.co/t/validation-failed-source-is-missing-what-does-this-mean/20066 "2014-10-03T15:34:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitsofinfo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bitsofinfo/32/459_2.png) [@bitsofinfo](https://discuss.elastic.co/u/bitsofinfo)\
**Post date:** [October 3, 2014, 3:34pm UTC](https://discuss.elastic.co/t/validation-failed-source-is-missing-what-does-this-mean/20066/1 "2014-10-03T15:34:07Z")

</div>

Hi,  
What does this error mean (es 1.3.2) when I do a delete by query?

DELETE such as /myIndex/type/\_query

{  
"query": {  
"term": {  
"term": "whatever"  
}  
}  
}

RESPONSE

{

- error: ActionRequestValidationException[Validation Failed: 1: source  
is missing;]
- status: 500

}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [October 3, 2014, 4:05pm UTC](https://discuss.elastic.co/t/validation-failed-source-is-missing-what-does-this-mean/20066/2 "2014-10-03T16:05:34Z")

</div>

Hi ,

Can you paste the complete curl query.  
I see this when i forget to put the -d flag for data.

Thanks  
Vineeth

On Fri, Oct 3, 2014 at 9:04 PM, [bitsofinfo.g@gmail.com](mailto:bitsofinfo.g@gmail.com) wrote:

> Hi,  
> What does this error mean (es 1.3.2) when I do a delete by query?
> 
> DELETE such as /myIndex/type/\_query
> 
> {  
> "query": {  
> "term": {  
> "term": "whatever"  
> }  
> }  
> }
> 
> RESPONSE
> 
> {
> 
> - error: ActionRequestValidationException[Validation Failed: 1: source  
> is missing;]
> - status: 500
> 
> }
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGdPd5mK3owG4sGjkmQnSfDnh%2BZauGSUFN4p-XvP%3DVP7xoRvKQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5mK3owG4sGjkmQnSfDnh%2BZauGSUFN4p-XvP%3DVP7xoRvKQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bitsofinfo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bitsofinfo/32/459_2.png) [@bitsofinfo](https://discuss.elastic.co/u/bitsofinfo)\
**Post date:** [October 3, 2014, 5:58pm UTC](https://discuss.elastic.co/t/validation-failed-source-is-missing-what-does-this-mean/20066/3 "2014-10-03T17:58:18Z")

</div>

I'm doing this through the es-head plugin, not curl

On Friday, October 3, 2014 10:05:42 AM UTC-6, vineeth mohan wrote:

> Hi ,
> 
> Can you paste the complete curl query.  
> I see this when i forget to put the -d flag for data.
> 
> Thanks  
> Vineeth
> 
> On Fri, Oct 3, 2014 at 9:04 PM, \<[bitsof...@gmail.com](mailto:bitsof...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hi,  
> > What does this error mean (es 1.3.2) when I do a delete by query?
> > 
> > DELETE such as /myIndex/type/\_query
> > 
> > {  
> > "query": {  
> > "term": {  
> > "term": "whatever"  
> > }  
> > }  
> > }
> > 
> > RESPONSE
> > 
> > {
> > 
> > - error: ActionRequestValidationException[Validation Failed: 1:  
> > source is missing;]
> > - status: 500
> > 
> > }
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8da52ae7-9961-4acd-add4-1c65ebfb7766%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8da52ae7-9961-4acd-add4-1c65ebfb7766%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![bitsofinfo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bitsofinfo/32/459_2.png) [@bitsofinfo](https://discuss.elastic.co/u/bitsofinfo)\
**Post date:** [October 3, 2014, 6:00pm UTC](https://discuss.elastic.co/t/validation-failed-source-is-missing-what-does-this-mean/20066/4 "2014-10-03T18:00:08Z")

</div>

Even if i do it like this, same thing

DELETE /index/type/\_query?term:value

On Friday, October 3, 2014 11:58:18 AM UTC-6, [bitsof...@gmail.com](mailto:bitsof...@gmail.com) wrote:

> I'm doing this through the es-head plugin, not curl
> 
> On Friday, October 3, 2014 10:05:42 AM UTC-6, vineeth mohan wrote:
> 
> > Hi ,
> > 
> > Can you paste the complete curl query.  
> > I see this when i forget to put the -d flag for data.
> > 
> > Thanks  
> > Vineeth
> > 
> > On Fri, Oct 3, 2014 at 9:04 PM, [bitsof...@gmail.com](mailto:bitsof...@gmail.com) wrote:
> > 
> > > Hi,  
> > > What does this error mean (es 1.3.2) when I do a delete by query?
> > > 
> > > DELETE such as /myIndex/type/\_query
> > > 
> > > {  
> > > "query": {  
> > > "term": {  
> > > "term": "whatever"  
> > > }  
> > > }  
> > > }
> > > 
> > > RESPONSE
> > > 
> > > {
> > > 
> > > - error: ActionRequestValidationException[Validation Failed: 1:  
> > > source is missing;]
> > > - status: 500
> > > 
> > > }
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/9d8e26ee-ea82-4f78-b9c1-434767b2f621%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ffbfb061-51a3-4664-924a-0e2a212f3f5a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ffbfb061-51a3-4664-924a-0e2a212f3f5a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:58am UTC](https://discuss.elastic.co/t/validation-failed-source-is-missing-what-does-this-mean/20066/5 "2017-07-06T00:58:22Z")

</div>


