Import 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
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Import error

Post by ketanshah123 »

Hi

In my source .csv file a field if null is indicated as null (small caps without quots) and in my target file same filed is nullable = true

I am applying the If field=''null'' then set null else field value
(I have to apply above if then else )

But I am getting

Xfr_Map,1: Field 'field_name' from input dataset '0' is NULL. Record dropped.

adn records getting dropped ...
please suggest some solution for same ...

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

Post by ArndW »

I hope you are using SetNull() instead of what you posted.

This error means that your input value hasn't been read the way you expect. What is the datatype of this field where you are assigning "null"?
ketanshah123
Participant
Posts: 88
Joined: Wed Apr 05, 2006 1:04 am

Post by ketanshah123 »

hi
I am using setnull() and both source and destinition fields are of integer type
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Well, how can you put the value of "null" (as a string) into an integer field? What happens is that the value of "null" is not valid, you have not set a default value and the field is nullable - so it uses a null value which I gather is what you want. So you don't need the transformer logic.
Post Reply