# ContractKeys - what if one of the field part of the key needs to be updated?

**URL:** <https://forum.canton.network/t/contractkeys-what-if-one-of-the-field-part-of-the-key-needs-to-be-updated/159>\
**Category:** App Development\
**Tags:** daml\
**Created:** [April 16, 2020, 9:21pm UTC](https://forum.canton.network/t/contractkeys-what-if-one-of-the-field-part-of-the-key-needs-to-be-updated/159 "2020-04-16T21:21:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivek\_Srivastava](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/vivek_srivastava/32/79_2.png) [@Vivek\_Srivastava](https://forum.canton.network/u/Vivek_Srivastava)\
**Post date:** [April 16, 2020, 9:21pm UTC](https://forum.canton.network/t/contractkeys-what-if-one-of-the-field-part-of-the-key-needs-to-be-updated/159/1 "2020-04-16T21:21:26Z")

</div>

Whats the best practice around handling this kind of situation? Do we need to update all the contracts accordingly?

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [April 17, 2020, 12:54pm UTC](https://forum.canton.network/t/contractkeys-what-if-one-of-the-field-part-of-the-key-needs-to-be-updated/159/2 "2020-04-17T12:54:11Z")

</div>

In short: yes. Keys should be stable. I’d think of them like primary keys in relational databases. If you don’t have a stable key to hand, generate one like a uuid.
