Records are wrongly rejected for Unique key

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
skaruturi
Participant
Posts: 10
Joined: Wed Sep 13, 2006 2:17 am

Records are wrongly rejected for Unique key

Post by skaruturi »

We are having a column(Say SampId) of data type varchar(50)
Suppose the records are given as
1234567890121212
1234567890121213

The second record is rejected in the job for unique key.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Varchar(50) is capable of holding the given data.
You may need to check the data is been truncated, particularly last digit during transformation.
You need to explain more of your job design and the method of load.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

Trim the fields of any spaces before you do the lookup. If one of the field is filled with spaces, you lookup will fail
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

As Kumar requested, more information is required. For all we know, the id might already exist in the table.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply