Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

[resolved] tMysqlOutput doesn't insert records

Highlighted
One Star

[resolved] tMysqlOutput doesn't insert records

Hey everyone, I'm having some trouble using MySQLoutput. It creates a table (Action on table is Create table if does not exist), but it doesn't insert any records neither does it produce errors or rejects. Attached screenshot.
Also have this issue in another job, using input from tBigqueryInput to write to MySQL. Any thoughts?
Thanks,
Jochem
Edit: Looks like my attached file doesn't come through.. Its a pic of the job, mysqlinput processing 100 rows to mysqloutput, 0 rows (Rejects) from output to logrow.

Accepted Solutions
Highlighted
One Star

Re: [resolved] tMysqlOutput doesn't insert records

check whether you have set commit action or not, it may cause such problem. tXXXCommit component to verify.

Fantastic, that was the problem. I assumed a commit was part of the component tMysqlOutput. A tMysqlCommit trigger after the output does indeed insert the rows.
Thanks a bunch!

View solution in original post


All Replies
Highlighted
Six Stars

Re: [resolved] tMysqlOutput doesn't insert records

check whether you have set commit action or not, it may cause such problem. tXXXCommit component to verify.
Highlighted
One Star

Re: [resolved] tMysqlOutput doesn't insert records

check whether you have set commit action or not, it may cause such problem. tXXXCommit component to verify.

Fantastic, that was the problem. I assumed a commit was part of the component tMysqlOutput. A tMysqlCommit trigger after the output does indeed insert the rows.
Thanks a bunch!

View solution in original post

Highlighted
Five Stars

Re: [resolved] tMysqlOutput doesn't insert records

This is absolutely what I was missing. Using tMySQLCommit resolved the issue.

One more thing to ponder while implementing tWriteXMLField.

The Output should have only one column namely "XML" of varchar type (of size 255, this can be less as well). If the column is not "XML", Job will finish successfully but there won't be any output stored in MySQL Table.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now