Null record drop warinig
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 397
- Joined: Wed Apr 12, 2006 2:28 pm
- Location: Tennesse
Null record drop warinig
Hi All, I am running a parallel job which loads the data from 2 sequential file and load in SQL server using ODBC stage . I am using CDC , look up, sort , join stages in this job . I have a field Address2 (varchar 30 , nullable) which contain addresses and email addresses so i need map this field to EMAIL_ADDR field in my target table there fore i am using this logic--
IF count (DSLink231.Address2 ,'@') =1 THEN DSLink231.Address2 ELSE SetNull()
i am getting this warning and it is rejecting around 5 million recs out of 28 million.
APT_CombinedOperatorController(2),1: Field 'Address2' from input dataset '0' is NULL. Record dropped.
I have this field Nullable every where in my job
Any help will be appreciated
Thanks
IF count (DSLink231.Address2 ,'@') =1 THEN DSLink231.Address2 ELSE SetNull()
i am getting this warning and it is rejecting around 5 million recs out of 28 million.
APT_CombinedOperatorController(2),1: Field 'Address2' from input dataset '0' is NULL. Record dropped.
I have this field Nullable every where in my job
Any help will be appreciated
Thanks
hi sam here
-
- Premium Member
- Posts: 397
- Joined: Wed Apr 12, 2006 2:28 pm
- Location: Tennesse
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
Try something like this:
Code: Select all
If (IsNull(DSLink231.Address2) or count(DSLink231.Address2 ,'@')<>1) then SetNull() Else DSLink231.Address2
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
Thomas Alva Edison(1847-1931)
You can also try this.
Code: Select all
IF count (NullToEmpty(DSLink231.Address2) ,'@') =1 THEN DSLink231.Address2 ELSE SetNull()
-
- Premium Member
- Posts: 397
- Joined: Wed Apr 12, 2006 2:28 pm
- Location: Tennesse
-
- Charter Member
- Posts: 822
- Joined: Sat Sep 17, 2005 5:25 pm
- Location: USA
I am geeting the same error but for a timestamp field.
COL_DATE is a Timestamp field.
This col on source side is a date col and on the target its a Timestamp col.
I convert the date col to timestamp col using the following:
However, I get the above error. How do I do a check for nullable..?
What is wrong with this ?
Thanks.
COL_DATE is set to NullableAPT_CombinedOperatorController,1: Field 'UP_FOR_RENL_DT' from input dataset '0' is NULL. Record dropped.
COL_DATE is a Timestamp field.
This col on source side is a date col and on the target its a Timestamp col.
I convert the date col to timestamp col using the following:
Code: Select all
DateToString(Appointment_Data_lnk.ORIG_ISSUE_DT,"%yyyy-%mm-%dd"):' 00:00:00.000'
What is wrong with this ?
Code: Select all
[quote]If IsNULL(DateToString(Appointment_Data_lnk.ORIG_ISSUE_DT,"%yyyy-%mm-%dd"):' 00:00:00.000') then SetNull() Else (DateToString(Appointment_Data_lnk.ORIG_ISSUE_DT,"%yyyy-%mm-%dd"):' 00:00:00.000')[/quote]
Thanks in advance,
Hello Problem resolved:
Code: Select all
If IsNULL(Appointment_Data_lnk.ORIG_ISSUE_DT then SetNull() Else DateToString(Appointment_Data_lnk.ORIG_ISSUE_DT,"%yyyy-%mm-%dd"):' 00:00:00.000'
Thanks in advance,