# Unexpected Rule Failure

**URL:** https://discuss.elastic.co/t/unexpected-rule-failure/364137
**Category:** Kibana
**Created:** [July 31, 2024, 1:39pm UTC](https://discuss.elastic.co/t/unexpected-rule-failure/364137 "2024-07-31T13:39:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)
#### Post date: [July 31, 2024, 1:39pm UTC](https://discuss.elastic.co/t/unexpected-rule-failure/364137/1 "2024-07-31T13:39:52Z")

</div>

Hello,

I created a Elasticsearch Query Rule awhile back about 8 months ago. This rule appeared to be working as expected until recently it was brought to my attention that it stopped working.

I checked the alert and it said 'Failure' and had this:

> execution failed - Cannot read properties of undefined (reading 'getUuid')

I resolved it oddly by just removing a recipient. Perhaps it needed to be updated.

My question is what does this error mean? How can I prevent from failures occurring or detect failures across all spaces?

Elasticsearch/Kibana: 8.14.1

---

<div class="post-metadata">

### Author: ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)
#### Post date: [August 5, 2024, 6:27pm UTC](https://discuss.elastic.co/t/unexpected-rule-failure/364137/2 "2024-08-05T18:27:56Z")

</div>

Hi @erikg,

I think this may have to user roles according [to this older forum post on the subject.](https://discuss.elastic.co/t/error-cannot-read-properties-of-undefined-reading-includes/303696/3) So my guess here is that you removed a user who did not have the proper role.

---

<div class="post-metadata">

### Author: ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)
#### Post date: [August 5, 2024, 6:53pm UTC](https://discuss.elastic.co/t/unexpected-rule-failure/364137/3 "2024-08-05T18:53:55Z")

</div>

@jessgarson  
I think your right, but I might need to create a support ticket.

Today another different unrelated rule, kept failing and then succeeding with the same issue:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/9/c9ab8bdbc3fd0d2f15a42a19703a43ee7c21e918.png)

---

<div class="post-metadata">

### Author: ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)
#### Post date: [August 5, 2024, 7:05pm UTC](https://discuss.elastic.co/t/unexpected-rule-failure/364137/4 "2024-08-05T19:05:01Z")

</div>

Looks like this is a bug!  
[[Response Ops][Alerting] Cannot read properties of undefined (reading 'getUuid') · Issue #189551 · elastic/kibana (github.com)](https://github.com/elastic/kibana/issues/189551)

---

<div class="post-metadata">

### Author: ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)
#### Post date: [August 5, 2024, 7:08pm UTC](https://discuss.elastic.co/t/unexpected-rule-failure/364137/5 "2024-08-05T19:08:49Z")

</div>

Interesting. Thanks so much, @erikg! I think that's right.
