Adsense Ad

Friday, 19 May 2017

Oracle: ORA-01722 Error Message

ORA-01722 Error Message

Learn the cause and how to resolve the ORA-01722 error message in Oracle.

Description

When you encounter an ORA-01722 error, the following error message will appear:
  • ORA-01722: invalid number

Cause

You executed a SQL statement that tried to convert a string to a number, but it was unsuccessful.

Resolution

The option(s) to resolve this Oracle error are:

Option #1

Only numeric fields or character fields that contain numeric values can be used in arithmetic operations. Make sure that all expressions evaluate to numbers.

Option #2

If you are adding or subtracting from dates, make sure that you added/substracted a numeric value from the date.

No comments: