Page 1 of 1

Editting Null field export parameter on Reject Links

Posted: Wed Nov 12, 2003 9:32 am
by adscot
Hello,

I am seeing the following error messaged on rejects link :

Code: Select all

Insert_Rejects: When checking operator: When validating export schema: At field "DT_ADDED": "null_field" length (1) must match field's fixed width (19)
I cannot see a direct way to change the null_field length for individual fields on reject links (you can set it at the file level but not for individual fields). One way around this is to change these fields to be varchar but the extra level of complexity is that the initial information is coming from a nullable date field in an Oracle table so that I have to import it as a timestamp (which then seems to insist on exporting as a char(19)).

Any ideas?

Cheers,

Adrian

Editing Null field export parameter on Reject Links

Posted: Wed Nov 12, 2003 12:31 pm
by bigpoppa
Is this for a sequential file export?
-BP

Re: Editting Null field export parameter on Reject Links

Posted: Thu Nov 13, 2003 10:52 am
by Teej
adscot wrote:Hello,

I am seeing the following error messaged on rejects link :

Code: Select all

Insert_Rejects: When checking operator: When validating export schema: At field "DT_ADDED": "null_field" length (1) must match field's fixed width (19)
If it is a database field - Make it Varchar (or something equivalent to this).

If it is a flat file, use the function Space(19).

-T.J.

Re: Editing Null field export parameter on Reject Links

Posted: Mon Nov 17, 2003 10:26 am
by adscot
bigpoppa wrote:Is this for a sequential file export?
-BP
Yes it is a sequential file export but it is a reject file...

Re: Editting Null field export parameter on Reject Links

Posted: Mon Nov 17, 2003 10:27 am
by adscot
Teej wrote:
If it is a database field - Make it Varchar (or something equivalent to this).

If it is a flat file, use the function Space(19).

-T.J.
The problem is that you can't set field level attributes on a reject file.

:(

Date Fields/Null

Posted: Mon Nov 17, 2003 2:14 pm
by 1stpoint
If this is a sequential file just change the metadata type to varchar instead of timestamp. Actually you shouldn't bet getting this error since null dates are valid.

Re: Editting Null field export parameter on Reject Links

Posted: Mon Nov 17, 2003 3:40 pm
by Teej
adscot wrote:The problem is that you can't set field level attributes on a reject file.
I was referring to doing this BEFORE the flat file output in a Transform Stage. This way, your records will NOT be rejected for that particular reason.

-T.J.

Re: Editting Null field export parameter on Reject Links

Posted: Fri Nov 21, 2003 3:18 am
by adscot
Teej wrote:
adscot wrote:The problem is that you can't set field level attributes on a reject file.
I was referring to doing this BEFORE the flat file output in a Transform Stage. This way, your records will NOT be rejected for that particular reason.

-T.J.
Ah ha I understand - sorry me being a bit slow. I can put a transform on the reject link prior to the output to resolve the output issues

Cheer,

Adrian

Re: Editting Null field export parameter on Reject Links

Posted: Fri Nov 21, 2003 6:38 am
by Teej
adscot wrote:Ah ha I understand - sorry me being a bit slow. I can put a transform on the reject link prior to the output to resolve the output issues
Let us know of the results in applying my suggestion.

Thanks!

-T.J.