# Gateway Scheduled Scripts Not Working

**URL:** <https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223>\
**Category:** Ignition\
**Created:** [June 25, 2021, 7:32pm UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223 "2021-06-25T19:32:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.mangels](https://avatars.discourse-cdn.com/v4/letter/p/a698b9/32.png) [@paul.mangels](https://forum.inductiveautomation.com/u/paul.mangels)\
**Post date:** [June 25, 2021, 7:32pm UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/1 "2021-06-25T19:32:42Z")

</div>

I am trying to use the new gateway scheduled script feature that got released in v8.1.6 (currently I am running v8.1.7). However, I am having trouble getting it to run. I am trying to get any script to work and it is not executing.

I am running a very simple script that I KNOW works because I ran it successfully from a gateway timer event script (same project, theoretically running from the exact same scope). That test script is:

```auto
	value = system.tag.readBlocking(['[myProvider]test'])[0].value
	system.tag.writeBlocking(['[myProvider]test'],[value + 1])

```

I also have the gateway scheduled event script currently set to run every minute (so I know I don’t have a weird timezone thing going on), and it is enabled.

I do not see any error messages in the wrapper log file or the status/logs page on the webpage.  
All told, this leads me to believe that my script isn’t firing at all. Any thoughts as to why that may be happening?

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://forum.inductiveautomation.com/u/Bogdan)\
**Post date:** [October 26, 2021, 8:20pm UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/2 "2021-10-26T20:20:10Z")

</div>

Hi there!

Facing the same problem here, I’m also using Ignition v8.1.7  
Tried different setup for timing but the script will not trigger.

```auto
logger = system.util.getLogger("ScheduledEvent")
logger.info("runing")

```

Any resolution for this one?

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [October 26, 2021, 9:37pm UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/3 "2021-10-26T21:37:55Z")

</div>

Maybe obvious, but is your project enabled?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 26, 2021, 10:14pm UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/4 "2021-10-26T22:14:23Z")

</div>

There were a couple issues with scheduled scripts fixed in 8.1.9. I’d suggest upgrading to the latest 8.1 release and seeing if that resolves it.

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://forum.inductiveautomation.com/u/Bogdan)\
**Post date:** [October 27, 2021, 7:24am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/5 "2021-10-27T07:24:13Z")

</div>

Hi zacht, double checked and yes the project is enabled.

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://forum.inductiveautomation.com/u/Bogdan)\
**Post date:** [October 29, 2021, 11:01am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/6 "2021-10-29T11:01:55Z")

</div>

Hi Kevin, thanks for suggestion.  
I upgraded Ignition server to 8.1.11 but still facing the same problem.  
I see that on the gateway \> status \> gateway scripts the list is empty.  
Tried to add a different gateway event (Timer), but the same output…

 ![3](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/9/e997d9a1922c253e7ada28a0b0d7bc6bd8d16d3c.png)  
 ![2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/b/5b1488c194eaf6cfe1a9ef045c823b444033a6d7.png)  
 ![1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/f/8f87f2d4bc82cbd942949356c97fef0fc902e986.png)

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://forum.inductiveautomation.com/u/Bogdan)\
**Post date:** [October 29, 2021, 11:48am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/7 "2021-10-29T11:48:06Z")

</div>

Well, I tried the same thing using a local Ignition Gateway and seems to work…  
Looks like something is blocking my designer changes to be pushed on the remote gateway.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [October 29, 2021, 12:30pm UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/8 "2021-10-29T12:30:49Z")

</div>

What if you go to status-\>Logs, do you see `running` appear under a logger named `QOS-onScheduledEvent`?

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://forum.inductiveautomation.com/u/Bogdan)\
**Post date:** [October 29, 2021, 1:09pm UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/9 "2021-10-29T13:09:57Z")

</div>

Solved 😂

The problem in my case was:  
In Ignition gateway are defined 2 projects : lib and production (production is inheriting lib)

I did my development in the lib project, which is **not runnable** as a stand-alone project. It will not create a Gateway Event by itself.

 ![4](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/4/e4aea7364b5f79eed87320806b0aaddad77104f3.png)

The production project was setup to override Gateway Events…  
 ![5](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/0/80bb6a5e9efba59db796a6940b32ddc15993be58.png)

Thanks for the support guys.

---

<div class="post-metadata">

**Author:** ![Christopher\_Rouxel](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Christopher\_Rouxel](https://forum.inductiveautomation.com/u/Christopher_Rouxel)\
**Post date:** [February 7, 2025, 3:42am UTC](https://forum.inductiveautomation.com/t/gateway-scheduled-scripts-not-working/48223/10 "2025-02-07T03:42:09Z")

</div>

Thanks! I had the same issue, this solved it.
