Hi @lsandinoIQ , the error that youâre seeing is being thrown is by Oracle in response to the SQL that KNIME is sending, and so there will not be any output available even if it could be directed to an Oracle table ( because Oracle has encountered a problem before the output can be generated.)
Are you able to share any details of the query or tables involved so that might be able to gives some ideas?
Oracle (and other databases) are a real pain for giving an error but not giving any clues about the columns involved! The database must know, but sometimes I think it just enjoys the âadventure gameâ.
The most common time I see this error is when a character (varchar2 or char) column on the database is being compared with a numeric column or a numeric literal.
e.g. the following query would work fine:
with myview as (
select '1' as myval from dual
union
select 'a' as myval from dual
)
select * from myview where myval='1'
because the condition involves a character literal
and so would return the â1â row.
The following would also workâŚ
with myview as (
select '1' as myval from dual
union
select '2' as myval from dual
)
select * from myview where myval=2
because although the character column âmyvalâ is being compared with a numeric literal (2), the values can both be cast as numbers and so all is good.
However the following would fail with ORA-01722:invalid number
with myview as (
select '2' as myval from dual
union
select 'a' as myval from dual
)
select * from myview where myval=2
because although the â2â can be cast to numeric 2, when oracle attempts to cast âaâ as a number it fails.
So I would check your query for an errant comparison of a numeric with a varchar2 or char column to see if you can get to the bottom of the issue.