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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Mr_Pancake
Contributor
Contributor

Creating SQL Table based on File

Hi,

I've got a very simple testing pipeline:

0695b00000hs0DeAAI.png

In row generator I have just TalendDataGenerator.getFirstName() and

TalendDataGenerator.getLastName(). I want to create table like "on the fly" based on scheme provided in

tMap.

The problem is, all the VARCHAR columns length in MySQL is set to 0 what throws this kind of error:

Exception in component tDBOutput_1 (contactTest)

java.sql.BatchUpdateException: Data truncation: Data too long for column 'firstName' at row 1 ...

What can I do to make Talend configure a new SQL table with a proper length of string columns?

Thanks in advance!

Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello

The create table statement is defined based on the schema of tDBOutput component, so open the schema and set the length property of each field.

 

Regards

Shong

View solution in original post

1 Reply
Anonymous
Not applicable

Hello

The create table statement is defined based on the schema of tDBOutput component, so open the schema and set the length property of each field.

 

Regards

Shong