hi Gurus,
my source is oracle, my target is oracle.
iam using ODBC STAGE as source and ODBC STAGE AS TARGET.
i can compile and run, but after running the jobs , i can see that the data is not loaded in the target.iam getting warnings, whenever i run the job, i went to view the warnings from the logfile of director.
i got warning as
DataStage][SQL Client][ODBC][Oracle][ODBC][Ora]ORA-00001: unique constraint (SCOTT.PK_DEPT) violated.
due to this the data is not loading in the target.
plz help me.
cheers;
vijay
transformation error
Moderators: chulett, rschirm, roy
![Confused :?](./images/smilies/icon_confused.gif)
You've violated a Unique Constraint and a Primary Key one to boot going by the name of it. The constraint enforces the field or group of fields which uniquely identify a record, thus only one record can exist that matches that constraint. More than likely, you've tried to insert records with Primary Key values that already exist in the table, but updates can cause this error as well.
Make sure this doesn't happen. Preload existing keys into a hashed file and check against it during your load. Either skip any inserts that already exist or send them down an update link instead. Easy Peasy.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 228
- Joined: Tue Oct 03, 2006 7:08 pm
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Well! It will be great if you mark the post as resolved.vijaykumar wrote:hi,
thanks very much , i was specifying the same table name in the source and target.
cheers;
vijay
![Smile :)](./images/smilies/icon_smile.gif)
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE