Implicit conversion from source type "string[5]" t

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
DS_MJ
Participant
Posts: 157
Joined: Wed Feb 02, 2005 10:00 am

Implicit conversion from source type "string[5]" t

Post by DS_MJ »

Hello:

Good Morning all...!!!

Am getting the following error:
LookUp: When checking operator: On output data set 0: When binding output schema variable "outputData": When binding output interface field "COLUMN_NM_1" to field "COLUMN_NM_1": Implicit conversion from source type "string[5]" to result type "string[2]": Source string will be truncated.

LookUp: When checking operator: On output data set 0: When binding output schema variable "outputData": When binding output interface field "COLUMN_NM_2" to field "Reject: When checking operator: When validating export schema: At field "COLUMN_NM_2": Exporting nullable field without null handling properties": Implicit conversion from source type "string[5]" to result type "string[2]": Source string will be truncated.

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

Reject: When checking operator: When validating export schema: At field "COLUMN_NM_4": Exporting nullable field without null handling properties
My Job flow Proceess is as follows:

Code: Select all


                     Db2_API_1   Db2API_2  Db2API_3
                              \    |     /
                               \   |   /
DB2UDB_API ----Transformer-----Lookup------Transformer-------DataSet
                                 |
                                 |
                               Reject 

For COLUMN_NM_1 and COLUMN_NM_2:

lookup table the COLUMN_NM_1 = Length 4
DB2 Source table COLUMN_NM_1 = Length 5

lookup table the COLUMN_NM_2 = Length 2
DB2 Source table COLUMN_NM_2 = Length 5

Tried for COLUMN_NM_1[4,5] and COLUMN_NM_1[2,5] but still get this error.

And for COLUMN_NM_3 and COLUMN_NM_4

There is no nullable data so tried the IF ISNULL(column) then ' ' else Column
but still keep getting these errors.

Would appreciate any guidence.
Thanks in advance,
johnthomas
Participant
Posts: 56
Joined: Mon Oct 16, 2006 7:32 am

Post by johnthomas »

It seems your lookup is failing and so it is returning a null . Try changing nullable as yes for COLUMN_NM_1 ,COLUMN_NM_2
JT
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Within the Lookup stage, what is the data type of COLUMN_NM_1 on each link on which it appears? The message suggests that it is Char(2) somewhere.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Try to maintain the length of the COLUMN_NM_1, COLUMN_NM_2 as it is in the DB2 source. You can try the truncation and the transformation in second transformer.
COLUMN_NM_3 is nullable Yes in the source. Mark default null value in Dataset or NullToValue in transformer. Untill then, the datatype shuld be Nullable yes.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply