SQL Language (MOSC)

MOSC Banner

ORA-01722: Nombre non valide

edited Jun 24, 2011 5:04AM in SQL Language (MOSC) 13 commentsAnswered
  Hi,

Please consider this case :

table : gl_je_lines bal , field : reference_2
table : po_headers_all poh, field : po_header_id

i have the following comparison in a where clause :

to_number(bal.reference_2) = poh.po_header_id (+)

when running the statement, i get sometimes this error : ORA-01722:     Nombre non valide.

what is the best way to do the comparison in order to get rid off this error ?

the types are :
reference_2 : varchar2 (240)
po_header_id  : number

Thanks in advance.
Regards.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center