# Getting an error in runtime property when the app loads

**URL:** <https://community.appfarm.io/t/getting-an-error-in-runtime-property-when-the-app-loads/486>\
**Category:** Ask the community\
**Created:** [May 18, 2023, 9:11am UTC](https://community.appfarm.io/t/getting-an-error-in-runtime-property-when-the-app-loads/486 "2023-05-18T09:11:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![habibftw](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/habibftw/32/1593_2.png) [@habibftw](https://community.appfarm.io/u/habibftw)\
**Post date:** [May 18, 2023, 9:11am UTC](https://community.appfarm.io/t/getting-an-error-in-runtime-property-when-the-app-loads/486/1 "2023-05-18T09:11:26Z")

</div>

So I am using the replace method for a runtime property. Initially, when the app loads it doesn’t get the parameters and gives an error. So I tried to solve it by giving a condition that it should only calculate when the data is loaded. The problem I am now facing is the data stays the same and doesn’t get updated even if the data is loaded later. Any idea how I can solve it?

---

<div class="post-metadata">

**Author:** ![HJT](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/hjt/32/64_2.png) [@HJT](https://community.appfarm.io/u/HJT)\
**Post date:** [May 22, 2023, 11:17am UTC](https://community.appfarm.io/t/getting-an-error-in-runtime-property-when-the-app-loads/486/2 "2023-05-22T11:17:10Z")

</div>

Hi,

1. Can you send me the javascript function where you use the replace method?
2. Is the datasource database connected or runtime?
3. When is the data loaded?

Hopefully we can figure this one out with some more info 😃

---

<div class="post-metadata">

**Author:** ![habibftw](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/habibftw/32/1593_2.png) [@habibftw](https://community.appfarm.io/u/habibftw)\
**Post date:** [May 22, 2023, 5:00pm UTC](https://community.appfarm.io/t/getting-an-error-in-runtime-property-when-the-app-loads/486/3 "2023-05-22T17:00:24Z")

</div>

hey sorry, I did not get any notification hehe. I managed to solve it though 😃

---

<div class="post-metadata">

**Author:** ![HJT](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/hjt/32/64_2.png) [@HJT](https://community.appfarm.io/u/HJT)\
**Post date:** [May 24, 2023, 10:15am UTC](https://community.appfarm.io/t/getting-an-error-in-runtime-property-when-the-app-loads/486/4 "2023-05-24T10:15:47Z")

</div>

No problem 😃 Great to hear that you found a fix!
