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

java.sql.SQLException Error

Highlighted
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
Highlighted
Thirteen Stars

Re: java.sql.SQLException Error

uncheck "Trun on Identity insert"

Francois Denis

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

View solution in original post


All Replies
Highlighted
Thirteen 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)
Highlighted
Thirteen Stars

Re: java.sql.SQLException Error

in witch component : tXxxxx ?

Francois Denis

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

Highlighted
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.

Highlighted
Thirteen 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!

Highlighted
Eight Stars

Re: java.sql.SQLException Error

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

Highlighted
Thirteen Stars

Re: java.sql.SQLException Error

can you try with tMSSqlOutput

Francois Denis

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

Highlighted
Eight Stars

Re: java.sql.SQLException Error

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

Highlighted
Thirteen Stars

Re: java.sql.SQLException Error

uncheck "Trun on Identity insert"

Francois Denis

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

View solution in original post

Highlighted
Eight Stars

Re: java.sql.SQLException Error

Thank you... it working fine now

 

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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog