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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

16 digit string value is replacing the last digit as zero after Talend Load to mySql database.

Hello Folks,

 

Looking for some urgent help here with below issue.

 

In the Input file I have data like below for the field acct_ID.

84973032626808

74973032626807

 

The input file of .csv type and in talend work flow there is no formatting as such for this field.

 

But when this data loads into mySQl database it is replacing the last digit as zero and not the correct number.

 

What could be the issue and the fix for this?

 

Output: (wrong o/p)

84973032626800

74973032626800

 

Regards,

Deepak

 

Labels (3)
7 Replies
TRF
Champion II
Champion II

Hi,

If no transformation on Talend side, maybe a before insert trigger on MySQL side.

cterenzi
Specialist
Specialist

What is the data type for the acct_ID column in your schema?
Anonymous
Not applicable
Author

String type
Anonymous
Not applicable
Author

@TRF

 

Even if I output this to simple csv from talend it is doing the same.

 

Any modification to input field I need to do to avoid the replacement of exact value to zero. 

 

Regards,

Deepak

TRF
Champion II
Champion II

Incredible!!!

It sounds so strange, double check your job.

If already done, triple check it.

Can you also share your job design and maybe settings for principal components.

Anonymous
Not applicable
Author

I am using Encoding as UTF-8,

no dynamic setting as such for input file and output file.

 

I have attached the design and metadata. Could you please check it.


newsamle.zip
Anonymous
Not applicable
Author

But when I open with notepad++ the output field shows me correct format but not as normal csv it shows me wrong output replacing the last digit to zero.

 

And in MySQL also wrong output replacing the last digit as zero. 

 

I will try a trigger now before insert.

 

DELIMITER //

CREATE TRIGGER contacts_before_insert
BEFORE INSERT
   ON contacts FOR EACH ROW

BEGIN
END; //

DELIMITER ;

 

Regards,

Deepak