DB2 get row partitioning data Error

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
Rohit_ben
Participant
Posts: 19
Joined: Sat Sep 22, 2007 4:55 am

DB2 get row partitioning data Error

Post by Rohit_ben »

Hi

One of my DataStage parallel jobs is getting aborted and the director shows the following error messages.

tfpCustIp,0: DB2 get row partitioning data Error.
tfpCustIp,0: SQLCODE = -6039; SQLSTATE=
tfpCustIp,0: SQL6039N Partitioning column "0" is currently defined as not nullable.
tfpCustIp,0: DB2 Get Row Partitioning Information failed.
tfpCustIp,0: Failure during execution of operator logic.


My job design is as follows:
DB2/UDB Select -----> Transformer -----> Funnel -----> Transformer(name:tfpCustIp) -----> DB2/UDB Write-Append

Could you please help me out to resolve this error?

(This is my first post to DsXchange so please let me know if you have any concern regarding my post)

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

Post by ArndW »

This looks very similar to a thread from a couple of days ago where a DB2 table was declared as partitioned in the job when it really wasn't. Could this also be the case here? Is your DB2 partitioned? If yes, have you declared the column as nullable?
Rohit_ben
Participant
Posts: 19
Joined: Sat Sep 22, 2007 4:55 am

Post by Rohit_ben »

The DB2 database is partitioned in our case.

Could you please let me know, what column are you talking about? The error does not mention ant column name / number.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What column is the table partitioned on? That would be the column number 0 referred to in the error message.
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Re: DB2 get row partitioning data Error

Post by MT »

Rohit_ben wrote:
tfpCustIp,0: DB2 get row partitioning data Error.
tfpCustIp,0: SQLCODE = -6039; SQLSTATE=
tfpCustIp,0: SQL6039N Partitioning column "0" is currently defined as not nullable.
tfpCustIp,0: DB2 Get Row Partitioning Information failed.
tfpCustIp,0: Failure during execution of operator logic.


Could you please help me out to resolve this error?

Rohit
Hi,

this is clearly a DB2 error so you should focus on DB2 for solving it.
The DB2 command line (Unix - it is th shell) is an excellent tool for
looking up DB2 error codes (or just use google):

db2 ? SQL6039

This will show:
An attempt was made to assign a null value to partitioning column
"<column-number>", which is not nullable.

So this is it!
You got a null value in your data and this will not be processed because it is not allowed.

regards
Michael
Rohit_ben
Participant
Posts: 19
Joined: Sat Sep 22, 2007 4:55 am

Post by Rohit_ben »

A NULL value was being encountered for a partitioning column, hence the job was failing. There was a slight confusion about the error as the director was showing an error for the Transformer stage.

Thanks for all your help.
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Post by MT »

Rohit_ben wrote:A NULL value was being encountered for a partitioning column, hence the job was failing. There was a slight confusion about the error as the director was showing an error for the Transformer stage.

Thanks for all your help.
Hi could you please mark the topic resolved

thanks
Michael
Post Reply