# System.opcua missing

**URL:** <https://forum.inductiveautomation.com/t/system-opcua-missing/92549>\
**Category:** Ignition\
**Created:** [June 28, 2024, 7:53pm UTC](https://forum.inductiveautomation.com/t/system-opcua-missing/92549 "2024-06-28T19:53:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keenern](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@keenern](https://forum.inductiveautomation.com/u/keenern)\
**Post date:** [June 28, 2024, 7:53pm UTC](https://forum.inductiveautomation.com/t/system-opcua-missing/92549/1 "2024-06-28T19:53:16Z")

</div>

So.... I am running ignition version 8.1.38  
I was looking for a method of creating OPC UA connections using python (There are a lot I need to create and it would be faster to do if via script). I found exactly what I was looking for system.opcua.addConnection. But when I type in the function (system.opcUa.) It does not find the opcUa package. Also, When continuing anyways and trying to run it. It give the error `object has no attribue 'opcua'`

The documentation says the function was released in 8.1.8 So i thought it would have been available. Does anyone have any advice (beside just manually creating the connections)

---

<div class="post-metadata">

**Author:** ![Nick\_Wilson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nick_wilson/32/80663_2.png) [@Nick\_Wilson](https://forum.inductiveautomation.com/u/Nick_Wilson)\
**Post date:** [June 28, 2024, 7:58pm UTC](https://forum.inductiveautomation.com/t/system-opcua-missing/92549/2 "2024-06-28T19:58:36Z")

</div>

> [@No module named system.opcua.callMethod](https://forum.inductiveautomation.com/t/no-module-named-system-opcua-callmethod/80336/7):
>
> Please link current documentation. v8.0 is dead, dead, dead. [https://docs.inductiveautomation.com/display/DOC81/system.opcua.callMethod](https://docs.inductiveautomation.com/display/DOC81/system.opcua.callMethod) You cannot call this function from the designer script console. It is available in gateway scope only. (And Perspective, which is an extension of gateway scope.) (Use a gateway message handler to call the function. In the designer, use system.util.sendRequest() to invoke it.)

---

<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:** [June 28, 2024, 8:20pm UTC](https://forum.inductiveautomation.com/t/system-opcua-missing/92549/3 "2024-06-28T20:20:24Z")

</div>

> **[system.opcua.addConnection | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-opcua/system-opcua-addConnection)**
>
> Adds a new OPC UA connection.

It's important that you pay attention to the documented scope each scripting function is available in.

These are only available in Gateway (and Perspective, which is Gateway) scope. This means you can't call them from a Vision Client or the Designer Script Console, which is why they aren't in the autocomplete options.
