# \[Bug\] Duplicating Array Instances

**URL:** <https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 3, 2023, 6:04am UTC](https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180 "2023-05-03T06:04:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![timothy.adams](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@timothy.adams](https://forum.inductiveautomation.com/u/timothy.adams)\
**Post date:** [May 3, 2023, 6:04am UTC](https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180/1 "2023-05-03T06:04:27Z")

</div>

When you duplicate an instance in an array, the bindings don't follow the instance they were bound to. The bindings stick to the instance according to the array index.

---

<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:** [May 3, 2023, 12:20pm UTC](https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180/2 "2023-05-03T12:20:51Z")

</div>

Longstanding complaint that IA won't fix, as it seems to be pretty fundamental to how bindings work.

---

<div class="post-metadata">

**Author:** ![timothy.adams](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@timothy.adams](https://forum.inductiveautomation.com/u/timothy.adams)\
**Post date:** [May 3, 2023, 11:58pm UTC](https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180/3 "2023-05-03T23:58:55Z")

</div>

Ahh bummer!  
Nice to know though.  
Cheers!

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 4, 2023, 12:25pm UTC](https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180/4 "2023-05-04T12:25:38Z")

</div>

I think our current internal opinion is that this was always intended because of how bindings work, but maybe we can change it. We have an open ticket to come to a determination if modifying this behavior is possible and worthwhile (based on scope), with the expectation that this would obviously not work if the items are "moved" by scripting or bindings.

Regardless, this is not something which will be changing anytime soon.

---

<div class="post-metadata">

**Author:** ![timothy.adams](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@timothy.adams](https://forum.inductiveautomation.com/u/timothy.adams)\
**Post date:** [May 4, 2023, 12:52pm UTC](https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180/5 "2023-05-04T12:52:18Z")

</div>

Hi cmallonee, thanks for the reply.  
That does make sense on the premis of how the binding work. I guess in the use case where you are adding in an array element into the array, not the end (duplicating) you want the bindings to shuffle with your addition, hence saving the effort to move each binding.  
My use case for this is using a template repeater that contains binded parameters for the instances.

Glad to hear its not a new issue and is being looked at even if its decided to be intended design and not changed.

Keep up the good work!

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 4, 2023, 1:39pm UTC](https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180/6 "2023-05-04T13:39:35Z")

</div>

Is there a reason you don't just incorporate your bindings into a single binding on the `instances` level?

---

<div class="post-metadata">

**Author:** ![timothy.adams](https://avatars.discourse-cdn.com/v4/letter/t/65b543/32.png) [@timothy.adams](https://forum.inductiveautomation.com/u/timothy.adams)\
**Post date:** [May 5, 2023, 6:41am UTC](https://forum.inductiveautomation.com/t/bug-duplicating-array-instances/73180/7 "2023-05-05T06:41:05Z")

</div>

The main reason is I joined the project part way and this is the way it has been done all over, too late to change it. The repeated component has multiple bindings needed per instance and staticlly set parameters. So unfortunatley not as simple as combining into a binding on the instance level without creating arrays to feed that.

I think ideally that is what would have been done. Thanks
