# Can read gateway tags from the designer but not vision client

**URL:** <https://forum.inductiveautomation.com/t/can-read-gateway-tags-from-the-designer-but-not-vision-client/85433>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 8, 2024, 2:00pm UTC](https://forum.inductiveautomation.com/t/can-read-gateway-tags-from-the-designer-but-not-vision-client/85433 "2024-02-08T14:00:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronaldny](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@ronaldny](https://forum.inductiveautomation.com/u/ronaldny)\
**Post date:** [February 8, 2024, 2:00pm UTC](https://forum.inductiveautomation.com/t/can-read-gateway-tags-from-the-designer-but-not-vision-client/85433/1 "2024-02-08T14:00:08Z")

</div>

I get this error on button click running a tag read script when on the vision client.  
error doesn't occur in designer.

Traceback (most recent call last):  
File "event:actionPerformed", line 1, in   
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.inductiveautomation.ignition.client.gateway\_interface.GatewayException: at index 0

```
caused by ExecutionException: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: at index 0
caused by GatewayException: at index 0
caused by NullPointerException: at index 0

```

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [February 8, 2024, 2:26pm UTC](https://forum.inductiveautomation.com/t/can-read-gateway-tags-from-the-designer-but-not-vision-client/85433/2 "2024-02-08T14:26:17Z")

</div>

We are most definitely going to need to see the script that generates this error.

---

<div class="post-metadata">

**Author:** ![ronaldny](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@ronaldny](https://forum.inductiveautomation.com/u/ronaldny)\
**Post date:** [February 8, 2024, 4:57pm UTC](https://forum.inductiveautomation.com/t/can-read-gateway-tags-from-the-designer-but-not-vision-client/85433/3 "2024-02-08T16:57:37Z")

</div>

It is just a simple  
System.tag.read('tagPath).value

Works well in the designer but generates an error in the client

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [February 8, 2024, 4:58pm UTC](https://forum.inductiveautomation.com/t/can-read-gateway-tags-from-the-designer-but-not-vision-client/85433/4 "2024-02-08T16:58:42Z")

</div>

Can you supply the code? It'll help. If not, there is little we can do to help besides guess.
