sqlcode:1403 for insert records

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

sqlcode:1403 for insert records

Post by dnat »

Hi,

I am getting sqlcode:1403 while inserting the record into the table. Only one record gets rejected with this issue. I searched the forum, but couldnt find any resolution. Can anyone please help

i am using ORA OCI stage and upsert method, where for update i have mentioned the where clause as 1=2, so it wont go to update at all. This record shoud be inserted, but it is not inserting.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Do you have any insert trigger?
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

Post by dnat »

no, i dont think i have..but how to find that out?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ask your DBA or if you have something like Toad (you should if you don't) it can show you. This is typically a PL/SQL error, hence the trigger question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Post by CLOPES »

Hello,

got the same problem and it was an unique index that causes the trouble.
My keys were not the same as the Unique index.

HTH
Post Reply