# Parameter passing for UDT Ignition 8

**URL:** <https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547>\
**Category:** Ignition\
**Created:** [August 18, 2019, 5:47pm UTC](https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547 "2019-08-18T17:47:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamad.tayara](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mohamad.tayara](https://forum.inductiveautomation.com/u/mohamad.tayara)\
**Post date:** [August 18, 2019, 5:47pm UTC](https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547/1 "2019-08-18T17:47:52Z")

</div>

Hi,  
I am using Ignition 8.03 and trying to create a UDT with parameters to populate OPC Item Path and server Name.  
I did create the UDT DataType automatically by dragging it from the opc browser, then exported the datatype and added the parameters with notepad++ (using search and replace), but when importing the datatype to ignition it does not seem to recognize the parameters correctly ( the text is black instead of gray), but when deleting the parameters and entering them manually, the parameters are recognized (text switches to gray). is there a fix for this issue.  
Thanks

---

<div class="post-metadata">

**Author:** ![alexlu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexlu/32/65795_2.png) [@alexlu](https://forum.inductiveautomation.com/u/alexlu)\
**Post date:** [August 31, 2019, 12:10am UTC](https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547/2 "2019-08-31T00:10:48Z")

</div>

Hi Mohamad,

This isn’t a problem that we’re aware of and I haven’t been able to reproduce it on 8.0.3 or the latest nightly. As a quick check, make sure you’re not leaving out any brackets during the search and replace. Are you exporting as json or xml? If you want to attach the problematic tag file, I can take a closer look.

Thanks,

Alex

---

<div class="post-metadata">

**Author:** ![mohamad.tayara](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mohamad.tayara](https://forum.inductiveautomation.com/u/mohamad.tayara)\
**Post date:** [September 4, 2019, 2:11am UTC](https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547/3 "2019-09-04T02:11:53Z")

</div>

Hi Alex you find the exorted json datatype file and the modified (\_mod) with the parameters replaced, thanks[P\_AIN\_o.json](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b72e59810d094d167c4bf6de4facca94cc22f593.json) (33.6 KB)  
[P\_AIN\_o\_mod.json](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/54ae55e33fd793bd12ee8d409c86022ebee0da50.json) (35.6 KB)

---

<div class="post-metadata">

**Author:** ![alexlu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexlu/32/65795_2.png) [@alexlu](https://forum.inductiveautomation.com/u/alexlu)\
**Post date:** [September 5, 2019, 12:13am UTC](https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547/4 "2019-09-05T00:13:04Z")

</div>

Mohamad,

The tag props which are to be parameter bindings on import must be modified to include `"bindType": "parameter"` as part of its object, otherwise it’ll be treated as a value when the modified json is imported. Depending on the complexity of the parameter bindings you’d like to replace, you may find it easier to export the UDT as xml instead, in which case `boundValueType="parameter"` would be added to the relevant tag props. I’ve attached a modified xml of your original tag file in which I’ve done just that.

[P\_AIN\_o\_mod.xml](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/24eb305590f5aba93faa91f5fc62bfd788d94b63.xml) (66.1 KB)

---

<div class="post-metadata">

**Author:** ![mohamad.tayara](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@mohamad.tayara](https://forum.inductiveautomation.com/u/mohamad.tayara)\
**Post date:** [September 7, 2019, 3:47pm UTC](https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547/5 "2019-09-07T15:47:19Z")

</div>

It is working! thanks Alex.

---

<div class="post-metadata">

**Author:** ![dwoo](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@dwoo](https://forum.inductiveautomation.com/u/dwoo)\
**Post date:** [September 12, 2019, 7:19pm UTC](https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547/6 "2019-09-12T19:19:44Z")

</div>

I’m not sure if it’s an Ignition Designer version issue (I have 8.0.2), but if I edit a UDT element with the parameters, export and immediately re-import it fails to import the element with the parameters. The format of the XML is

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6ca3b5cc0ecefd5a531db3c8b1a3e16186ffbd92.png)

It looks different than the XML file you created.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3cfa281afda7fa32d1a01d8f6832f3635dcfae81.png)

---

<div class="post-metadata">

**Author:** ![alexlu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alexlu/32/65795_2.png) [@alexlu](https://forum.inductiveautomation.com/u/alexlu)\
**Post date:** [September 16, 2019, 10:32pm UTC](https://forum.inductiveautomation.com/t/parameter-passing-for-udt-ignition-8/27547/7 "2019-09-16T22:32:14Z")

</div>

@dwoo That's an XML import bug that was previously identified and has since been fixed in 8.0.3.

> [@\[BUG-14012\] Ignition 8.0.3 / 8.0.2-rc1 - wrong parameter binding after xml export/import](http://forum.inductiveautomation.com/t/bug-14012-ignition-8-0-3-8-0-2-rc1-wrong-parameter-binding-after-xml-export-import/25284):
>
> Ignition 8.0.3-nightly 2019-05-23 or Ignition 8.0.2-rc1 @mgross When I create with a parameter binding the following xml file is generated \<Tags MinVersion="8.0.0"\> \<Tag name="test2" type="UdtType"\> \<Property name="typeId"\>\</Property\> \<Parameters\> \<Property name="param" type="String"\>val parm1\</Property\> \</Parameters\> \<Tags MinVersion="8.0.0"\> \<Tag name="New Tag" type="AtomicTag"\> \<Property name="value"\>{bindType=parameter, binding={pa…
