Lookup Fails on Timestamp with MicorSeconds.

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
synsog
Premium Member
Premium Member
Posts: 232
Joined: Sun Aug 01, 2010 11:01 pm
Location: Pune

Lookup Fails on Timestamp with MicorSeconds.

Post by synsog »

My Source Data:
ID SOURCE_TS
230 2012-05-31 15:13:32.6540000
230 2012-05-31 15:13:52.1540000

Reference Data:

REF_ID REF_TS
230 2012-03-22 07:19:37.1490000
230 2012-05-31 15:13:32.6540000
230 2012-05-31 15:13:52.1540000

Getting Error:-
Ignoring duplicate entry at table record 3; no further warnings will be issued for this table
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

What's the failure? That message is just a warning and will not force a job to fail.
- james wiles


All generalizations are false, including this one - Mark Twain.
synsog
Premium Member
Premium Member
Posts: 232
Joined: Sun Aug 01, 2010 11:01 pm
Location: Pune

Post by synsog »

here the issue, we need to retrieve the reference data based on lookup condition, for specific ID & REF_TS, we will get the some key fields data from reference table.
mobashshar
Participant
Posts: 91
Joined: Wed Apr 20, 2005 7:59 pm
Location: U.S.

Post by mobashshar »

Are you using Extended Microseconds for timestamp fields?
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Re: Lookup Fails on Timestamp with MicorSeconds.

Post by zulfi123786 »

synsog wrote:Getting Error:-
Ignoring duplicate entry at table record 3; no further warnings will be issued for this table
As noted this is not error but just a warning and looking at the warning it is clear that on the reference link the column is defined as Timestamp witthout the microseconds extension
- Zulfi
ntr
Participant
Posts: 110
Joined: Fri Dec 18, 2009 10:30 am
Location: pune

Re: Lookup Fails on Timestamp with MicorSeconds.

Post by ntr »

Getting Error:-
Ignoring duplicate entry at table record 3; no further warnings will be issued for this table

Why above warning will come and what need to do to supress that one

Thanks
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

Re: Lookup Fails on Timestamp with MicorSeconds.

Post by zulfi123786 »

Look up will generate the warning if there are duplicate values over the key columns, in your case there are no duplicates if the microseconds are considered.

It is not advisable to look for means of how to suppress warnings rather approach with a resolution to fix the warnings.

you have two choices:
1) Select the extended "microseconds" option in the reference link
2) Select "Multiple rows returned from link" option in the look up - Beware this would make your look up work like a join stage (inner join)
- Zulfi
Post Reply