Error:No default type conversion from type "timestamp[m

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Error:No default type conversion from type "timestamp[m

Post by srinivas.nettalam »

I am reading a timestamp (microseconds) column from an SQL server table and using it as akey in the lookup stage following ODBC Enterprise stage.The job is aborting with an error "No default type conversion from type "timestamp[microseconds]" to type "ustring[max=32]".
But nowhere it is used as nvarchar or varchar/unicode.

Struggling with this for quite a long time and have done many trial and errors but no solution..
N.Srinivas
India.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

At what point is this conversion taking place and are you expecting it to be performed implicitly or are you using an explicit conversion function?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Post by srinivas.nettalam »

ray.wurlod wrote:At what point is this conversion taking place and are you expecting it to be performed implicitly or are you using an explicit conversion function? ...
I am not converting that timestamp to varchar or nvarchar at all.I am using that column as timestamp as it is in the lookup.
N.Srinivas
India.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Oh, yes you are, which is why the error message is occurring.

For example what data type is this field in the reference data set?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Post by srinivas.nettalam »

It is Nvarchar which I am reading it as timestamp microseconds
N.Srinivas
India.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try reading it as NVarChar.
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