Page 1 of 1

DataStage job failing with error esql complaint: ORA-12899:

Posted: Fri Nov 06, 2009 7:44 am
by ketanshah123
Hi

My job failing with error esql complaint: ORA-12899: value too large for column

error is coming while updating , the field which giving error has length 40 before database stage there is trnasfpormer stage and in transformer have derivition like
if isnull(columnname) then setnull() else left(columnname, 35)

in database also the filed is having lenght 40.

I have used tring in transformer , substring in sql but still same error persists. Source is SAP system and filed is coming only 40 char from there side.

Any clues,solution for this

thanx in advance

Posted: Fri Nov 06, 2009 7:56 am
by chulett
Multi-byte character set?

Posted: Fri Nov 06, 2009 9:12 am
by ketanshah123
chulett wrote:Multi-byte character set? ...

the field I am getting from DataSet and is of type char with length 40

Posted: Fri Nov 06, 2009 10:36 am
by chulett
Doesn't really answer the question. What character sets are involved here, source and target?

Posted: Fri Nov 06, 2009 2:10 pm
by ray.wurlod
What Craig is getting at with his question is that, depending on what character set you are using, it may require more than 40 bytes to store 35 characters. Oracle can be specified to allocate storage in either bytes or characters.

Posted: Fri Nov 06, 2009 2:26 pm
by chulett
And the default is bytes. And yes, was... getting there. :wink: