# How do you import or export an OPC-UA device in version 7.6

**URL:** <https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565>\
**Category:** Ignition\
**Created:** [May 23, 2013, 1:26am UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565 "2013-05-23T01:26:47Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Henry](https://forum.inductiveautomation.com/u/Henry)\
**Post date:** [May 23, 2013, 1:26am UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/1 "2013-05-23T01:26:47Z")

</div>

The device configuartion page no longer has the three choices of add, import or export devices but only has create a new device.

---

<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:** [May 23, 2013, 1:30am UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/2 "2013-05-23T01:30:15Z")

</div>

Unfortunately there’s no device import/export right now.

Now that devices are just another extension point (like DB connections, OPC servers, notification profiles, etc…) we’ve got a plan to make a generalized import/export mechanism for all extension points.

But… we need to work on bug fixes and general stability before we can implement this. Hopefully we can get to it soon.

---

<div class="post-metadata">

**Author:** ![Henry](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Henry](https://forum.inductiveautomation.com/u/Henry)\
**Post date:** [February 14, 2014, 6:18pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/3 "2014-02-14T18:18:36Z")

</div>

Any update on how to copy a device.

---

<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:** [February 14, 2014, 6:47pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/4 "2014-02-14T18:47:43Z")

</div>

No progress on this, however thanks to your reminder there’s now actually a ticket for it assigned to the 7.7 milestone… which increases its chances of getting done by roughly infinity.

---

<div class="post-metadata">

**Author:** ![andrea.minu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.minu/32/3326_2.png) [@andrea.minu](https://forum.inductiveautomation.com/u/andrea.minu)\
**Post date:** [March 9, 2015, 5:06pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/5 "2015-03-09T17:06:25Z")

</div>

Hi  
Are there news about this feature?

Thank you very much

Andrea

---

<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:** [March 9, 2015, 8:30pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/6 "2015-03-09T20:30:09Z")

</div>

The thing that will allow device import/export is generalized support in the Ignition platform for XML import/export of any of Ignition’s extension point or record settings style pages. Unfortunately this functionality keeps getting pushed back to further milestones by higher priority items. At this point I can’t really estimate when it will be implemented.

---

<div class="post-metadata">

**Author:** ![Henry](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Henry](https://forum.inductiveautomation.com/u/Henry)\
**Post date:** [April 7, 2016, 9:27pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/7 "2016-04-07T21:27:41Z")

</div>

Can this feature be restore to the product?

---

<div class="post-metadata">

**Author:** ![chris\_d\_sanders](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_d_sanders/32/3359_2.png) [@chris\_d\_sanders](https://forum.inductiveautomation.com/u/chris_d_sanders)\
**Post date:** [September 27, 2017, 2:37pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/8 "2017-09-27T14:37:08Z")

</div>

@Kevin.Herron

Kevin, is there an update to this? It’s been 2+ years since the last update on being able to import/export OPC device connections. I’m needing to set up 250 PLC connections and this would really be useful. Even if it’s not part of the gateway web page but rather a backdoor method, I would really like to be able to import these connections or modify an xml file or the like.

Thanks,  
-Chris

---

<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:** [September 27, 2017, 3:06pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/9 "2017-09-27T15:06:45Z")

</div>

The backdoor method would be to write a script in Ignition that used [system.device.addDevice](https://docs.inductiveautomation.com/display/DOC79/system.device.addDevice) to configure and add each device.

---

<div class="post-metadata">

**Author:** ![chris\_d\_sanders](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_d_sanders/32/3359_2.png) [@chris\_d\_sanders](https://forum.inductiveautomation.com/u/chris_d_sanders)\
**Post date:** [September 27, 2017, 4:40pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/10 "2017-09-27T16:40:15Z")

</div>

@Kevin.Herron

Kevin, thank you for the reminder of that scripting function. I no remember why I didn’t use it. There is a part of it that I can not seem to find in the manual since the old function is now deprecated. Here is my script:

```auto
driver = event.source.parent.getComponent('driver').selectedStringValue
deviceName = event.source.parent.getComponent('deviceName').text
HostName = event.source.parent.getComponent('hostname').text
connectionPath = event.source.parent.getComponent('connectionPath').text
enabled = "true"
slotNumber = event.source.parent.getComponent('slotNumber').intValue
deviceProps = {}
deviceProps["HostName"] = HostName
deviceProps["connectionPath"] = connectionPath

system.device.addDevice(deviceName=deviceName, deviceType=driver, deviceProps=deviceProps)

```

Now, my issue, I can not seem to set the `connectionPath` for the new device this way. Any insight would be appreciated. Thanks.

---

<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:** [September 27, 2017, 4:42pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/11 "2017-09-27T16:42:49Z")

</div>

If it’s a legacy logic driver you’re configuring, the key is “Path”, if it’s the newer one the key is “ConnectionPath”.

All of the keys are case-sensitive.

---

<div class="post-metadata">

**Author:** ![chris\_d\_sanders](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_d_sanders/32/3359_2.png) [@chris\_d\_sanders](https://forum.inductiveautomation.com/u/chris_d_sanders)\
**Post date:** [October 4, 2017, 2:59pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/12 "2017-10-04T14:59:10Z")

</div>

@Kevin.Herron

It would be great to see what all of the “Keyword Arguments” are for `addDevice` for each driver. In the manual, it says to check the “OPC-UA and Device Connections” section of the manual, but I must be blind.

---

<div class="post-metadata">

**Author:** ![chris\_d\_sanders](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_d_sanders/32/3359_2.png) [@chris\_d\_sanders](https://forum.inductiveautomation.com/u/chris_d_sanders)\
**Post date:** [October 10, 2017, 7:15pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/13 "2017-10-10T19:15:42Z")

</div>

\*bump please…

---

<div class="post-metadata">

**Author:** ![Paul.Scott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.scott/32/4578_2.png) [@Paul.Scott](https://forum.inductiveautomation.com/u/Paul.Scott)\
**Post date:** [October 19, 2017, 11:46pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/14 "2017-10-19T23:46:04Z")

</div>

We agree. I can’t promise a timeline on this, but we’ll get all of the keys for our various drivers documented.

---

<div class="post-metadata">

**Author:** ![Paul.Scott](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.scott/32/4578_2.png) [@Paul.Scott](https://forum.inductiveautomation.com/u/Paul.Scott)\
**Post date:** [October 20, 2017, 10:04pm UTC](https://forum.inductiveautomation.com/t/how-do-you-import-or-export-an-opc-ua-device-in-version-7-6/6565/15 "2017-10-20T22:04:54Z")

</div>

In the interest of posterity, the keys for the deviceProp parameter can be found on the [deviceProps Listing page](https://docs.inductiveautomation.com/display/DOC79/system.device.addDevice+-+deviceProps+Listing)
