How do I capture exception info for tMysqlInput component?

One Star

How do I capture exception info for tMysqlInput component?

I've noticed that if anything goes wrong with my MySql queries, the only exception I ever see is NullPointerException. You can easily reproduce this by introducing a simple syntax error in the query.
Similar jobs running against Oracle tables returns the full error.
It's difficult to track down bugs in new jobs without the error info. Is this a bug in the component?
I'm using TOS 5.4.1.

Seventeen Stars

Re: How do I capture exception info for tMysqlInput component?

hi beebell,
if you got a NullPointerException, it's not a sql error but a java error. You're trying to use a java method on a null value that doesn't manage that case.
It could be some connection parameters that 're not populate or you're using a varaible in your query that is null.

If your expectation is to catch some errors from sql engine, you've to uncheck batchsize in advanced parameters of your output DB componenent & use the reject flow.

hope it helps
regards
laurent
Moderator

Re: How do I capture exception info for tMysqlInput component?

Hi,
Did you use tMySqlConnection component in your workflow?
Your job design sreenshots will be helpful for us to address your issue quickly.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now