# Rules engine throws an error cannot load tasks, performance, contacts

**URL:** <https://forum.communityhealthtoolkit.org/t/rules-engine-throws-an-error-cannot-load-tasks-performance-contacts/5404>\
**Category:** Technical Support\
**Created:** [October 14, 2025, 7:11am UTC](https://forum.communityhealthtoolkit.org/t/rules-engine-throws-an-error-cannot-load-tasks-performance-contacts/5404 "2025-10-14T07:11:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Kiarie](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/ben_kiarie/32/2529_2.png) [@Ben\_Kiarie](https://forum.communityhealthtoolkit.org/u/Ben_Kiarie)\
**Post date:** [October 14, 2025, 7:11am UTC](https://forum.communityhealthtoolkit.org/t/rules-engine-throws-an-error-cannot-load-tasks-performance-contacts/5404/1 "2025-10-14T07:11:07Z")

</div>

Hey y’all I am experiencing an odd error

I can view Messages and Reports tab. However, I cannot view Tasks, Contacts and Performance.

When I click on Tasks and Performance I see this error

 ![Screenshot 2025-10-14 at 9.57.11 AM](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/0/0da310589cb13dc9196d52275253707f80429733.png)

When I visit Contacts I see this

 ![Screenshot 2025-10-14 at 10.01.30 AM](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/7/776cd0042a34d01c036650861485f89cc1c6cb09.png)

In the browser console I see two errors

```auto
feedback.service.ts:179 Error selecting contact Error: Rules Engine: Rules are not declarative.
Updates are required. 
at Object.<anonymous> (provider-wireup.js:35:13) at Generator.next (<anonymous>)
at Object.initialize (provider-wireup.js:33:13)
at Object.initialize (index.js:31:48)
at rules-engine.service.ts:126:32

```

and

```auto
Error fetching relevant forms TypeError: Cannot read properties of null (reading ‘doc’)
at contacts-content.component.ts:388:82
at Array.map ()
at contacts-content.component.ts:386:42
at xml-forms.service.ts:332:26

```

There are several things that make this error puzzling.

1. I don’t see any error in the api-logs.
2. The errors only appear when I login as a chw, but when I login with the medic admin, the components load fine.
3. Last week, the chw could login just fine.
4. I’ve tried changing DBs but I get the same behavior.
5. The same config / branch is working fine in another instance, it seems it’s something not quite right with my local instance.

Anyone with an idea what could be causing this issue?

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [October 14, 2025, 7:13am UTC](https://forum.communityhealthtoolkit.org/t/rules-engine-throws-an-error-cannot-load-tasks-performance-contacts/5404/2 "2025-10-14T07:13:08Z")

</div>

Hi @Ben_Kiarie

This is due to [Make declarative config mandatory · Issue #5906 · medic/cht-core · GitHub](https://github.com/medic/cht-core/issues/5906) being merged to latest `master`.  
Can you please recompile your configuration using the latest cht-conf and push it to your instance?

---

<div class="post-metadata">

**Author:** ![Ben\_Kiarie](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/ben_kiarie/32/2529_2.png) [@Ben\_Kiarie](https://forum.communityhealthtoolkit.org/u/Ben_Kiarie)\
**Post date:** [October 14, 2025, 7:45am UTC](https://forum.communityhealthtoolkit.org/t/rules-engine-throws-an-error-cannot-load-tasks-performance-contacts/5404/3 "2025-10-14T07:45:29Z")

</div>

Thanks Diana. I’ll do that and report back.

---

<div class="post-metadata">

**Author:** ![Ben\_Kiarie](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/ben_kiarie/32/2529_2.png) [@Ben\_Kiarie](https://forum.communityhealthtoolkit.org/u/Ben_Kiarie)\
**Post date:** [October 14, 2025, 11:18am UTC](https://forum.communityhealthtoolkit.org/t/rules-engine-throws-an-error-cannot-load-tasks-performance-contacts/5404/4 "2025-10-14T11:18:52Z")

</div>

That worked … also just going back to `4.21.x` branch worked so that i can mirror the deployed instance
