rejected 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

sundar
Participant
Posts: 30
Joined: Thu Sep 01, 2005 10:34 am

rejected records

Post by sundar »

Hi All

From source 83 records coming to transformer
but out of the transformer only 2 records are coming,no records were rejected.

I am getting the following warning

APT_CombinedOperatorController(3),1: Field 'pt_state' from input dataset '0' is NULL. Record dropped

APT_CombinedOperatorController(3),1: Warning, all other rejected records will be silent.

anyone help me in this

Thanks
sundar
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Sundar,

the warning is telling you that at least one record and more likely all 81 missing rows are being dropped because they have a NULL value and your target column does not allow nulls.
Last edited by ArndW on Thu Jul 27, 2006 4:24 am, edited 1 time in total.
sundar
Participant
Posts: 30
Joined: Thu Sep 01, 2005 10:34 am

Post by sundar »

Hi Arndw,

Thank u for u'r reply

my Target columns are nullable.

i have one column which is char(1) in source
char(2) in target
so i concatenate with " " to make char(2)

will cause the problem

please help me


thanks
sundar
raghudsx
Participant
Posts: 1
Joined: Thu Jul 27, 2006 3:37 am

Post by raghudsx »

Hi,

U need not concatinate with any thing to load the char1 field in char2 field of your target.

What are your source and targets? Seq files?


Regards

Raghu
Raghu
sundar
Participant
Posts: 30
Joined: Thu Sep 01, 2005 10:34 am

Post by sundar »

Hi raghu

thank u
my job design look this.i am applying rules in the transformer.

dataset--->join---->transformer----->seq
|
dataset


thanks
sundar
balajisr
Charter Member
Charter Member
Posts: 785
Joined: Thu Jul 28, 2005 8:58 am

Post by balajisr »

From source 83 records coming to transformer
but out of the transformer only 2 records are coming,no records were rejected.

I am getting the following warning
What is special about those 2 records?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I can state that the difference in these two is that column "'pt_state" is not null.
thompsonp
Premium Member
Premium Member
Posts: 205
Joined: Tue Mar 01, 2005 8:41 am

Post by thompsonp »

Are you using any of the fields that contain nulls in stage variables? You need to specifically code for nulls in stage variables to avoid records being dropped.
iamnagus
Participant
Posts: 48
Joined: Wed Sep 29, 2004 1:16 am

Post by iamnagus »

If any nullable field being used in the Transformer, need to handle that field. In this scenario use NullToZero() function for the field 'pt_state" then make Nullable 'NO'. It works for you. Check.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Field 'pt_state' from input dataset '0' is NULL. Record dropped
Reconfirm the output metadata of the transformer for pt_state column is nullable.
If you source is nullable = 'no', check the RCP. Disable it.
Esle change this column as nullable = yes right from begining and do a 'Force compile' and rerun the job.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
alphac
Participant
Posts: 10
Joined: Thu Jul 20, 2006 3:33 am
Location: HK

Post by alphac »

You may also check the "null field value" property set in "Sequential file stage".

In your case, the transformer / the sequential file would drop records if :
1. transformer : put a "NULL" to a non-nullable field
OR
2. sequential file : you have not set "null field value" for stage to handle how it represent "NULL" on IO disk.

you may check it also.

p.s. "null field value" property is located in
right click row -> edit row -> click "nullable" -> you may find "null field value" in property window.

Hope it can help you.
alphac
mctny
Charter Member
Charter Member
Posts: 166
Joined: Thu Feb 02, 2006 6:55 am

Post by mctny »

Transformers can handle null values without any problem, you don't need to use any null field value etc, however sequential files cannot handle nulls by itself, you need to handle by yourself. ( use special null value as suggested, )
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Cetin,
Have you treid assigning a Null to a not null field in a transformer?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
thompsonp
Premium Member
Premium Member
Posts: 205
Joined: Tue Mar 01, 2005 8:41 am

Post by thompsonp »

Cetin,

Whilst you're trying kumar's test you might also want to add a stage variable and try using a field containing a null value in the derivation e.g. testing if it is equal to some other field.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

This is quite common when you put a transformer after a join or lookup stage. You end up running a transformation function against a reference field that can be null.

You need to put null handling around any transformer field that might contain a null and requires some type of transformation change or checking. Especially the columns that have come back from the join.

You need a reject link from the transformer to trap those rows that are getting dropped off. You might fix this first NULL problem but a new problem may show up weeks later.
Post Reply