Error during blocking write of tags through scripting

Hello

I’m recently experiencing a bug with a series of scripts that are making two OPC server comunicate between them.
What I’m trying to do is read tags from one server, and write (blocking) them to the other server through gateway scripts. Actually the scripts are working fine but I keep getting this annoying error on the gateway logs: Error during blocking write of tags through scripting.
I also tried to execute the function in the script console, and the error keeps coming on the logs even though the script executes perfectly.
The ignition version I’m using is 8.1.2-rc1.

Here are the screenshots of the script run from the console and the errors on the gateway logs.


You’re getting a TimeoutException - manually provide a longer timeout delay in your call to system.tag.writeBlocking.

Thanks for the reply Paul,

I alredy have a a timeout in my writeBlocking call. The function call is inside a class and it’s parametrised as follows:
writeResult = system.tag.writeBlocking(writePaths, writeValues, timeout=self.writeTimeout)

Here is the screenshot:

If you use the timeout parameter, you need to use a try-except block around the call to catch when it happens. What you are seeing is not a bug.

The point is I’m getting this exception even if my writeBlocking takes less than the timeout parameter.

Hmm. Seems like the exceptions in the logs are from another script making the writeBlocking call. A gateway timer script from the stack trace.

1 Like