Just upgraded to 8.3.7 from 8.3.1 and was modifying a Gateway Tag Change script when I received an error that previously did not exist.
def onTagChange(initialChange, newValue, previousValue, event, executionCount):
if newValue.value == True:
DatabaseRoutines.DatabaseCleanup("Tag")
system.tag.writeBlocking(["[Dashboard]Misc/DatabaseCleanup"], [False])
and I get this error:
If I chose yes, the script works just fine and only runs the routine on a True state.
If I remove the IF statement, it does not throw the error, but will fire on both true and false states (which I don't want).
It appears to be just not detecting the tab indent after the IF statement.
Previously reported. Indent deeper for now. (Or make a one-liner that calls into your gateway scripting project's library.)
Yep, same issue reported here:
Unfortunately the fix missed the release train for 8.3.8 but should be in 8.3.9.
ok. Thanks.
I did look for previously reported items, but I guess I never hit the right keywords.