odbc error

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
suneelchallagali
Participant
Posts: 251
Joined: Tue Dec 02, 2008 3:09 pm

odbc error

Post by suneelchallagali »

Hi Guys,

I have created the job which was running fine earlier but now it is not working properly. JOb has following stages as mention in order below for loading source data into target database.

SEQ>TRANSFORMER>ODBC STAGE>REJ_SEQ.

I am getting an error stating that
insert into person(last_name,first_name) values(?,?).

so please can you help me out regarding this issue

thank you,
suni
Pierre
Participant
Posts: 66
Joined: Thu May 24, 2007 7:16 am
Location: Paris

Post by Pierre »

Now, we know you get an error, but we don't know which error.
What is your error message ?
What is the difference between "earlier" and now ?
Felix qui potuit rerum cognoscere causas. Virgile (Géorgiques).
suneelchallagali
Participant
Posts: 251
Joined: Tue Dec 02, 2008 3:09 pm

Post by suneelchallagali »

Hi pierre,

job was running fine earlier but now it is not working fine. error for abort the job mention below

TARGET_SSN,1: [IIS-CONN-ODBC-000016] Execute failed on statement INSERT INTO "DB2INST1".PERSON_ID_INFO (PERSON_ID, SSN, BIRTH_DATE, EFFECTIVE_DATE) VALUES (?, ?, ?, ?).

TARGET_SSN,1: [IIS-CONN-ODBC-000004] ODBC function "SQLExecute" reported: SQLSTATE = 23000: Native Error Code = -803: Msg = [DataDirect][ODBC DB2 Wire Protocol driver][UDB DB2 for Windows, UNIX, and Linux]INSERT/UPDATE INVALID; INDEX 1 RESTRICTS COLUMNS WITH SAME VALUES. DB2INST1.PERSON_ID_INFO (CC_OdbcDBStatement::rejectRows, file CC_OdbcDBStatement.cpp, line 1,549)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You are trying to insert duplicate data into your target table.
-craig

"You can never have too many knives" -- Logan Nine Fingers
suneelchallagali
Participant
Posts: 251
Joined: Tue Dec 02, 2008 3:09 pm

Post by suneelchallagali »

No i am not trying to insert any duplicate data into target i have check it actually there are no reocrds in target.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then your duplicate ID values are in your source data or you are sending them multiple times:

INSERT/UPDATE INVALID; INDEX 1 RESTRICTS COLUMNS WITH SAME VALUES. DB2INST1.PERSON_ID_INFO
Last edited by chulett on Fri Jan 09, 2009 10:07 am, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
suneelchallagali
Participant
Posts: 251
Joined: Tue Dec 02, 2008 3:09 pm

Post by suneelchallagali »

Thank you chulett error is due to multiple records coming from source. i had used the pivot stage in previous thats the reason i am getting an error.

Please can you do me another favour, actually i have posted the in form regarding the SIGSEGV error. if possible can you help me out.

Thank you once again!!!!!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Moderator: please move to parallel forum

This job shows a reject link from an ODBC stage, something not possible in a server job.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
suneelchallagali
Participant
Posts: 251
Joined: Tue Dec 02, 2008 3:09 pm

Post by suneelchallagali »

sorry ray for posting parallel job error in server forum...
Post Reply