DATABASE Commit transaction function

Commit the current database transaction.

Help CentreBuilding Processes

This article describes the RPA Database functionality to commit a database transaction.

For a full list of available functions, please read DATABASE functions.


Description

The Commit transaction function commits the current database transaction, persisting all changes made since the transaction began. After committing, the connection returns to autocommit mode.


Setting it up

To use the Commit transaction function, follow these instructions:

{{popups:rpas/add:action=db-commit}}

Once on a process map:

  1. Navigate to the process where you would like to add the Commit transaction function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the Commit transaction option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameYesText-The alias of a previously opened connection (from db-connect)

Output variables

This action does not produce output variables.


Errors

ErrorDescription
Connection not foundNo open connection exists with the specified name
No active transactionThere is no active transaction to commit on this connection

Tips

  • Only commit after verifying all changes are correct
  • Once committed, changes cannot be rolled back

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.