Fatal ERROR Null value on the 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
yollsonlegrand
Participant
Posts: 51
Joined: Fri Nov 07, 2008 8:03 pm

Fatal ERROR Null value on the accessor interfacing to Field

Post by yollsonlegrand »

Hi all
I'm facing the problem of NULL Value in a FIELD..

I set a stage variable for this FIELD like this svCODE1: IF(isNull(CODE1) or Len(Trim(CODE1))=0) Then 'NULL' else CODE1.
After this I set the derivation at the CODE-Level with the value of scCODE1.
By running i receive the following Message Error:

Fatal ERROR: Null value on the accessor interfacing to Field CODE1.

As output i'm using dataset_File.

Am'i forgeted to set some thing correctly?
Thank's for your reply.
Yollson Empereur
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Stage variables cannot be set to null. Is "CODE1" a stage variable?
yollsonlegrand
Participant
Posts: 51
Joined: Fri Nov 07, 2008 8:03 pm

Post by yollsonlegrand »

ArndW wrote:Stage variables cannot be set to null. Is "CODE1" a stage variable? ...
Ok. if so, where I'm supposing to handel the Null Field value CODE1. I wannt to add that I did the same thing with two other Stage variable in the same Job. That mean that I must change this?
can you tell me Please how to deal with this Null field value? I'am using data_set stage and not sequence_file stage to avoid this problem.
Thank's for your reply dear arndDW.
Yollson Empereur
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Is "CODE1" as Stage variable? Is so, how is it derived?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Seems to be a continuation of this post:

viewtopic.php?t=123855
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply