Merge Stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
yksjosh
Participant
Posts: 16
Joined: Wed Aug 17, 2005 11:26 pm
Location: UK

Merge Stage

Post by yksjosh »

HI,

I am using merge stage in one of my jobs.
and the two input sequential file contains 325 records and 5 records respectively.

but the job gets abort with the following message.

MFGCFP_ODS_GL_ALLOCATION_SKU..tLoad: Function 'get_next_output_row' failed
At row 977, link "lmGL_NZ_TRADESPEND_SKU_inp", while processing column "ODS_GENERAL_LEDGER_KEY"
Column 'ODS_GENERAL_LEDGER_KEY' is not 'nullable'.

Fle one contains the column 'ODS_GENERAL_LEDGER_KEY' and I have checked that none of the records have null 'ODS_GENERAL_LEDGER_KEY' .

If some body could guide me in this.

Thanks in advance.

Yogesh
vigneshra
Participant
Posts: 86
Joined: Wed Jun 09, 2004 6:07 am
Location: Chennai

Post by vigneshra »

Hi Yogesh,

Check your metadata definitions in your job. Also since the number of records is just around 300-400, you can click view data in the stage and see if the columns are populated correctly in each of the records. I think this will help you.
Vignesh.

"A conclusion is simply the place where you got tired of thinking."
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi,
It wont be null in input, but make sure it is same in the output.
coz after mergre stage, there is the possibility for the null for the unmatched records.

Regards
kumar
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Run the job in the Debugger. Set a breakpoint on the output link. Edit the breakpoint so that the expression is

Code: Select all

IsNull(ODS_GENERAL_LEDGER_KEY)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
changming
Participant
Posts: 68
Joined: Wed Oct 13, 2004 3:35 am

check mapping in merge stage

Post by changming »

check your mapping in merge stage, make sure all the key for joining two files are used.
Post Reply