# TypeError: 'stringmap' object is not callable when using system.util.globals

**URL:** <https://forum.inductiveautomation.com/t/typeerror-stringmap-object-is-not-callable-when-using-system-util-globals/78550>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 30, 2023, 9:05am UTC](https://forum.inductiveautomation.com/t/typeerror-stringmap-object-is-not-callable-when-using-system-util-globals/78550 "2023-08-30T09:05:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![liam1](https://avatars.discourse-cdn.com/v4/letter/l/e68b1a/32.png) [@liam1](https://forum.inductiveautomation.com/u/liam1)\
**Post date:** [August 30, 2023, 9:05am UTC](https://forum.inductiveautomation.com/t/typeerror-stringmap-object-is-not-callable-when-using-system-util-globals/78550/1 "2023-08-30T09:05:30Z")

</div>

I want to setup a in memory cache for my report data .

```auto
62 obj={'Mon May 23 00:00:00 CAT 2022':[68.0, 49.0, 24.0, 33.0, 39.0, 46.0],
63 'Mon May 30 00:00:00 CAT 2022': [54.0, 64.0, 18.0, 25.0, 51.0, 27.0],
64 'Mon Jun 06 00:00:00 CAT 2022': [54.0, 64.0, 18.0, 26.0, 50.0, 28.0],
65 'Mon Jun 13 00:00:00 CAT 2022': [59.0, 47.0, 20.0, 28.0, 38.0, 40.0]}
66 system.util.globals()['reportCache']={'weeklyTotals':obj}

```

I am trying to use `system.util.globals()` function but when I run it ,I get the following error.

```auto
Traceback (most recent call last):
  File "<input>", line 66, in <module>
TypeError: 'stringmap' object is not callable

```

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 30, 2023, 9:07am UTC](https://forum.inductiveautomation.com/t/typeerror-stringmap-object-is-not-callable-when-using-system-util-globals/78550/2 "2023-08-30T09:07:55Z")

</div>

It's either `system.util.getGlobals()` or `system.util.globals`. You can't call `globals`.

---

<div class="post-metadata">

**Author:** ![liam1](https://avatars.discourse-cdn.com/v4/letter/l/e68b1a/32.png) [@liam1](https://forum.inductiveautomation.com/u/liam1)\
**Post date:** [August 30, 2023, 9:09am UTC](https://forum.inductiveautomation.com/t/typeerror-stringmap-object-is-not-callable-when-using-system-util-globals/78550/3 "2023-08-30T09:09:10Z")

</div>

Thank you , that was the mistake

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 30, 2023, 9:19am UTC](https://forum.inductiveautomation.com/t/typeerror-stringmap-object-is-not-callable-when-using-system-util-globals/78550/4 "2023-08-30T09:19:45Z")

</div>

Huh, the example in the [doc page](https://docs.inductiveautomation.com/display/DOC81/system.util.getGlobals) makes the same mistake:

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/4/54aed344b6ebd34035d4e841cfa61f7dea5a1f0a.png)

@Paul.Scott I believe this might be of interest to you

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [August 28, 2024, 7:45am UTC](https://forum.inductiveautomation.com/t/typeerror-stringmap-object-is-not-callable-when-using-system-util-globals/78550/5 "2024-08-28T07:45:33Z")

</div>

Just ran into the same issue. Documentation does need an edit
