Typemismathch

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
irajasekharhexa
Premium Member
Premium Member
Posts: 82
Joined: Fri Jun 03, 2005 5:23 am
Location: Bangalore
Contact:

Typemismathch

Post by irajasekharhexa »

Hi I am trying to populate some data from a dataset to teradata table.

In the dataset there is a filed 'AUDIT_TIMESTAMP' with the type Timestamp.
But at the Teradata the field is AUDIT_TIMESTAMP Timestamp 26(Length) 6(Scale) is taken.

After running the Job I am getting the following error.

CorrectedValuesl1: Type mismatch for field 'AUDIT_TIMESTAMP'. Fatal error.
Input record and output table schemas are not compatible.
Cannot prepare target table.

Is the above error is because of Length and Scale is mismathced? in bothe source and target?

Can any one pls clarify.

Regds
Rajasekhar
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try experimenting with Length and Scale. Try extracting the timestamp from the Data Set, and loading into Teradata, with no Precision or Scale. Try using a test table with Timestamp(19).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
irajasekharhexa
Premium Member
Premium Member
Posts: 82
Joined: Fri Jun 03, 2005 5:23 am
Location: Bangalore
Contact:

Post by irajasekharhexa »

Teradata is not allowing to change the timestamp to the lenght of 19.

Changed as the Varchar type. Now job is runnig fine

Thanks
Rajasekhar
Post Reply