Warnings in Look up stage
Moderators: chulett, rschirm, roy
Warnings in Look up stage
Hi
My job design is
Transformer (TRS)
(key,a,b)
|
|
lookup(LKP_ID)----------->dataset(DS)(ID decimal(38,0)NotNull,a,b)
ID decimal(38,0)NotNull
^
|
|
|
oracle stage (GET_ID)
(key,ID decimal(38,0) NotNull)
In the oracle stage
SELECT ID.NEXTVAL FROM DUAL
where 1 = ORCHESTRATE.Key
I am getting the following warnings in the look up stage
1.LKP_ID: When checking operator: When binding output interface field "ID" to field "ID": Implicit conversion from source type "decimal[38,10]" to result type "decimal[38,0]": Possible precision limitation.
2.LKP_ID: When checking operator: When binding output interface field "ID" to field "ID": Converting a nullable source to a non-nullable result;a fatal runtime error could occur; use the modify operator to
specify a value to which the null should be converted.
Please suggest me some ways to overcome this warnings
Thanks
meera
My job design is
Transformer (TRS)
(key,a,b)
|
|
lookup(LKP_ID)----------->dataset(DS)(ID decimal(38,0)NotNull,a,b)
ID decimal(38,0)NotNull
^
|
|
|
oracle stage (GET_ID)
(key,ID decimal(38,0) NotNull)
In the oracle stage
SELECT ID.NEXTVAL FROM DUAL
where 1 = ORCHESTRATE.Key
I am getting the following warnings in the look up stage
1.LKP_ID: When checking operator: When binding output interface field "ID" to field "ID": Implicit conversion from source type "decimal[38,10]" to result type "decimal[38,0]": Possible precision limitation.
2.LKP_ID: When checking operator: When binding output interface field "ID" to field "ID": Converting a nullable source to a non-nullable result;a fatal runtime error could occur; use the modify operator to
specify a value to which the null should be converted.
Please suggest me some ways to overcome this warnings
Thanks
meera
Warning 1: If input metadata length were not given, the default value is taken as 38,10. So you need to either specify the length as 38,10 in output or 38,0 in input.
Warning 2: As specified in the warning, Nullable Column 'ID' is marked as Not Nullable in output grid. If you need to maintain as not nullable, you need to handle null, either using modify stage (handle_null option) or in transformer or in the target stage.
Warning 2: As specified in the warning, Nullable Column 'ID' is marked as Not Nullable in output grid. If you need to maintain as not nullable, you need to handle null, either using modify stage (handle_null option) or in transformer or in the target stage.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
-
- Participant
- Posts: 437
- Joined: Fri Oct 15, 2004 6:13 am
- Location: Pune, India
This post is PX post. Should moved to Parallel by moderatorb]
In case, when you execute a job to create dataset and the dataset already exists, then overwrite property plays imp roles. E.g. if the dataset is earlier created a col EmpNo with datatype Decimal(10) and later during next run the datatype was changed to integer, it may be the case the in the dataset the datatype of the col will remain as D(10) even though in ur job it is shown as Integer.
I have faced this once in a job. In DS designer, datatype shown was char(7) and when I used the orchadmin to check the metadata it was Decimal(7). The reason of this was during first run of job, DS has column as D(7).
So I always check the datatypes using orchadmin in such cases.
In case, when you execute a job to create dataset and the dataset already exists, then overwrite property plays imp roles. E.g. if the dataset is earlier created a col EmpNo with datatype Decimal(10) and later during next run the datatype was changed to integer, it may be the case the in the dataset the datatype of the col will remain as D(10) even though in ur job it is shown as Integer.
I have faced this once in a job. In DS designer, datatype shown was char(7) and when I used the orchadmin to check the metadata it was Decimal(7). The reason of this was during first run of job, DS has column as D(7).
So I always check the datatypes using orchadmin in such cases.
Regards,
S. Kirtikumar.
S. Kirtikumar.