hello everyone,
I am facing a problem with an extract query that works well in the sql developer.
the oracle extract query goes like this..
select
a.clm1
null as clm2 (clm2 is decimal)
null as clm3 (clm3 is char)
from a
this query runs well in the sql but when it is run in the oracle enterprise stage it gives error like this -
In field "clm2": Parsing parameters "max=0" for schema type "string": Max length must be positive, got: "0"
I donot get this problem with char field.
is this common??
Thanks
Problem in extract query
Moderators: chulett, rschirm, roy
Re: Problem in extract query
Hey,DS1 wrote:hello everyone,
I am facing a problem with an extract query that works well in the sql developer.
the oracle extract query goes like this..
select
a.clm1
null as clm2 (clm2 is decimal)
null as clm3 (clm3 is char)
from a
this query runs well in the sql but when it is run in the oracle enterprise stage it gives error like this -
In field "clm2": Parsing parameters "max=0" for schema type "string": Max length must be positive, got: "0"
I donot get this problem with char field.
is this common??
Thanks
The problem is because of passing null like that, there is an orchestrate error. Try by putting some value instead of null and then specifiying setnul() as derivation for the two cols in a subsequent stage.
![Idea :idea:](./images/smilies/icon_idea.gif)
It took me fifteen years to discover I had no talent for ETL, but I couldn't give it up because by that time I was too famous.