Home » SQL & PL/SQL » SQL & PL/SQL » ORA-01722: invalid number
ORA-01722: invalid number [message #142924] Tue, 18 October 2005 07:43 Go to next message
vishnus
Messages: 7
Registered: October 2005
Location: India
Junior Member
Hi,

The error "ORA-01722: invalid number" is recieved only for fewer files and many gets processed successfully.

This error is recieved while bulk collect.
I dynamically form Query and using execute immediate into Bulk collect data, during this an exception is thrown as invalid number.

I processed same file on my local server and it gets processed successfully.

I also checked NLS parameters by doing show parameter and on both production and local server are same.

Can any one suggest what could be the cause.

Thanks
Re: ORA-01722: invalid number [message #142979 is a reply to message #142924] Tue, 18 October 2005 10:27 Go to previous messageGo to next message
dmitry.nikiforov
Messages: 723
Registered: March 2005
Senior Member
What kind of WHERE clause do you use in your query ?
Doesn't you problem seem like that ?

http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:11504677087008

Rgds.
Re: ORA-01722: invalid number [message #143156 is a reply to message #142979] Wed, 19 October 2005 05:40 Go to previous messageGo to next message
vishnus
Messages: 7
Registered: October 2005
Location: India
Junior Member
Where clause is like

"WHERE STYPE = ''RFM'' AND HOME = 'US'
and TO_CHAR(DATE_OF,'DDMMYYYY')='12102005'
and ism=0"

one Column which I decode is like

DECODE(SIGN((DATE_OF + 5) - TRUNC(SYSDATE)) , -1,1,0)

Re: ORA-01722: invalid number [message #143180 is a reply to message #142924] Wed, 19 October 2005 07:09 Go to previous messageGo to next message
kiran
Messages: 503
Registered: July 2000
Senior Member
Try keeping two single quotes(at begining and ending) for the values 'US' and '12102005'

--Kiran.
Re: ORA-01722: invalid number [message #143214 is a reply to message #143156] Wed, 19 October 2005 08:53 Go to previous messageGo to next message
dmitry.nikiforov
Messages: 723
Registered: March 2005
Senior Member
What is the type of ISM column ?

Rgds.
Re: ORA-01722: invalid number [message #143343 is a reply to message #143214] Thu, 20 October 2005 00:45 Go to previous messageGo to next message
vishnus
Messages: 7
Registered: October 2005
Location: India
Junior Member
hi,

Let me procide u exact query
WHERE STYPE = 'RFM' AND HOME = 'US'
and TO_CHAR(DATE_OF,'DDMMYYYY')='12102005'
and ism=0

stype varchar2
home varchar2
date_of date
ism number

This Query is a part of dynamic query.

Thanks
Re: ORA-01722: invalid number [message #143927 is a reply to message #143343] Mon, 24 October 2005 04:14 Go to previous message
dmitry.nikiforov
Messages: 723
Registered: March 2005
Senior Member
What is your SELECT list ?
Are there any functions/data type conversions where ?

Rgds.
Previous Topic: SEARCH,SUM,INSERT --Thanks
Next Topic: ORA-01847: day of month must be between 1 and last day of month
Goto Forum:
  


Current Time: Thu Jan 15 23:15:17 CST 2026