# I have issues with "ctx.payload.hits.total": null

**URL:** <https://discuss.elastic.co/t/i-have-issues-with-ctx-payload-hits-total-null/236118>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [June 8, 2020, 3:54am UTC](https://discuss.elastic.co/t/i-have-issues-with-ctx-payload-hits-total-null/236118 "2020-06-08T03:54:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gelvismo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gelvismo/32/79188_2.png) [@gelvismo](https://discuss.elastic.co/u/gelvismo)\
**Post date:** [June 8, 2020, 3:54am UTC](https://discuss.elastic.co/t/i-have-issues-with-ctx-payload-hits-total-null/236118/1 "2020-06-08T03:54:20Z")

</div>

"My Watcher results is the next, i dont know what does it mean."

"condition": {  
"type": "compare",  
"status": "success",  
"met": false,  
"compare": {  
"resolved\_values": {  
"ctx.payload.hits.total": null  
}  
}  
},  
"actions":   
},  
"messages":   
}

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 30, 2020, 8:02am UTC](https://discuss.elastic.co/t/i-have-issues-with-ctx-payload-hits-total-null/236118/2 "2020-06-30T08:02:04Z")

</div>

please take your time to explain your problem a bit more in detail. It is impossible to understand what you are after here. What I interpreted out of that is that `ctx.payload.hits.total` is null, but you do not expect it to be null. This could be because the field you are searching for is `ctx.payload.hits.total.value` but this is is just a guess and depends on the watch and how it is configured. Sharing the whole watch, plus your intent, plus the **full** output of the [Execute Watch API](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/watcher-api-execute-watch.html) would help a lot.

See [https://www.elastic.co/help](https://www.elastic.co/help)

---

<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 28, 2020, 8:02am UTC](https://discuss.elastic.co/t/i-have-issues-with-ctx-payload-hits-total-null/236118/3 "2020-07-28T08:02:11Z")

</div>

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