- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 06:56 PM - edited 10-25-2022 06:56 PM
いつもお世話になっております。
構成アイテムテーブルを継承したテーブルにカスタムフィールドを作成し、Uniqueフィールドを有効に設定したのですが、Uniqueを有効したフィールドに重複する値を入力しても、エラーが発生せず、重複レコードが作成されてします。
Communityを参考に、以下は試してみました。
・レコードを全て削除し、Uniqueフィールドを一度無効にして、有効にする。
→オフに変更後、有効に戻せなくなりました。
・フィールドを削除し、Uniqueフィールドを有効にし、再度作成
→エラー発生せず、重複レコードが作成されてしまう。
上記の原因は何でしょうか?
些細な事でもいいので、ご教授頂けると幸いです。
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 05:46 PM - edited 10-26-2022 05:47 PM
This is not supported, please see the following KB Article for more information:
KB0657669 - Unable to enforce uniqueness for fields which require it in cmdb_ci extended tables.
You would have to use a Before Insert/Update Business Rule for this requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 05:46 PM - edited 10-26-2022 05:47 PM
This is not supported, please see the following KB Article for more information:
KB0657669 - Unable to enforce uniqueness for fields which require it in cmdb_ci extended tables.
You would have to use a Before Insert/Update Business Rule for this requirement.