# \[BUG-14729\]: UDT Parameter Binding with number formatting

**URL:** <https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737>\
**Category:** Ignition Early Access\
**Created:** [July 20, 2019, 9:33pm UTC](https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737 "2019-07-20T21:33:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![malone46844](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@malone46844](https://forum.inductiveautomation.com/u/malone46844)\
**Post date:** [July 20, 2019, 9:33pm UTC](https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737/1 "2019-07-20T21:33:40Z")

</div>

I searched but didn’t find this already reported.

When setting a tag’s OPC Item Path in a UDT to use a number formatted parameter like:

```auto
ns=2;s=[default]PARK/WEC{PARAM_TURBINEID|#00}/_diagnostics_/Is Connected

```

the parameter doesn’t get zero padded:

```auto
ns=2;s=[default]PARK/WEC1/_diagnostics_/Is Connected

```

Thanks.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 22, 2019, 4:26pm UTC](https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737/2 "2019-07-22T16:26:08Z")

</div>

What build/nightly version is this?

---

<div class="post-metadata">

**Author:** ![malone46844](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@malone46844](https://forum.inductiveautomation.com/u/malone46844)\
**Post date:** [July 23, 2019, 11:13pm UTC](https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737/3 "2019-07-23T23:13:16Z")

</div>

This is using 8.0.3 (b2019071202).

---

<div class="post-metadata">

**Author:** ![ayu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ayu/32/16635_2.png) [@ayu](https://forum.inductiveautomation.com/u/ayu)\
**Post date:** [August 14, 2019, 10:06pm UTC](https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737/4 "2019-08-14T22:06:53Z")

</div>

Hi @malone46844,

I’ve been able to reproduce this bug in 8.0.3. Seems like number formatting doesn’t work for constant parameter expressions such as your case. As a workaround, you can try doing adding a trivial operation to the constant expression, such as PARAM\_TURBINE\_ID + 0. I’ve attached the ticket number to this post to keep track of its progress.

Thanks,  
Alen

---

<div class="post-metadata">

**Author:** ![jgardner](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jgardner](https://forum.inductiveautomation.com/u/jgardner)\
**Post date:** [January 14, 2020, 3:09pm UTC](https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737/5 "2020-01-14T15:09:42Z")

</div>

{Param **+ 0** |00} worked like a charm. Thank you much for the workaround.

---

<div class="post-metadata">

**Author:** ![Hbrowne](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@Hbrowne](https://forum.inductiveautomation.com/u/Hbrowne)\
**Post date:** [January 21, 2022, 1:48am UTC](https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737/6 "2022-01-21T01:48:05Z")

</div>

Man thanks for posting that, that trick helped me out!

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [April 13, 2023, 11:05pm UTC](https://forum.inductiveautomation.com/t/bug-14729-udt-parameter-binding-with-number-formatting/26737/7 "2023-04-13T23:05:49Z")

</div>

Hey guys, this is still a bug and +0 didn't work for me. Any update on this? Cheers.

Ignition 8.1.25
