ODBC 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
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

ODBC error

Post by suryadev »

ODBC_Connector_73,0: Fatal Error: Attempt to setIsNull() on the accessor interfacing to non-nullable field "unique_row_id"

The job was fine with input and output suddenly when I tried to run it again

I had this error,can anyone suggest me about this error?
Thanks,
Surya
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Check whether you have defined the field "unique_row_id" as nullable anywhere in your job
You are the creator of your destiny - Swami Vivekananda
creatingfusion
Participant
Posts: 46
Joined: Tue Jul 20, 2010 1:26 pm
Location: USA
Contact:

Re: ODBC error

Post by creatingfusion »

Check the input table for the ODBC stage if any data has been updated in the second run.
If not please provide me with the stages you are using and also where ISNull() function is used.
Abhijit
IBM Certified Solution Developer Infosphere DataStage
vivekgadwal
Premium Member
Premium Member
Posts: 457
Joined: Tue Sep 25, 2007 4:05 pm

Post by vivekgadwal »

As mentioned by "creatingfusion", I too am wondering if there is a Null that is coming in your data. Post more details on this so that we can provide a better solution.
Vivek Gadwal

Experience is what you get when you didn't get what you wanted
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

No unique_row_id is not nullable in any of the stages.

I used SetNull() in the transformer stage for some fields in the field description.

"Null that is coming in your data"

Do you mean the input data?

stages used are transformers,copy,funnel,look-up,odbc,file.
Thanks,
Surya
creatingfusion
Participant
Posts: 46
Joined: Tue Jul 20, 2010 1:26 pm
Location: USA
Contact:

Re: ODBC error

Post by creatingfusion »

In transformer use the derivation as......

If IsNull(%inputcol%) Then SetNull(%inputcol%) Else ''
Abhijit
IBM Certified Solution Developer Infosphere DataStage
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

Actually I used SetNull() for dummy columns to use funnel for the other output.

there are two outputs and to make them as a single output

I used transformer to create same columns as of the other output.
and I used SetNull() for that.

I am also getting the below errors searched the forum but cannot find a single solution.

main_program: APT_PMsectionLeader(1, node1), player 1 - Unexpected exit status 1.

main_program: APT_PMsectionLeader(1, node1), player 3 - Unexpected exit status 1.
APT_PMsectionLeader(1, node1), player 8 - Unexpected exit status 1.
APT_PMsectionLeader(1, node1), player 9 - Unexpected exit status 1.


please suggest me!!!
Thanks,
Surya
creatingfusion
Participant
Posts: 46
Joined: Tue Jul 20, 2010 1:26 pm
Location: USA
Contact:

Post by creatingfusion »

in the transformer derrivation you have a function @NULL
Please use that in place of SetNull()

Let us know if that works
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

No thats not working

The quess the reason is because of the APT...........errors........

I used SetNull() in many of the the fields,probably thats not the issue
Thanks,
Surya
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

The error is in ODBC Connector Stage, but is it during read or write?

is that column defined as not null in database?

are you performing cast on that field or any other function?

Which database?
The job was fine with input and output suddenly when I tried to run it again
This is not correct. Something must have changed, either Job or data or table metadata.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
suryadev
Premium Member
Premium Member
Posts: 211
Joined: Sun Jul 11, 2010 7:39 pm

Post by suryadev »

Thanks to everyone.

Yesterday I had all that errors in that particular job but today its working good with no errors or warnings.

I did not change anything in the job but why do we get that kind of errors?
Thanks,
Surya
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Any answer would be a guess as there are too many factors that could be involved. You are assuming it is a DataStage problem, however, it could be a problem with the database, or it could have been another developer changing your file definition inside the database.

Since the problem is gone away, I'd say wait until it comes back and then repost.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
Post Reply