java.sql.SQLException Error

Eight Stars

java.sql.SQLException Error

Error is this

 

Identity column 'MRNNo' must be of data type int, bigint, smallint, tinyint, or decimal or numeric with a scale of 0, unencrypted, and constrained to be nonnullable.

 

Input field MRNNo is a string, how to handle this?

Tags (1)

Accepted Solutions
Twelve Stars

Re: java.sql.SQLException Error

uncheck "Trun on Identity insert"

Francois Denis

Tag as "solved" for others! Kudos to thanks!


All Replies
Twelve Stars

Re: java.sql.SQLException Error

it's defined somewhere as Identity column so it's not a string.
check your metadata

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Highlighted
Eight Stars

Re: java.sql.SQLException Error

Talend forced me to select the option "Specify Identity field". How can i ignore this? OR What to do for a successful transmission

Tags (1)
Twelve Stars

Re: java.sql.SQLException Error

in witch component : tXxxxx ?

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Eight Stars

Re: java.sql.SQLException Error

I am exporting data from Excel to MSSQL DB

This option comes in tDBOutput.

 

MRNNo is alphanumeric, hence i cant select INT. MRNNo is string in both source and destination.

Twelve Stars

Re: java.sql.SQLException Error

are you inserting or updating data?
you canuse tMSSqlOutput for MSSQL DB!

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Eight Stars

Re: java.sql.SQLException Error

There too, if i select Create table then this option "Specify Identity field" pops up

Twelve Stars

Re: java.sql.SQLException Error

can you try with tMSSqlOutput

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Eight Stars

Re: java.sql.SQLException Error

I was saying about tMSSqlOutput only. "Specify Identity field" option is there if i select create table. 

Twelve Stars

Re: java.sql.SQLException Error

uncheck "Trun on Identity insert"

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Eight Stars

Re: java.sql.SQLException Error

Thank you... it working fine now

 

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

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download