# Unit 6 Lesson 12 Forecaster App CSP '24-'25

**URL:** <https://forum.code.org/t/unit-6-lesson-12-forecaster-app-csp-24-25/40039>\
**Category:** Unit and Lesson Discussion\
**Created:** [October 30, 2024, 7:40pm UTC](https://forum.code.org/t/unit-6-lesson-12-forecaster-app-csp-24-25/40039 "2024-10-30T19:40:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![darrin.patterson](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@darrin.patterson](https://forum.code.org/u/darrin.patterson)\
**Post date:** [October 30, 2024, 7:40pm UTC](https://forum.code.org/t/unit-6-lesson-12-forecaster-app-csp-24-25/40039/1 "2024-10-30T19:40:05Z")

</div>

What are we doing wrong? Here is the link:

> **[Check out what I made](https://studio.code.org/projects/applab/I4sGdEJX7RwF1FMsV91lL3R8ZrxDbbrQxHVBeBmqCHQ)**
>
> I wrote the code myself with Code.org

What specific mistake(s) are we making?  
We get warning: _setText() text parameter value undefined is not a uistring._  
Error TypeError: _Cannot read properties of undefined (reading ‘toString’)_  
What is confusing is that we have **copied and pasted the names of the variables** necessary, have **changed them up** , **followed line by line an exemplar** , and **still cannot** seem to **find the error**. Please note, this is only my 2nd semester using CSP and I am new to programming.

---

<div class="post-metadata">

**Author:** ![varrience](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/varrience/32/8042_2.png) [@varrience](https://forum.code.org/u/varrience)\
**Post date:** [October 31, 2024, 12:29pm UTC](https://forum.code.org/t/unit-6-lesson-12-forecaster-app-csp-24-25/40039/2 "2024-10-31T12:29:58Z")

</div>

Hello @darrin.patterson,

It seems that your project runs without issue, does this problem still exist?  
if so we would appreciate your steps to cause this most likely this is a type error of some variable not being set before setText is called within this is referred to as a **race condition** which is quite common especially if your trying to retrieve data from an asynchronous request

thanks

# Varrience

---

<div class="post-metadata">

**Author:** ![darrin.patterson](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@darrin.patterson](https://forum.code.org/u/darrin.patterson)\
**Post date:** [October 31, 2024, 12:41pm UTC](https://forum.code.org/t/unit-6-lesson-12-forecaster-app-csp-24-25/40039/3 "2024-10-31T12:41:37Z")

</div>

Varrience,  
Thank you for reaching out. I found that the student, in line 23, used .Length rather than .length and this changed it. I double checked it by copying and pasting my example code, making the same change, and it didn’t give me the error, but it didn’t allow it to work until I changed it back to .length.
