Error: Failed to convert column value

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Error: Failed to convert column value

Post by Rea_Antony »

Hi,

Does someone know the meaning of this error?

Failed to convert column value from DataStage type to OLE DB type.

In my job, I was populating a varchar (2) column. I had hard coded "N" in the transformer. My job had run fine in the test environment. However, it has aborted with this error in the production environment and I'm unable to figure out what went wrong.

Please help.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Database? Stage? Generated or user-defined sql?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

Database: MS SQL Server 2000
The target stage was a bulk loader. The source is an ODBC with a user defined sql. However, I am not fetching this column from the source. I had hard coded it in the transformer.

As per the logs, the error was thrown in the transformer.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Errors are always thrown by the transformers as they are the active stages in Server jobs. What 'DataStage type' and database type is this "not fetched from source" column?
Last edited by chulett on Fri Oct 17, 2008 12:32 am, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

:? but nothing is being fetched from the source... the value which has to be populated into the target was hardcoded in the transformer it self..

In this case, i had a target column of data type varchar. So i put in "N" in the transformer target defn.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Rea_Antony wrote:but nothing is being fetched from the source
Yes, I know, you said that already. You didn't answer the question - you've got a Varchar in the job *and* the database for this field and it "failed to convert" it? That doesn't make a lot of sense.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Rea_Antony
Participant
Posts: 73
Joined: Thu Mar 08, 2007 9:50 pm
Location: Bangalore

Post by Rea_Antony »

sorry unable to read the content as im not a premium user :(
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Sorry. Become one. It's not expensive, at less than 30c (Rs12) per day and is what helps to keep DSXchange alive.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply