# \[bug-15850\]Array in UDT being cleared on tag provider restart/edit

**URL:** <https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [January 22, 2020, 4:54pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521 "2020-01-22T16:54:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [January 22, 2020, 4:54pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521/1 "2020-01-22T16:54:22Z")

</div>

We have a UDT that has a memory string array as one of the members. When the realtime tag provider that for that tag is restarted, the data in that string array is cleared out. Is this something that is a known issue? Are there any known workarounds?

Other data in the UDT doesn’t seem to be affected. IE a string member, integer member etc…all retain their previous values.

Thanks!

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [January 22, 2020, 6:06pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521/2 "2020-01-22T18:06:40Z")

</div>

Note:

I upgraded to 8.0.7 and the issue persists.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 22, 2020, 6:08pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521/3 "2020-01-22T18:08:35Z")

</div>

How many elements in the string array? It might be too many, such that its serialized form doesn’t fit in the internal database’s column width.

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [January 22, 2020, 6:10pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521/4 "2020-01-22T18:10:49Z")

</div>

32 strings.

If the same size tag exists just as a tag and not a udt member it works fine. But if an array gets put into a udt it stops working

---

<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:** [January 22, 2020, 6:23pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521/5 "2020-01-22T18:23:42Z")

</div>

It’s just a bug. The workaround would be to change the type from being a string array to a dataset with a single string column, which does persist properly. You should be getting an error in the logs on restart from `tags.storage.internaljson`

 ![2020-01-22-102258_1208x126_scrot](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/ac04a0d49f13344cad2395a8866b93ace4672c3e.png)

I’m filing the ticket right now - should be a relatively easy fix.

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [January 22, 2020, 6:24pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521/6 "2020-01-22T18:24:37Z")

</div>

OK thanks.

I also tested integer array and it is doing the same thing… so it’s not just limited to strings.

---

<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:** [February 13, 2020, 4:46pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521/7 "2020-02-13T16:46:51Z")

</div>

For posterity, a fix was implemented in the ~~8.0.9 nightly available today~~ next available 8.0.10 nightly build. It should prevent the issue described in this post.

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [February 13, 2020, 5:15pm UTC](https://forum.inductiveautomation.com/t/bug-15850-array-in-udt-being-cleared-on-tag-provider-restart-edit/31521/8 "2020-02-13T17:15:45Z")

</div>

Wohoo

Thanks Paul!
