How to resolve inbound REST call timeout errors caused by Transaction Quota RulesIssue <!-- /*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: ; } } Resolve the "Transaction cancelled: maximum execution time exceeded" error that occurs during inbound REST API calls to a ServiceNow instance. An external system makes a REST call to ServiceNow, and the call fails with the following error: 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: ; } } All supported releases 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: ; } } The query execution takes longer than the time limit defined in the Transaction Quota Rule. When a transaction exceeds the limit, the instance cancels the transaction and logs the cancellation message. 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: ; } } Increase the Maximum Duration (seconds) value for the Transaction Quota Rule that applies to your REST API type. Go to System Definition > Transaction Quota Rules.Open the Transaction Quota Rule for your REST API type: REST API namesDescriptionDefault timeoutREST Import Set API request timeoutPrevents inbound REST Import Set API transactions from running longer than the specified time60 secondsREST Table API request timeoutPrevents inbound REST Table API transactions from running longer than the specified time60 secondsREST Aggregate API request timeoutPrevents inbound REST Aggregate API transactions from running longer than the specified time60 secondsREST Attachment API request timeoutPrevents inbound REST Attachment API transactions from running longer than the specified time60 seconds Modify the Maximum Duration (seconds) value as needed.Save the record. Additional information A catch-all Transaction Quota Rule also applies to REST and JSON transactions: Transaction Quota RuleDescriptionREST and JSON Catch AllDefault rule for all REST and JSON transactions This rule is evaluated last for inbound REST transactions to ServiceNow. 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