データベースによって一意キー違反が検出されるビジネスルールのメソッド update()Issue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } カスタムビジネスルールにより、以下のエラーが発生します。 Unique Key violation detected by database ((conn=905588) Duplicate entry 'cae8a2b3db360854580e61f74b96197c' for key 'PRIMARY')02:46:19 AM.476 GlideSession message was modified by sanitization. [message=Unique Key violation detected by database ((conn=905588) Duplicate entry 'cae8a2b3db360854580e61f74b96197c' for key 'PRIMARY')][sanitized=Unique Key violation detected by database ((conn=905588) Duplicate entry 'cae8a2b3db360854580e61f74b96197c' for key 'PRIMARY')]log02:46:19 AM.480 FAILED TRYING TO EXECUTE ON CONNECTION glide.21 (connpid=905588): INSERT INTO task ..... Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } ビジネスルールに ritm.update() が含まれており RITM レコードの作成時にレコード自体を更新するため、 current.update と同じ状況になります。 Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } ベストプラクティスに従って、再帰呼び出しを回避するために、ビジネスルールの前で .update と current.update() を使用しないでください。 再帰ビジネスルールの防止 ビジネスルールスクリプトでは current.update() を使用しないでください。update() メソッドは、挿入操作と更新操作のために同じテーブルで実行されるビジネスルールをトリガーし、ビジネスルールがそれ自体を何度も呼び出すようになります。前のビジネスルールがすべて完了すると、前のビジネスルールに加えられた変更は自動的に保存されます。後のビジネスルールは、関連する、現行のものではないオブジェクトの更新に最適です。再帰ビジネスルールが検出されると、システムはそれを停止し、システムログにエラーを記録します。ただし、 current.update() はシステムパフォーマンスの問題を引き起こすため、決して必要ありません。 Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: #000000; } span { font-size: 12pt; font-family: Lato; color: #000000; } h2 { font-size: 24pt; font-family: Lato; color: black; } h3 { font-size: 18pt; font-family: Lato; color: black; } h4 { font-size: 14pt; font-family: Lato; color: black; } a { font-size: 12pt; font-family: Lato; color: #00718F; } a:hover { font-size: 12pt; color: #024F69; } a:target { font-size: 12pt; color: #032D42; } a:visited { font-size: 12pt; color: #00718f; } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } 今後の参考のためにドキュメントを参照してください: ビジネスルールの仕組み