Can read gateway tags from the designer but not vision client

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

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

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

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

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

2 Likes