Getting some NULL warnings .

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
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Getting some NULL warnings .

Post by kollurianu »

Hi All ,

We are getting some NULL warnings while writing to a reject link from an oracle enterprise stage to a sequential file.How to handle this.
Please advice.


OraRejUpd: When checking operator: When validating export schema: At field "WLESSINTCON_INDX": Exporting nullable field without null handling properties

Any help would be greatly appreciated.

Thank you,
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Post by dspxlearn »

kollurianu,

How is the Nullability of 'WLESSINTCON_INDX' from the source and target defined?
If it is Nullable from the source and you if you are explicitly making it to NotNullable, they you should be doing the Null check.
If IsNotNull(WLESSINTCON_INDX) then WLESSINTCON_INDX else ''
Thanks and Regards!!
dspxlearn
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

dspxlearn wrote:kollurianu,

How is the Nullability of 'WLESSINTCON_INDX' from the source and target defined?
If it is Nullable from the source and you if you are explicitly making it to NotNullable, they you should be doing the Null check.
If IsNotNull(WLESSINTCON_INDX) then WLESSINTCON_INDX else ''
The source field is null then and target sequential stage (the reject link) is greyed out in , but the rejec records are giving the above error.

Any inputs greatly appreciated.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Put a Transform or Modify stage at the end of the output reject link so you can change the column metadata and values as described by dspxlearn.
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Thanks Arnd .
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

ArndW wrote:Put a Transform or Modify stage at the end of the output reject link so you can change the column metadata and values as described by dspxlearn. ...
Transform will reduce the efficiency

double click on the row number to get all the properties exposed

there put the null handling details

like null field value etc

if not able to get all the properties you can use a copy stage

this will use implicit modification without warning


regards,
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Priyadarshi - this is a reject link he is asking about, where the attributes cannot be changed.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

ArndW wrote:Priyadarshi - this is a reject link he is asking about, where the attributes cannot be changed. ...
thats why i suggested to use a copy stage.

i know i haven't written it precisely

but i have suggested to use a copy stage

i think using a copy stage is better than using modify or transformer
Priyadarshi wrote:if not able to get all the properties you can use a copy stage

Thanks and Regards,
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I think the best stage to use is Modify, since this is precisely what it was designed for. Although a copy stage can do it, I prefer not to use it - but that is more a matter of personal taste than anything else.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

ArndW wrote: but that is more a matter of personal taste than anything else.
Thats true

any ways i will try both ideas

yours as well as mine

let's see which takes least time

Thanks and Regards,
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Post Reply