null_field length (0) must match field's fixed width (14)

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
reddy82
Participant
Posts: 29
Joined: Wed Feb 21, 2007 3:40 am
Location: mumbai
Contact:

null_field length (0) must match field's fixed width (14)

Post by reddy82 »

Hi All,

I am getting this error:

Ci_FileSchema: At field "DT_CREA": "null_field" length (0) must match field's fixed width (14)

Ci_FileSchema is an import stage.In our project we are enabled the run time coloumn propagation,Here is not showing any metadata only single coloumn is used like 'Data'.It Passed data for all the coloumn values


The datatype is Timestamp. What value do I give for Null Field Value?

Thanks in advance.
Sridhar
Reddy
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In the definitions of your import stage (is this a "column import" stage?) you will have incorrectly set the null_field length to 0, which is not allowed in a fixed-width timestamp field. Since this is a strictly typed field, you will have to supply a legal timestamp string value as the default.
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

Post by swapnilverma »

make any default timestamp value u wish for null in below formate

%yyyy-%mm-%dd %hh:%nn:%ss
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
reddy82
Participant
Posts: 29
Joined: Wed Feb 21, 2007 3:40 am
Location: mumbai
Contact:

Post by reddy82 »

In our job,enabled the RCP..Metadata is not showing...How to add the default timestamps in the null values
Reddy
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Right click on the row in the Columns grid and choose Edit Row.

In the Nullable folder add "Null Field Value" from the Available properties to add. This is where you can set the null field value. It must be a valid timestamp, such as 9999-12-31 23:59:59
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
reddy82
Participant
Posts: 29
Joined: Wed Feb 21, 2007 3:40 am
Location: mumbai
Contact:

Post by reddy82 »

I have added the Null_filed_length = 14

Still we are getting the same error.Timesatmp format in our project is yyyy%mm%dd %hh:%nn"(length = 14)

your help is much appreciated


thanks,
Sridhar
Reddy
reddy82
Participant
Posts: 29
Joined: Wed Feb 21, 2007 3:40 am
Location: mumbai
Contact:

Post by reddy82 »

I have added the null filed value = 123..
still getting the same error

Thanks,
Sridhar
Reddy
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That is neither a timestamp nor 14 characters. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

Post by swapnilverma »

u should be knowing exact schema definition at source...

why dont you add default null value at the source it self ..

RCP should not be enabled if u require any change in schema definition..
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
Post Reply