# ERROR: Not handled: OnNewAll

**URL:** <https://forums.fusetools.com/t/error-not-handled-onnewall/4203>\
**Category:** Bug Reports\
**Created:** [September 1, 2016, 3:19pm UTC](https://forums.fusetools.com/t/error-not-handled-onnewall/4203 "2016-09-01T15:19:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/sebastian/32/594_2.png) [@sebastian](https://forums.fusetools.com/u/sebastian)\
**Post date:** [September 1, 2016, 3:19pm UTC](https://forums.fusetools.com/t/error-not-handled-onnewall/4203/1 "2016-09-01T15:19:08Z")

</div>

This code worked on 0.24 but explodes after my upgrade:

Fuse 0.25.0 (build 7511)

```auto
<Page ux:Name="eventList" Background="#000">
    <JavaScript>
        var Observable = require("FuseJS/Observable")
        exports.listData = Observable()

        for (var i = 2015; i < 2100; i++) {
            exports.listData.add({year_nr: i, type: 'year'})
        }

    </JavaScript>

    <ScrollView>
        <StackPanel Color="#fff" ItemSpacing="1">
                
            <Each Count="{listData}">

                <Deferred>
                    <Panel Height="60" Color="#bbb">
                        <Text Value="{year_nr}" Alignment="CenterLeft" />
                    </Panel>
                </Deferred>

            </Each>

        </StackPanel>
    </ScrollView>
</Page>

```

Could be related to this:  
[https://www.fusetools.com/community/forums/bug\_reports/not\_handled\_onnewall\_error](https://www.fusetools.com/community/forums/bug_reports/not_handled_onnewall_error)

---

<div class="post-metadata">

**Author:** ![Olle\_Fredriksson](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@Olle\_Fredriksson](https://forums.fusetools.com/u/Olle_Fredriksson)\
**Post date:** [September 2, 2016, 7:49am UTC](https://forums.fusetools.com/t/error-not-handled-onnewall/4203/2 "2016-09-02T07:49:13Z")

</div>

Hey Sebastian, and thanks for your report. That looks like a bug to me, so I’ve created an internal issue. We’ll keep you posted!

---

<div class="post-metadata">

**Author:** ![sebastian](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/sebastian/32/594_2.png) [@sebastian](https://forums.fusetools.com/u/sebastian)\
**Post date:** [September 2, 2016, 9:06am UTC](https://forums.fusetools.com/t/error-not-handled-onnewall/4203/3 "2016-09-02T09:06:05Z")

</div>

Awesome!

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [September 4, 2016, 9:38pm UTC](https://forums.fusetools.com/t/error-not-handled-onnewall/4203/4 "2016-09-04T21:38:35Z")

</div>

Hi!

You are databinding a list to a property `Count` that expects an `int`.

I think you want to change

```
<Each Count="{listData}">

```

into

```
<Each Items="{listData}">

```

And it should work. No idea how this code could have ever worked in 0.24.

Hope this helps!

(PS: Thanks for the test case, will improve the error messages for future versions)

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [September 4, 2016, 9:51pm UTC](https://forums.fusetools.com/t/error-not-handled-onnewall/4203/5 "2016-09-04T21:51:24Z")

</div>

The new error message now reads:

```
Cannot bind 'listData' to property 'Count'. The observable must contain exactly one number.
```

---

<div class="post-metadata">

**Author:** ![sebastian](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/sebastian/32/594_2.png) [@sebastian](https://forums.fusetools.com/u/sebastian)\
**Post date:** [September 4, 2016, 9:58pm UTC](https://forums.fusetools.com/t/error-not-handled-onnewall/4203/6 "2016-09-04T21:58:28Z")

</div>

My bad! The reason it worked in 0.24 was because I initially bound it to **Items** and then changed during some experimenting to **Count** when I was trying to figure out what was causing poor performance in lists (turned out to only affect Preview). So yeah, a better error message would be… great! 😃
