# Watcher for email notification is in error state

**URL:** <https://discuss.elastic.co/t/watcher-for-email-notification-is-in-error-state/164591>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [January 17, 2019, 8:56am UTC](https://discuss.elastic.co/t/watcher-for-email-notification-is-in-error-state/164591 "2019-01-17T08:56:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_Emani](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gaurav\_Emani](https://discuss.elastic.co/u/Gaurav_Emani)\
**Post date:** [January 17, 2019, 8:56am UTC](https://discuss.elastic.co/t/watcher-for-email-notification-is-in-error-state/164591/1 "2019-01-17T08:56:46Z")

</div>

My watcher is in error state and keeps showing this exception even though the actual flow is working fine.  
GeneralScriptException[Failed to compile inline script [SOMETEXT\_{{ctx.vars.type}} not available at {{ctx.trigger.scheduled\_time}}] using lang [mustache]]; nested: CircuitBreakingException[[script] Too many dynamic script compilations within one minute, max: [15/min]; please use on-disk, indexed, or scripts with parameters instead; this limit can be changed by the [script.max\_compilations\_per\_minute] setting];

The exception mentions too many dynamic scripts but i do not have more than 2 watchers running at the same time.  
I would like to know how to fetch the actual error and how can get detailed logs on this.

---

<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:** [February 14, 2019, 8:56am UTC](https://discuss.elastic.co/t/watcher-for-email-notification-is-in-error-state/164591/2 "2019-02-14T08:56:52Z")

</div>

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