<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Troubleshoot ORA-01722: Invalid Number Error in Oracle Database</title>
	<atom:link href="http://www.dbuggr.com/smallwei/troubleshoot-ora-01722-invalid-number-error-oracle-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbuggr.com/smallwei/troubleshoot-ora-01722-invalid-number-error-oracle-database/</link>
	<description>Share Knowledge &#38; Be Rewarded</description>
	<lastBuildDate>Wed, 28 Jul 2010 06:02:35 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: smallwei</title>
		<link>http://www.dbuggr.com/smallwei/troubleshoot-ora-01722-invalid-number-error-oracle-database/comment-page-1/#comment-128</link>
		<dc:creator>smallwei</dc:creator>
		<pubDate>Tue, 27 Oct 2009 04:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbuggr.com/smallwei/troubleshoot-ora-01722-invalid-number-error-oracle-database/#comment-128</guid>
		<description>The official explanation from Oracle is:

&lt;blockquote&gt;ORA-01722 invalid number
 
    Cause: The attempted conversion of a character string to a number failed because the character string was not a valid numeric literal. Only numeric fields or character fields containing numeric data may be used in arithmetic functions or expressions. Only numeric fields may be added to or subtracted from dates.
     
    Action: Check the character strings in the function or expression. Check that they contain only numbers, a sign, a decimal point, and the character &quot;E&quot; or &quot;e&quot; and retry the operation. &lt;/blockquote&gt;


Basically, Oracle ORA-01722 is thrown because a particular string was not able to be converted into a specific valid number when a user attempted to convert a character string. 

There are several possible situations to ORA-01722 error. Following are the tips for troubleshooting:

&lt;ol&gt;
&lt;li&gt;Pay attention to the numeric value and column. However ORA-01722 error can also happen in situation where there is no numeric value involved.&lt;/li&gt;
&lt;li&gt;When doing an &quot; INSERT INTO ... VALUES (...) &quot; find out which data item is invalid. Check the column type and make sure the data being inserted matches the column type.&lt;/li&gt;
&lt;li&gt;If you are trying to supply the values in a sub query which is intended to INSERT or UPDATE, you have to dig a little beeper because the character that is throwing ORA-01722 is actually hidden.  You would then need to find the row that contains a non-numeric string.&lt;/li&gt;
&lt;li&gt;When doing a SELECT, rather than an INSERT or UPDATE, ORA-01722 is thrown most likely because of some implicit conversation in WHERE.  Check for a numeric column being compared to a character column.&lt;/li&gt;
&lt;/ol&gt;</description>
		<content:encoded><![CDATA[<p>The official explanation from Oracle is:</p>
<blockquote><p>ORA-01722 invalid number</p>
<p>    Cause: The attempted conversion of a character string to a number failed because the character string was not a valid numeric literal. Only numeric fields or character fields containing numeric data may be used in arithmetic functions or expressions. Only numeric fields may be added to or subtracted from dates.</p>
<p>    Action: Check the character strings in the function or expression. Check that they contain only numbers, a sign, a decimal point, and the character &#8220;E&#8221; or &#8220;e&#8221; and retry the operation. </p></blockquote>
<p>Basically, Oracle ORA-01722 is thrown because a particular string was not able to be converted into a specific valid number when a user attempted to convert a character string. </p>
<p>There are several possible situations to ORA-01722 error. Following are the tips for troubleshooting:</p>
<ol>
<li>Pay attention to the numeric value and column. However ORA-01722 error can also happen in situation where there is no numeric value involved.</li>
<li>When doing an &#8221; INSERT INTO &#8230; VALUES (&#8230;) &#8221; find out which data item is invalid. Check the column type and make sure the data being inserted matches the column type.</li>
<li>If you are trying to supply the values in a sub query which is intended to INSERT or UPDATE, you have to dig a little beeper because the character that is throwing ORA-01722 is actually hidden.  You would then need to find the row that contains a non-numeric string.</li>
<li>When doing a SELECT, rather than an INSERT or UPDATE, ORA-01722 is thrown most likely because of some implicit conversation in WHERE.  Check for a numeric column being compared to a character column.</li>
</ol>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->