tMysqlRollback - 6.3

Talend Open Studio for Big Data Components Reference Guide

Talend Open Studio for Big Data
Data Governance
Data Quality and Preparation
Design and Development
Talend Studio


Cancel the transaction commit in the connected database.


Avoids to commit part of a transaction involuntarily.

tMysqlRollback properties

Component family



Basic settings

Component list

Select the tMysqlConnection component in the list if more than one connection are planned for the current job.


Close Connection

Clear this check box to continue to use the selected connection once the component has performed its task.

Advanced settings

tStatCatcher Statistics

Select this check box to collect log data at the component level.

Dynamic settings

Click the [+] button to add a row in the table and fill the Code field with a context variable to choose your database connection dynamically from multiple connections planned in your Job. This feature is useful when you need to access database tables having the same data structure but in different databases, especially when you are working in an environment where you cannot change your Job settings, for example, when your Job has to be deployed and executed independent of Talend Studio.

Once a dynamic parameter is defined, the Component List box in the Basic settings view becomes unusable.

For examples on using dynamic parameters, see Scenario 3: Reading data from MySQL databases through context-based dynamic connections and Scenario: Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic settings and context variables, see Talend Studio User Guide.


This component is more commonly used with other tMysql* components, especially with the tMysqlConnection and tMysqlCommit components.


If you are using a subscription-based version of the Studio, the activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User Guide.

For more information on the log4j logging levels, see the Apache documentation at



Scenario: Rollback from inserting data in mother/daughter tables

Based on Scenario 1: Inserting data in mother/daughter tables, insert a rollback function in order to prevent unwanted commit.

  1. Drag and drop tMysqlRollback to the design workspace.

  2. Connect tFileList to tMysqlRollback with an OnSubjobError trigger.

  3. Double-click tMysqlRollback to enter its Basic settings view.

  4. From the Component List, select the connection component.

tMysqlRollback ensures that the transaction will not be partly committed.