# Store and Forward TagHistoryDatasourceSink "there is already a scheduled task"

**URL:** <https://forum.inductiveautomation.com/t/store-and-forward-taghistorydatasourcesink-there-is-already-a-scheduled-task/93247>\
**Category:** Ignition\
**Tags:** database, ignition81\
**Created:** [July 15, 2024, 5:52pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-taghistorydatasourcesink-there-is-already-a-scheduled-task/93247 "2024-07-15T17:52:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Knowlton](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@Philip\_Knowlton](https://forum.inductiveautomation.com/u/Philip_Knowlton)\
**Post date:** [July 15, 2024, 5:52pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-taghistorydatasourcesink-there-is-already-a-scheduled-task/93247/1 "2024-07-15T17:52:46Z")

</div>

Hello, I'm having a repeated warning to the gateway logs from Store & Forward Tag History Datasource Sink "There is a problem checking the tag history database tables during initialization of the store and forward engine which could prevent tag history data from being forwarded properly. Trying again in 60 seconds.":

 ![msedge_sRxGpVcEIC](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/d/dd065498a037054f9c1e3af56f22863b354c9ed9.jpeg)

```python
java.lang.IllegalArgumentException: There is already a scheduled task for taghistorydatasourcesink.prune_task[plantdatacollection]

at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine.register(BasicExecutionEngine.java:407)

at com.inductiveautomation.gateway.tags.history.storage.TagHistoryDatasourceSink.startMaintenanceTasks(TagHistoryDatasourceSink.java:580)

at com.inductiveautomation.gateway.tags.history.storage.TagHistoryDatasourceSink.initialize(TagHistoryDatasourceSink.java:298)

at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:544)

at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.base/java.util.concurrent.FutureTask.run(Unknown Source)

at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.base/java.lang.Thread.run(Unknown Source)

```

This started recently, we just had issues with the database memory/disk cache full and IT helped by rebooting the database and increasing its' memory (plus I found a query that was running against the database 6000 times per minute which I resolved).

Any help to point me in the right direction would be much appreciated.

---

<div class="post-metadata">

**Author:** ![Philip\_Knowlton](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@Philip\_Knowlton](https://forum.inductiveautomation.com/u/Philip_Knowlton)\
**Post date:** [July 29, 2024, 10:59pm UTC](https://forum.inductiveautomation.com/t/store-and-forward-taghistorydatasourcesink-there-is-already-a-scheduled-task/93247/2 "2024-07-29T22:59:50Z")

</div>

After calling tech support, we believe the issue was with the database itself. There is a secondary system which is reading OPC tags and writing to the DB which had a wide assortment of configuration issues and bad paths. After disabling broken items, store and forward began working correctly.
