SQL Language (MOSC)

MOSC Banner

Error 'ORA-01722 invalid number' being returned with WHERE clause

edited Nov 10, 2011 2:58PM in SQL Language (MOSC) 8 commentsAnswered ✓
Hi all,

I can't quite work out what's wrong with the following query. When it's executed, I get an error saying 'ORA-01722 invalid number'. I've narrowed down the issue to the WHERE clause 'AND fad.document_id = fdt.document_id(+)' and when this clause is commented out, the query fetches all records successfully.

 I'm thinking there is a data issue as I don't have this problem in other environments, but how can I locate the troublesome record?

Any help will me appreciated.

Michael

SELECT vs.vendor_site_id, vs.vendor_site_code, vs.vendor_id,
          ve.vendor_name, vs.org_id, op.NAME, vs.vendor_site_code_alt,

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