Skip to main content
ExLibris
  • Subscribe by RSS
  • ExLibris Dev

    LCCLASS_VW:error ORA-01722 invalid number

    • Article Type: General
    • Product: Voyager
    • Product Version: 7.0.4

    Description:
    Bug Report Form for Issue 16384-17089

    Server platform(s) affected: All
    PC OS (if applicable): N/A
    Browser & version (if applicable): N/A

    Release(s) replicated in: 2007.0.4
    Last version without bug (if applicable): N/A

    Expected results:
    LCCLASS_VW should return all relevant results, without crashing with a numeric conversion error

    Actual results:
    A query that includes LCCLASS_VW will randomly die with ORA-01722 invalid number.


    Workflow implications: Some queries including LCCLASS_VW will not run

    Replication steps: On customer machine, select * from lcclass_vw;

    Other information:

    Workaround: Create new procedure called “safe_to_number”

    create function safe_to_number(txt in varchar2) return number is
    begin
    return to_number(txt);
    exception when value_error then
    return null;
    end safe_to_number;

    Use this instead of the built-in to_number in the lcclass_vw

    Resolution:
    Fixed in Voyager 8.2.2.


    • Article last edited: 3/7/2015
    //doorbell.io feedback widged