Error when converting column overflows decimal datatype

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
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Error when converting column overflows decimal datatype

Post by deesh »

Hi,

Please some one tell to me how to solve below error issue.

Same job running fine in 8.5, but giving error in 9.1.2

I know this is conversion issue, but not getting the exact solvation idea.

The OCI function OCIStmtFetch2 returned status -1. Error code: 1,457, Error message: ORA-01457: converting column overflows decimal datatype. (CC_OraStatement::fetch, file CC_OraStatement.cpp, line 1,599)
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Use Decimaltodecimal() to convert precision and scale to match column datatype on your target database
You are the creator of your destiny - Swami Vivekananda
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Post by deesh »

giving error at oracle connector stage, it is the source stage

Moreover working fine in 8.5 with oracle enterprise, after migrate to 9.1.2 it is giving error with oracle connector.
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Change precision and scale on source connector stage to match column datatype on database
You are the creator of your destiny - Swami Vivekananda
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Post by deesh »

same datatype same data using for 8.5 even, but no fail in that, why only in 9.1.2 while extracting the data.
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

DS 9.1 is lot stricter on datatype. If your metadata in the job doesn't match your table then you will get these errors
You are the creator of your destiny - Swami Vivekananda
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Post by deesh »

ok, in this case how to identify the field which one is giving interruption among 20 decimal fields
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Either verify it manually for all columns or import metadata through Orchestrate Schema definitions and reload metadata on source stage
You are the creator of your destiny - Swami Vivekananda
Post Reply