Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Issue with MysqlCommit and MysqlRollback

I have an issue with the Mysql Commit and Rollback components.
I have inserting rows into 2 tables and I need the row inserted into the first table to be rollback if the second insert failed.
For now it seems the insert is executed every 100 rows which is fine. But this insert is not rollback if the insert into the second table failed.
Here is my configuration. Please let me know if you need any other information so you can help me.
Thanks
Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi,
To use the Commit and Rollback components; you have to create a Connection with the following tMySQLConnection and then use into the tMySQLOutput component the "Use an existing connection".
In that case the Commit will be executed only if you have no error in your subJob; or Rollback if you have one or some exceptions.
Attached a JobDesign's screenshot which show a Connection + Commit/Rollback rules.
Best regards;