# App Health and “Find references” do not detect runtime properties used in coded component scripts

**URL:** <https://community.appfarm.io/t/app-health-and-find-references-do-not-detect-runtime-properties-used-in-coded-component-scripts/2497>\
**Category:** Bug reports\
**Tags:** coded-component\
**Created:** [November 10, 2026, 12:16pm UTC](https://community.appfarm.io/t/app-health-and-find-references-do-not-detect-runtime-properties-used-in-coded-component-scripts/2497 "2026-11-10T12:16:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SigurdEileras](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sigurdeileras/32/2621_2.png) [@SigurdEileras](https://community.appfarm.io/u/SigurdEileras)\
**Post date:** [November 10, 2026, 12:16pm UTC](https://community.appfarm.io/t/app-health-and-find-references-do-not-detect-runtime-properties-used-in-coded-component-scripts/2497/1 "2026-11-10T12:16:46Z")

</div>

Hi:)

I have three runtime properties across two data sources. They are only used in the script of a coded component.

App Health reports them as unused and recommends deleting them. “Find references” also shows that they are never used.

I assumed I could trust the information in App Health and deleted them, but this broke critical parts of my app. There was also no warning on deletion that they were in use.

**Steps to reproduce:**

1. Create a runtime property on a data source.
2. Use it only in the script of a coded component.
3. Open App Health, or run “Find references” on the property.

// Sigurd

---

<div class="post-metadata">

**Author:** ![Eirik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/eirik/32/76_2.png) [@Eirik](https://community.appfarm.io/u/Eirik)\
**Post date:** [November 10, 2026, 1:05pm UTC](https://community.appfarm.io/t/app-health-and-find-references-do-not-detect-runtime-properties-used-in-coded-component-scripts/2497/2 "2026-11-10T13:05:47Z")

</div>

Hi Sigurd!

Thank you for your report. I was unable to reproduce it with the steps you provided.

Could you share some more details about your setup and the Appfarm version your solution is running?

Eirik

---

<div class="post-metadata">

**Author:** ![SigurdEileras](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sigurdeileras/32/2621_2.png) [@SigurdEileras](https://community.appfarm.io/u/SigurdEileras)\
**Post date:** [November 11, 2026, 9:16am UTC](https://community.appfarm.io/t/app-health-and-find-references-do-not-detect-runtime-properties-used-in-coded-component-scripts/2497/3 "2026-11-11T09:16:59Z")

</div>

Hi again,

I followed my own reproduction steps in a different solution and wasn’t able to reproduce it there either, so I did a deep dive into the Appfarm AI-generated JS in my coded component.

I found why it wasn’t detected, but I’m not sure whether this is intended behaviour from Appfarm or not.

The difference:

Not detected – the record is wrapped in another object and the property is read through the wrapper:

`const wrapped = appfarm.data.items.get().map(it => ({ ref: it }));`

`wrapped.forEach(w => console.log(w.ref.propA));`

Detected – the property is read directly on the record:

`appfarm.data.items.get().forEach(rec => console.log(rec.propA));`

So usage only seems to be detected when the property is accessed directly on the record returned from appfarm.data..get(), not when the record is aliased inside another object. I guess it makes sence.

While digging into this I also found a different bug in the detection of runtime properties:

If I have a runtime property (prop 1) on a data source, and prop 1 is only used inside the function that defines a second runtime property (prop 2) on the a different data source, then prop 1 is not detected as in use, neither in App Health nor in Find References.

// Sigurd

---

<div class="post-metadata">

**Author:** ![Eirik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/eirik/32/76_2.png) [@Eirik](https://community.appfarm.io/u/Eirik)\
**Post date:** [November 11, 2026, 1:28pm UTC](https://community.appfarm.io/t/app-health-and-find-references-do-not-detect-runtime-properties-used-in-coded-component-scripts/2497/4 "2026-11-11T13:28:49Z")

</div>

Hi!

Thank you for the clarification. I was able to recreate the wrapped example and have filed a bug report.

For the second issue you found, I was unable to recreate it with this setup:

Data Source A (cardinality one)

- myProperty

Data Source B (cardinality one)

- myFunction (return Data Source A.myProperty + “1”)

Running Find References on Data Source A.myProperty lists Data Source B.myFunction and Data Source A.myProperty is not visible in App Health.

Does my experiment differ from yours, and (if so) how?

Eirik

---

<div class="post-metadata">

**Author:** ![SigurdEileras](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/sigurdeileras/32/2621_2.png) [@SigurdEileras](https://community.appfarm.io/u/SigurdEileras)\
**Post date:** [November 11, 2026, 1:37pm UTC](https://community.appfarm.io/t/app-health-and-find-references-do-not-detect-runtime-properties-used-in-coded-component-scripts/2497/5 "2026-11-11T13:37:39Z")

</div>

Both A and B har cardinality many in my setup.

// Sigurd

---

<div class="post-metadata">

**Author:** ![Eirik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/eirik/32/76_2.png) [@Eirik](https://community.appfarm.io/u/Eirik)\
**Post date:** [November 11, 2026, 9:39pm UTC](https://community.appfarm.io/t/app-health-and-find-references-do-not-detect-runtime-properties-used-in-coded-component-scripts/2497/6 "2026-11-11T21:39:50Z")

</div>

Thanks! I was able to reproduce this one too and have filed a bug report for it. I can’t say yet when it will be fixed, but we’ll update this post once it is.

Eirik
