# \[Bug-12661\] Duplicate Property Key Corrupts Original Property Value

**URL:** <https://forum.inductiveautomation.com/t/bug-12661-duplicate-property-key-corrupts-original-property-value/22430>\
**Category:** Ignition Early Access\
**Created:** [February 7, 2019, 2:03pm UTC](https://forum.inductiveautomation.com/t/bug-12661-duplicate-property-key-corrupts-original-property-value/22430 "2019-02-07T14:03:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfortin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kfortin/32/4195_2.png) [@kfortin](https://forum.inductiveautomation.com/u/kfortin)\
**Post date:** [February 7, 2019, 2:03pm UTC](https://forum.inductiveautomation.com/t/bug-12661-duplicate-property-key-corrupts-original-property-value/22430/1 "2019-02-07T14:03:58Z")

</div>

Looks like commit of key names is waiting until focus is lost or enter is pressed, but still noticing that creating a duplicate key will overwrite the existing key, versus rejecting the new key or forcing a rename.

Build b2019020502

Before:  
 ![Before](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7218cb7923e80646b2494a2e377a0c78f09c8b93.png)

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

---

<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:** [February 7, 2019, 9:46pm UTC](https://forum.inductiveautomation.com/t/bug-12661-duplicate-property-key-corrupts-original-property-value/22430/2 "2019-02-07T21:46:28Z")

</div>

Yeah, I would call this not fixed. Duplicate keys should not wipe out the prior property.

---

<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:** [February 7, 2019, 10:30pm UTC](https://forum.inductiveautomation.com/t/bug-12661-duplicate-property-key-corrupts-original-property-value/22430/3 "2019-02-07T22:30:55Z")

</div>

I’ve opened an internal ticket for this one. The fix to defer updates is actually doing what it is supposed to - this is just a side-effect; originally, a key was written to the View after each key press (which is why you had an instant collision), which no longer happens. The fix for the key deferment did not include any acceptance around preventing name collisions.

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [March 1, 2019, 4:56pm UTC](https://forum.inductiveautomation.com/t/bug-12661-duplicate-property-key-corrupts-original-property-value/22430/4 "2019-03-01T16:56:25Z")

</div>

This issue was fixed in the build that was uploaded today (3/1).  
Please let us know if you continue to see this behavior after upgrading.

---

<div class="post-metadata">

**Author:** ![kfortin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kfortin/32/4195_2.png) [@kfortin](https://forum.inductiveautomation.com/u/kfortin)\
**Post date:** [March 1, 2019, 5:54pm UTC](https://forum.inductiveautomation.com/t/bug-12661-duplicate-property-key-corrupts-original-property-value/22430/5 "2019-03-01T17:54:52Z")

</div>

Looks like this is 99% of the way there!

Works for everything except when you leave the key name as `key`.  
Inserting a new key with and existing key name `key` causes the same collision as before.  
Other than that, solved 😁

Build b2019030102

---

<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:** [March 1, 2019, 5:58pm UTC](https://forum.inductiveautomation.com/t/bug-12661-duplicate-property-key-corrupts-original-property-value/22430/6 "2019-03-01T17:58:17Z")

</div>

Yes, we already opened an internal ticket for that scenario, but thanks for validating my findings!
