Tag event script not executing

Hello,
I have a problem with Tag Event Script. When I change the value I would like it to execute a write to another tag but it doesn't bring any change. I use the example in the manual but it does not work further:

https://docs.inductiveautomation.com/display/DOC81/Tag+Event+Scripts

In my case:

Best regards,
Michał

Your extra indentation looks odd, but is not obviously a problem. Consider capturing and logging the return value from writeBlocking(). Don't forget to check the gateway logs for any errors that might show up for compiling and executing this code. (Tag events are gateway scope, so their errors show up in the gateway, not in the designer.)

How to capture it, do you have any idea? I also don't see any information in the gateway logs.

    qualities = system.tag.writeBlocking(....)
    system.util.getLogger("myLogger").infof("My write qualities=%s", qualities)
1 Like

Got it! Thank you!