Transaction cancellation

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 1 minute to read
  • A user can cancel a transaction that takes longer than expected to load.

    Causes of slow-loading transactions include the following scenarios.
    • Sorting a large number of records by an unindexed string field.
    • Grouping a large table on a field that has predominantly distinct values.
    • Exporting all rows from a large table.
    • Testing a poorly scripted business rule that has an infinite JavaScript loop.
    Note:
    You cannot cancel an import with these controls.

    Transaction cancel options

    After the transaction has been cancelled, you can use the following options for different purposes.Image showing the transaction cancel options
    • Go Back: Returns to the previous page in the navigation history
    • Reload: Reloads the targeted page
    • Load List With Filter Only: Shows the list (without the records) only with the applied filters
    • Export: Export of list view records
      Note:
      The Export option appears only if the following conditions are met.
      • The glide.ui.export_on_tx_cancel.enable property is set to True.
      • The list view is canceled.
      You can use one of the following options to export the list view records.
      • Excel
      • CSV
      • JSON
      • PDF
      The exported list view records is delivered to the provided email address. Only the PDF File Type option can have the Orientation option.
      Image showing the transaction cancel options for Export option

    Transaction cancel timer

    During a long-running transaction, a timer and a red cancellation button appear in the banner frame.
    Figure 1. Cancel request
    Cancel a running transation

    To cancel the transaction, click the cancellation button. The timer indicates that the transaction is being canceled. When it is finished, you see a message that the transaction was canceled.

    If the transaction completes successfully, the timer indicates how long it took for the transaction to complete.
    Figure 2. Transaction completed
    Completed transaction

    Canceled transaction logs

    Canceled 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.

    Cancel transaction properties

    Administrators can configure the behavior of the transaction cancel capability using the following properties.

    Property Definition Location
    com.glide.request_manager.active Let users cancel long running transactions (enabled by default). Open the sys_properties table.
    glide.ui.transaction.long_response.time Delay in seconds before the cancel transaction button appears for a long-running transaction. Navigate to System Properties > UI Properties.