# Parameter Value Undefined Not a UIString Error

**URL:** <https://forum.code.org/t/parameter-value-undefined-not-a-uistring-error/35359>\
**Category:** Unit and Lesson Discussion\
**Tags:** csp-unit-5\
**Created:** [November 4, 2021, 1:17pm UTC](https://forum.code.org/t/parameter-value-undefined-not-a-uistring-error/35359 "2021-11-04T13:17:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcooke1020](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dcooke1020](https://forum.code.org/u/dcooke1020)\
**Post date:** [November 4, 2021, 1:17pm UTC](https://forum.code.org/t/parameter-value-undefined-not-a-uistring-error/35359/1 "2021-11-04T13:17:06Z")

</div>

I receive this error message when I try to run this program. I am not sure what has been done wrong. I can go through the list but once it hits the end this error message appears in the console: WARNING: Line: 29: setProperty() value parameter value (undefined) is not a uistring.WARNING: Line: 30: setProperty() value parameter value (undefined) is not a uistring.WARNING: Line: 31: setProperty() value parameter value (undefined) is not a uistring.

The link is here: [Code.org - App Lab](https://studio.code.org/projects/applab/PcV3t_fXrJcFvSs116OAEe5yee3jn75oAhz8xGLVVkM)

Thanks in advance, I appreciate the help

---

<div class="post-metadata">

**Author:** ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)\
**Post date:** [November 4, 2021, 2:01pm UTC](https://forum.code.org/t/parameter-value-undefined-not-a-uistring-error/35359/2 "2021-11-04T14:01:57Z")

</div>

You have gone off the end of the list. `YearIndex < YearList.length + 1` is letting YearIndex get one too big. What would be an easy fix? Why?

You have 3 variables like this:

```javascript
    YearIndex = YearIndex + 1;
    ChampionIndex = ChampionIndex + 1;
    FinalScoreIndex = FinalScoreIndex + 1;

```

Do you need all 3?

You have this:

```javascript
  } else if ((YearList.length == 21)) {
    setScreen("screen3");
  }

```

Will that ever do anything? Why? Hint: How many records are in the database?

---

<div class="post-metadata">

**Author:** ![dcooke1020](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dcooke1020](https://forum.code.org/u/dcooke1020)\
**Post date:** [November 6, 2021, 12:49pm UTC](https://forum.code.org/t/parameter-value-undefined-not-a-uistring-error/35359/3 "2021-11-06T12:49:49Z")

</div>

Thanks so much, that helps a lot
