Uiqueフィールドが有効に動作しない

Fagi
Tera Contributor

いつもお世話になっております。

構成アイテムテーブルを継承したテーブルにカスタムフィールドを作成し、Uniqueフィールドを有効に設定したのですが、Uniqueを有効したフィールドに重複する値を入力しても、エラーが発生せず、重複レコードが作成されてします。

Communityを参考に、以下は試してみました。

 ・レコードを全て削除し、Uniqueフィールドを一度無効にして、有効にする。

  →オフに変更後、有効に戻せなくなりました。

 ・フィールドを削除し、Uniqueフィールドを有効にし、再度作成

  →エラー発生せず、重複レコードが作成されてしまう。

 

上記の原因は何でしょうか?

些細な事でもいいので、ご教授頂けると幸いです。

 

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

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.

View solution in original post

1 REPLY 1

Community Alums
Not applicable

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.