Oracle Query error in Datastage
Posted: Thu Dec 27, 2007 2:24 pm
QUERY
Select col1, col2..col18, Null as col9 from .... where.... in Oracle enterprise stage. and for the attribute 16--sql type is varchar and length is 150. when i run this the error i get is
"main_program: Fatal Error: Caught ORCHESTRATE exception in main program: APT_ParseError: In field "ATTRIBUTE16": Parsing parameters "max=0" for schema type "string": Max length must be positive, got: "0"
Expected ";", got: <eof>, line 20
Expected ";", got: <eof>, line 20
Error parsing schema: Expected ")", got: <eof>, line 20"
the attribute16 is 19th column
Why it is taking length as ZERO eventhough i assigned as 150. Please Explain.
Select col1, col2..col18, Null as col9 from .... where.... in Oracle enterprise stage. and for the attribute 16--sql type is varchar and length is 150. when i run this the error i get is
"main_program: Fatal Error: Caught ORCHESTRATE exception in main program: APT_ParseError: In field "ATTRIBUTE16": Parsing parameters "max=0" for schema type "string": Max length must be positive, got: "0"
Expected ";", got: <eof>, line 20
Expected ";", got: <eof>, line 20
Error parsing schema: Expected ")", got: <eof>, line 20"
the attribute16 is 19th column
Why it is taking length as ZERO eventhough i assigned as 150. Please Explain.