# Version 8.3.1 Gateway event script not able to see DataPointFactory

**URL:** <https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [November 28, 2025, 5:16pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506 "2025-11-28T17:16:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Yeung](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@John\_Yeung](https://forum.inductiveautomation.com/u/John_Yeung)\
**Post date:** [November 28, 2025, 5:16pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506/1 "2025-11-28T17:16:04Z")

</div>

The code is developed in the design script console and run without issue. Tried to run the same script in the gateway scheduled event and error complains about the historian module issue. Any idea?

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

 ![sample_code](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/b/8bae0cae6b8fbd930f868a29563a3ee06821048d.png)

---

<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:** [November 28, 2025, 5:19pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506/2 "2025-11-28T17:19:21Z")

</div>

In the Gateway scope, scripting can't access APIs provided by modules because modules are loaded in their own ClassLoader at a different location in the ClassLoader hierarchy.

It only happens to work in Designer / Vision Client because everything is loaded into a single ClassLoader up there.

---

<div class="post-metadata">

**Author:** ![John\_Yeung](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@John\_Yeung](https://forum.inductiveautomation.com/u/John_Yeung)\
**Post date:** [November 28, 2025, 5:26pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506/3 "2025-11-28T17:26:24Z")

</div>

Thank you for identifying the issue. What needs to be adjusted to allow the script to run in the Gateway scope

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [November 28, 2025, 5:28pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506/4 "2025-11-28T17:28:33Z")

</div>

just use this on any scope

```python
system.historian.storeDataPoints(paths = ["histprov:mariadb:/sys:gatewayName1:/prov:default:/tag:test_a"], values = [1], qualities = [192], timestamps = [system.date.now()])

```

---

<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:** [November 28, 2025, 5:29pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506/5 "2025-11-28T17:29:17Z")

</div>

Stick to scripting functions that are available in `system.*`.

Otherwise, you may simply not be able to do whatever it is you're trying to do from a script. It might be something that needs to be done from a custom module that depends on the historian module.

---

<div class="post-metadata">

**Author:** ![John\_Yeung](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@John\_Yeung](https://forum.inductiveautomation.com/u/John_Yeung)\
**Post date:** [November 28, 2025, 5:42pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506/6 "2025-11-28T17:42:54Z")

</div>

The code is borrow from the 8.3 Manual using the Syntax #1 method. Thank for the direction

---

<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:** [November 28, 2025, 5:45pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506/7 "2025-11-28T17:45:52Z")

</div>

Unfortunate. I'll ping the docs and/or history team and let them know.

They may end up having to export certain classes provided by the historian module under the `system.historian` namespace.

---

<div class="post-metadata">

**Author:** ![John\_Yeung](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@John\_Yeung](https://forum.inductiveautomation.com/u/John_Yeung)\
**Post date:** [November 28, 2025, 6:29pm UTC](https://forum.inductiveautomation.com/t/version-8-3-1-gateway-event-script-not-able-to-see-datapointfactory/112506/8 "2025-11-28T18:29:47Z")

</div>

Updated the script to use the Syntax #2 which is the method you recommended. Problem is resolved. Thank you
