# 8.3.8 gateway Tag Change Scripts, wont compile but work

**URL:** <https://forum.inductiveautomation.com/t/8-3-8-gateway-tag-change-scripts-wont-compile-but-work/116505>\
**Category:** Ignition\
**Created:** [July 23, 2026, 12:31am UTC](https://forum.inductiveautomation.com/t/8-3-8-gateway-tag-change-scripts-wont-compile-but-work/116505 "2026-07-23T00:31:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 23, 2026, 12:31am UTC](https://forum.inductiveautomation.com/t/8-3-8-gateway-tag-change-scripts-wont-compile-but-work/116505/1 "2026-07-23T00:31:24Z")

</div>

I updated to version 8.3.8 the other day and today I was creating a tag change gateway event.

Nothing fancy, just updating tags when a value changes. The issue I have is that it keeps showing me a compile error.

```python
SyntaxError:("mismatched input 'myVariable' expecting INDENT",'',3,1,'system.db.execQuery('mypath', {"mycolumn":1}, "myProject")\n')) 

```

The problem is if I save it anyway it works fine, if I add anything to the script I get the error.

If I remove everything from the script and just type pass I get the same error. is this a possible bug?

```python
if not initialChange:
    pass

```

Has anyone else seen this behavior?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 23, 2026, 10:58am UTC](https://forum.inductiveautomation.com/t/8-3-8-gateway-tag-change-scripts-wont-compile-but-work/116505/2 "2026-07-23T10:58:18Z")

</div>

Known problem:

> [@\[IGN-16691\]Gateway Event Script Compile Error](https://forum.inductiveautomation.com/t/ign-16691-gateway-event-script-compile-error/116115):
>
> I'm not sure if I'm crazy or what but I'm running into a compile error when trying to save a script for a Gateway Event. Crazy thing it I'm positive I was not getting this error running on 8.3.2. Then I upgraded to 8.3.7 and went into the script to add something and when I try to close & save I get a compile error. The other crazy thing is that I don't think I should be getting a compile error because the error is complaining about indent and my indent looks fine to me. Since the code is on t…

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [July 23, 2026, 12:54pm UTC](https://forum.inductiveautomation.com/t/8-3-8-gateway-tag-change-scripts-wont-compile-but-work/116505/3 "2026-07-23T12:54:03Z")

</div>

Thanks, it makes it difficult to troubleshoot.
