# Compatibility issues in Watcher?

**URL:** https://discuss.elastic.co/t/compatibility-issues-in-watcher/57154
**Category:** Elasticsearch
**Tags:** elastic-stack-alerting
**Created:** [August 3, 2016, 9:37pm UTC](https://discuss.elastic.co/t/compatibility-issues-in-watcher/57154 "2016-08-03T21:37:49Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![kartikvelastic](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kartikvelastic](https://discuss.elastic.co/u/kartikvelastic)
#### Post date: [August 3, 2016, 10:50pm UTC](https://discuss.elastic.co/t/compatibility-issues-in-watcher/57154/2 "2016-08-03T22:50:36Z")

</div>

Allright this issue was resolved via:

> [@Watcher Condition "script" : { "script" : ""}}. Not working](https://discuss.elastic.co/t/watcher-condition-script-script-not-working/39710/5):
>
> Im also receiving the same error when attempting to setup a new watch. { "error": { "root\_cause": [{ "type": "script\_exception", "reason": "failed to compile script [ScriptException[scripts of type [inline], operation [elasticsearch-watcher\_watch] and lang [groovy] are disabled]] with lang [if (ctx.payload.aggregations.minutes.buckets.size() == 0) return false; def latest = ctx.payload.aggregations.minutes.buckets[-1]; def node = latest.nodes.buckets[0]; return node && node.memory && node…

---

_[View the full topic](https://discuss.elastic.co/t/compatibility-issues-in-watcher/57154)._
