{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":39172,"path":"platform-administration/platform-performance/transaction-cancellation.md","title":"Transaction cancellation","bundle":null,"doc_type":null,"release":"australia","body":"\n# Transaction cancellation\n\nYou can cancel transactions that take longer than expected to load. Canceling long-running transactions can help prevent excessive resource consumption.\n\nCauses of slow-loading transactions include the following scenarios.\n\n-   Sorting a large number of records by an unindexed string field.\n-   Grouping a large table on a field that has predominantly distinct values.\n-   Exporting all rows from a large table.\n-   Testing a poorly scripted business rule that has an infinite JavaScript loop.\n\n## Transaction cancel timer\n\n**Note:** You can’t cancel an import with these controls.\n\nDuring a long-running transaction, a timer and a cancellation option appear in an alert banner.\n\nTo cancel the transaction, select the **Cancel** button. The alert message displays when a transaction cancellation is in progress and when the cancellation is completed.\n\nIf a slow transaction completes successfully, the timer indicates how long it took for the transaction to complete.\n\n## Canceled transaction logs\n\nCanceled transactions appear in the transaction log with **CANCELLED** appended to the URL. Transactions canceled by a user are logged differently from transactions canceled by transaction quotas. For more information about canceled transaction logging, see [Canceled-transaction logging to a table](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/platform-performance/c_CanTranLogTbl.md). For more information about transaction quotas, see [Transaction quotas](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/platform-performance/c_TransactionQuotas.md).\n\n## Properties for transaction cancellation\n\nAdministrators can configure the behavior of the transaction cancellation capability using the following properties.\n\n|Property|Definition|Location|\n|--------|----------|--------|\n|com.glide.request\\_manager.active|Let users cancel long-running transactions \\(enabled by default\\).|Open the sys\\_properties table by navigating to **All** and entering `sys_properties.list`.|\n|glide.ui.transaction.long\\_response.time|Delay in seconds before the cancel transaction button appears for a long-running transaction.|Navigate to **All** &gt; **System Properties** &gt; **UI Properties** and locate the field labeled **Delay in seconds before the Transaction Cancel button is displayed for a long-running transaction**.|\n\n-   **[View and kill active transaction](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/platform-performance/t_ViewAndKillAnActiveTransaction.md)**  \nAdministrators can view active transactions and kill long-running transactions.\n-   **[Canceled-transaction logging to a table](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/platform-performance/c_CanTranLogTbl.md)**  \nThe system logs canceled transactions to a table in addition to the transaction log.\n\n**Parent Topic:**[Resolving platform performance issues](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/platform-performance/resolving-plat-performance-issues.md)\n\n"}}