# \[BUG-12126\] Cannot Execute system.tag.readAll With Client Tags In Script Console

**URL:** <https://forum.inductiveautomation.com/t/bug-12126-cannot-execute-system-tag-readall-with-client-tags-in-script-console/21457>\
**Category:** Ignition Early Access\
**Created:** [December 17, 2018, 5:23pm UTC](https://forum.inductiveautomation.com/t/bug-12126-cannot-execute-system-tag-readall-with-client-tags-in-script-console/21457 "2018-12-17T17:23:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [December 17, 2018, 5:23pm UTC](https://forum.inductiveautomation.com/t/bug-12126-cannot-execute-system-tag-readall-with-client-tags-in-script-console/21457/1 "2018-12-17T17:23:11Z")

</div>

In trying to execute the following....

```auto
tag_names = ['[System]Gateway/SystemName', '[System]Client/User/Username', '[System]Client/User/OSUsername']
tags = system.tag.readAll(tag_names)
print tags

```

Getting NPE

> Java Traceback:  
> Traceback (most recent call last):  
> File "", line 2, in   
> at java.base/java.util.concurrent.CompletableFuture.reportGet(Unknown Source)  
> at java.base/java.util.concurrent.CompletableFuture.get(Unknown Source)  
> at com.inductiveautomation.ignition.client.script.LegacyClientTagUtilities.read(LegacyClientTagUtilities.java:142)  
> at com.inductiveautomation.ignition.common.script.builtin.LegacyTagUtilities.readAll(LegacyTagUtilities.java:191)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/java.lang.reflect.Method.invoke(Unknown Source)  
> java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.NullPointerException  
> at org.python.core.Py.JavaError(Py.java:552)  
> at com.inductiveautomation.ignition.common.script.builtin.LegacyTagUtilities.readAll(LegacyTagUtilities.java:193)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/java.lang.reflect.Method.invoke(Unknown Source)  
> at org.python.core.PyReflectedFunction. **call** (PyReflectedFunction.java:188)  
> at com.inductiveautomation.ignition.common.script.ScriptManager$ReflectedInstanceFunction. **call** (ScriptManager.java:436)  
> at org.python.core.PyObject. **call** (PyObject.java:480)  
> at org.python.core.PyObject. **call** (PyObject.java:484)  
> at org.python.pycode.\_pyx74.f$0(:3)  
> at org.python.pycode.\_pyx74.call\_function()  
> at org.python.core.PyTableCode.call(PyTableCode.java:171)  
> at org.python.core.PyCode.call(PyCode.java:18)  
> at org.python.core.Py.runCode(Py.java:1614)  
> at org.python.core.Py.exec(Py.java:1658)  
> at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:276)  
> at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:131)  
> at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:116)  
> at com.inductiveautomation.ignition.desgner.gui.tools.jythonconsole.JythonConsole$InterpreterWorker.doInBackground(JythonConsole.java:476)  
> at com.inductiveautomation.ignition.designer.gui.tools.jythonconsole.JythonConsole$InterpreterWorker.doInBackground(JythonConsole.java:464)  
> at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)  
> at java.base/java.util.concurrent.FutureTask.run(Unknown Source)  
> at java.desktop/javax.swing.SwingWorker.run(Unknown Source)  
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
> at java.base/java.lang.Thread.run(Unknown Source)  
> Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException  
> at java.base/java.util.concurrent.CompletableFuture.reportGet(Unknown Source)  
> at java.base/java.util.concurrent.CompletableFuture.get(Unknown Source)  
> at com.inductiveautomation.ignition.client.script.LegacyClientTagUtilities.read(LegacyClientTagUtilities.java:142)  
> at com.inductiveautomation.ignition.common.script.builtin.LegacyTagUtilities.readAll(LegacyTagUtilities.java:191)  
> ... 25 more  
> Caused by: java.lang.NullPointerException  
> at com.inductiveautomation.ignition.client.sqltags.impl.SubManagerAdapter.lambda$readAsync$1(SubManagerAdapter.java:126)  
> at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)  
> at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source)  
> at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)  
> at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source)  
> at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source)  
> at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)  
> at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)  
> Traceback (most recent call last):  
> File "", line 2, in   
> at java.base/java.util.concurrent.CompletableFuture.reportGet(Unknown Source)  
> at java.base/java.util.concurrent.CompletableFuture.get(Unknown Source)  
> at com.inductiveautomation.ignition.client.script.LegacyClientTagUtilities.read(LegacyClientTagUtilities.java:142)  
> at com.inductiveautomation.ignition.common.script.builtin.LegacyTagUtilities.readAll(LegacyTagUtilities.java:191)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/java.lang.reflect.Method.invoke(Unknown Source)  
> java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: java.lang.NullPointerException

Would expect a list of qualified values returned.

Running 8.0.0-beta0 (b2018121302) in the Script Console.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 17, 2018, 6:18pm UTC](https://forum.inductiveautomation.com/t/bug-12126-cannot-execute-system-tag-readall-with-client-tags-in-script-console/21457/2 "2018-12-17T18:18:11Z")

</div>

I’m able to replicate this in the script console, although the function seems to be working correctly in the Client; I will open a ticket.

Please note that the readAll function is essentially deprecated, and has been replaced by readAllAsync.  
Also note that Client Tags are not accessible in Perspective Sessions, so expect `null` values with `Bad_NotFound` quality for any Client tags in Perspective.

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [December 17, 2018, 6:20pm UTC](https://forum.inductiveautomation.com/t/bug-12126-cannot-execute-system-tag-readall-with-client-tags-in-script-console/21457/3 "2018-12-17T18:20:28Z")

</div>

Ok, thanks. Its failing in other parts of my scripts in the Designer too, so debugging is a bit difficult.

> [@cmallonee](#):
>
> Please note that the readAll function is essentially deprecated, and has been replaced by readAllAsync.Also note that Client Tags are not accessible in Perspective Sessions, so expect null values with Bad\_NotFound quality for any Client tags in Perspective.

Understood. Like the new scope details in the docs. At this point, I'm just checking upgrade paths of existing 7.9 Vision code.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 17, 2018, 6:26pm UTC](https://forum.inductiveautomation.com/t/bug-12126-cannot-execute-system-tag-readall-with-client-tags-in-script-console/21457/4 "2018-12-17T18:26:05Z")

</div>

It’s specifically Client tags (try removing the Client tags and suddenly it works fine). Not sure if that helps you for now, but I noted it in the ticket.

---

<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:** [January 10, 2019, 4:22pm UTC](https://forum.inductiveautomation.com/t/bug-12126-cannot-execute-system-tag-readall-with-client-tags-in-script-console/21457/5 "2019-01-10T16:22:54Z")

</div>

Hi Ryan,

This issue was fixed in the build that was uploaded today (1/10). Please let us know if you continue to see this behavior after upgrading.
