error "Null value on accessor interfacing to field"

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
chanthou_2000
Participant
Posts: 11
Joined: Mon Jun 16, 2003 2:21 am

error "Null value on accessor interfacing to field"

Post by chanthou_2000 »

Hello,

I'm trying to execute a very simple job :
OCI oracle ->transformer -> sort -> OCI Oracle
But during the execution, the process returned a very weird error :
"Null value on accessor interfacing to field"
i was thinking that DS PX was able to handle itself the "null" value for the sort stage, so i'm wondering where this error came from ?

thanks in advance

Chanthou
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

One place you can get into problems with null fields is within the Transformer. Find out what source field has nulls in it and then add null handling for that field (such as NullToValue) in the Transformer. Do not try to use that field in any derivation function until it has been null handled.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: error "Null value on accessor interfacing to field&

Post by ray.wurlod »

chanthou_2000 wrote: i was thinking that DS PX was able to handle itself the "null" value for the sort stage, so i'm wondering where this error came from ?
If you were the Sort stage, how would you handle null? Can you be more specific about how you think that the Sort stage can handle null?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Telenet
Premium Member
Premium Member
Posts: 14
Joined: Fri Nov 24, 2006 6:18 am
Location: Telenet

Post by Telenet »

don't know if this is relevant in your case, but I got this error in a different situation:
I've created a lookupfile with a field as nullable. When reading from this file the field was set to non-nullable, and I got this error from the lookup-stage.
So : maybe it's just mismatch in column-definition between stages.
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

Post by Nageshsunkoji »

Just Try out by null handling with the nullable YES input fields.

Source : Nullable YES
If Isnull(ColumnA)
then ' ' or 0 (depends on your requirement, usually for sting Spaces and for numeric 0)
Else
ColumnA.

Target : Nullable ( Yes/No)
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
Post Reply