ORA01722 INVALID NUMBER

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
phyllis
Participant
Posts: 34
Joined: Wed Jan 14, 2004 4:07 pm

ORA01722 INVALID NUMBER

Post by phyllis »

What's the best way to troubleshoot "ORA-1722 Invalid Number" errors? I'm writing to an Oracle table using the ORAOCI8 stage. The event detail dialog box in the log only shows the first 24 field values that I am converting (there are actually 51 field values in the file I'm converting), so I'm also writing the data out to a sequential file, and do not see a problem with any of the numbers output there. I'm using the following conversion for a dollar amount field value: DataTypePicS9V99(ytd_amt_chg) (defined as Numeric 7,2). For example, I'm getting the ORA-1722 Invalid number error for record #1, and in the sequential file record #1 shows a value of 0.00 for ytd_amt_chg. It's frustrating not being able to tell which column is creating the error!
phyllis
Participant
Posts: 34
Joined: Wed Jan 14, 2004 4:07 pm

Post by phyllis »

I've finally resolved most of those (I changed some fields defined as numeric that actually contained dates MMDDYY to timestamp in DataStage and to DATE in Oracle) except now I'm getting DataTypePic9: Error, unable to convert '. ' into number for 7 rows - but there's no event detail dialog box and no indication of what row is causing the problem.
rasi
Participant
Posts: 464
Joined: Fri Oct 25, 2002 1:33 am
Location: Australia, Sydney

Post by rasi »

Try the output to a sequential file first and check column by column its data type, value and any transformation. It should help.

Thanks
Siva
Post Reply