# \[BUG-13512\] 'NoneType' object is not callable in calculateroster function

**URL:** <https://forum.inductiveautomation.com/t/bug-13512-nonetype-object-is-not-callable-in-calculateroster-function/23941>\
**Category:** Ignition Early Access\
**Created:** [April 8, 2019, 10:13pm UTC](https://forum.inductiveautomation.com/t/bug-13512-nonetype-object-is-not-callable-in-calculateroster-function/23941 "2019-04-08T22:13:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudipta.tripathy](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sudipta.tripathy](https://forum.inductiveautomation.com/u/sudipta.tripathy)\
**Post date:** [April 8, 2019, 10:13pm UTC](https://forum.inductiveautomation.com/t/bug-13512-nonetype-object-is-not-callable-in-calculateroster-function/23941/1 "2019-04-08T22:13:03Z")

</div>

I am invoking a Project script in calculated roster as shown below. It works in script console, however I get an error in caluclated script “‘NoneType’ object is not callable in calculated roster script”. Please help!!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2b417da613d53ccf6ca2b79352b4dcf92420224c.png)

---

<div class="post-metadata">

**Author:** ![sudipta.tripathy](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sudipta.tripathy](https://forum.inductiveautomation.com/u/sudipta.tripathy)\
**Post date:** [April 9, 2019, 3:33am UTC](https://forum.inductiveautomation.com/t/bug-13512-nonetype-object-is-not-callable-in-calculateroster-function/23941/2 "2019-04-09T03:33:06Z")

</div>

I tried the sample code in the calculateroster function. That does not work either.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f87f37861d1534dda422e982da2638a420f7e5dd.png)

I still get the same error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/36ce5514c1a773257a6d420295916fc126e7c25d.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 9, 2019, 3:36pm UTC](https://forum.inductiveautomation.com/t/bug-13512-nonetype-object-is-not-callable-in-calculateroster-function/23941/3 "2019-04-09T15:36:38Z")

</div>

`builder.username().email().add().build()` is _returning_ a new object, not mutating the `builder` object.  
Try:

```python
roster = builder.username().email().add().build()
return roster

```

---

<div class="post-metadata">

**Author:** ![Tumeksi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tumeksi/32/4697_2.png) [@Tumeksi](https://forum.inductiveautomation.com/u/Tumeksi)\
**Post date:** [April 10, 2019, 7:01am UTC](https://forum.inductiveautomation.com/t/bug-13512-nonetype-object-is-not-callable-in-calculateroster-function/23941/4 "2019-04-10T07:01:17Z")

</div>

Hi,  
I'm also seeing this same problem and what you suggested:

> roster = builder.username('Tuomas').email('email@site.com').add().build()  
> **return** roster

does not work. It still gives that same error " 'NoneType' object is not callable"

I also tried the other way the Notification-block suggests:

> user1 = {"username":"Tuomas", "email":["[site@mycompany.com](mailto:site@mycompany.com)"]}  
> roster = [user1]  
> **return** roster

This does not work either.

---

<div class="post-metadata">

**Author:** ![sudipta.tripathy](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sudipta.tripathy](https://forum.inductiveautomation.com/u/sudipta.tripathy)\
**Post date:** [April 10, 2019, 6:52pm UTC](https://forum.inductiveautomation.com/t/bug-13512-nonetype-object-is-not-callable-in-calculateroster-function/23941/5 "2019-04-10T18:52:59Z")

</div>

I talked to tech support and they identified it as a bug.

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [April 24, 2019, 3:48pm UTC](https://forum.inductiveautomation.com/t/bug-13512-nonetype-object-is-not-callable-in-calculateroster-function/23941/6 "2019-04-24T15:48:21Z")

</div>

This issue was fixed in the 8.0.1-rc1 that was uploaded yesterday (4/23).
