受信 REST 呼び出し中の最大実行時間超過エラー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: ; } } ServiceNow インスタンスへの受信 REST API 呼び出し中に発生する「トランザクションがキャンセルされました: 最大実行時間を超えました (Transaction cancelled: maximum execution time exceeded)」というエラーを解決します。 外部システムが ServiceNow に REST 呼び出しを行うと、次のエラーが発生して呼び出しが失敗します。 2020-11-18 18:13:04 (183) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 WARNING *** WARNING *** Transaction cancelled: maximum execution time exceeded2020-11-18 18:13:04 (184) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 WARNING *** WARNING *** (conn=3406295) (conn=3406295) Query execution was interrupted2020-11-18 18:13:04 (189) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 WARNING *** WARNING ***2020-11-18 18:13:04 (199) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 SEVERE *** ERROR *** com.glide.sys.TransactionCancelledException: Transaction cancelled: maximum execution time exceeded2020-11-18 18:13:04 (200) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 WARNING *** WARNING *** #314140 [REST API] RESTAPIProcessor : Handling exception com.glide.sys.TransactionCancelledException: Transaction cancelled: maximum execution time exceeded2020-11-18 18:13:04 (200) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 WARNING *** WARNING *** #314140 [REST API] RESTAPIProcessor : Unknown exception RESTRuntimeException:com.glide.sys.TransactionCancelledException: Transaction cancelled: maximum execution time exceededDetail: Transaction cancelled: maximum execution time exceeded2020-11-18 18:13:04 (200) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 DEBUG: #314140 [REST API] RESTAPIProcessor : End of Request Processing2020-11-18 18:13:04 (200) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 DEBUG: #314140 [REST API] RESTAPIProcessor : REST Request Processing time total_time_to_now_micro_secs=600529412020-11-18 18:13:04 (200) API_INT-thread-2 F78993F9DBE8A0105E65C3AF299619CB txid=3f8993f9dbe8 SEVERE *** ERROR *** Problem processing asynchronous servlet request 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: ; } } クエリの実行時間が、トランザクションクォータルールで定義された時間制限を超えています。トランザクションが制限を超えると、インスタンスはトランザクションをキャンセルし、キャンセルメッセージをログに記録します。 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: ; } } REST APIタイプに適用されるトランザクションクォータルールの最大継続時間(秒)の値を増やします。 「システム定義」>「トランザクションクォータルール」に移動します。REST APIタイプのトランザクションクォータルールを開きます。 トランザクションクォータルール説明デフォルトのタイムアウトREST Import Set API request timeout受信RESTインポートセットAPIトランザクションが指定された時間より長く実行されるのを防ぎます。60 秒REST Table API request timeout受信RESTテーブルAPIトランザクションが指定されたtよりも長く実行されるのを防ぎます。60 秒REST Aggregate API request timeout受信REST Aggregate APIトランザクションが指定された時間より長く実行されるのを防ぎます。60 秒REST Attachment API request timeout受信REST Attachment APIトランザクションが指定された時間より長く実行されるのを防ぎます。60 秒 必要に応じて最大継続時間(秒)の値を増やします。レコードを保存します。 追加情報 キャッチオール型のトランザクションクォータルールは、REST および JSON トランザクションにも適用されます。 トランザクションクォータルール説明REST and JSON Catch AllすべてのRESTおよびJSONトランザクションのデフォルトルール このルールは、ServiceNow へのインバウンド REST トランザクションに対して最後に評価されます。 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: ; } } Default quota rules