Error code

Oracle ORA-01722

ORACLEORA-01722
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

invalid number — a character string could not be converted to a number.

How to fix it

  1. Validate and sanitize input strings before passing them to numeric columns or TO_NUMBER.
  2. Use the DEFAULT return_value ON CONVERSION ERROR clause (Oracle 12.2+) for safe conversions.
  3. Check that locale-specific decimal separators in the input match the NLS_NUMERIC_CHARACTERS setting.

Not affiliated with Oracle. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.