Error invalid number

Dear Experts

In fact, we have two packages one is master and another package which is subpart of the master package...

Now the question is when I run only subpart, it works well. If run master and then to Subpart package and then the package is a failure...

When I checked the error code is not a valid number. When I checked the code the error occurs during insertion...

in my sql developer, I tried this insertion and I don't have any error invalid number.

When I run simply Subpart together then I don't have this error number it runs successfully...

When I run the master package calling this subpart, then I get an error invalid number.

can you please how to debug or explore the problem...

Best regards

ASP.

If you need a solution to get out variables for 11.1.1.5 to take a look at the procedure, generic, as demonstrated at the following link

Variables to run wrong for older versions of the ODI | EMP DEV

put this procedure in a package and run just before that your interface is running but after all variables have been defined and it will list the values of the variables in the operator and if all goes well to highlight the rogue variable

Tags: Business Intelligence

Similar Questions

  • More than 1 SQL query with checkbox and error invalid number report

    Hi all

    I have two SQL query reports that each has an apex_item.checkbox and two processes for each report.  A report/process works very well.  It gives me an error of invalid number.

    In addition, another query SQL (editable report) gives me the following error when using the Multi line process, delete.

    ORA-06502: PL/SQL: digital or value error: character number conversion
    error ORA-06502: PL/SQL: digital or value error: character number conversion
    error
    Ok

    When I got a report from SQL query (with box and a process) and the query SQL (editable report) everything worked.  It stopped working when I added another SQL query report (with box and a process).

    A SQL query has the following in my query: apex_item.checkbox(3,email_id,'UNCHECKED') ""

    The other SQL query has the following: apex_item.checkbox(2,b.file_id,'UNCHECKED') ""

    Any help will be greatly appreciated,

    Sylvia

    Hi Reema,

    I've recreated the region and now it works!

    Thank you for this, looking at

    Sylvia

  • TO_CHAR function gives an error "Invalid number" - ORA - 01722

    I will execute under query in Oracle 11 g.

    Select to_char (nvl ("2013-08-12', to_date (1 January 1924 ',' DD-MON-YY')"), ' mm/dd/yyyy') FROM dual;

    But I got error below.

    ORA-01722: invalid number

    01722 00000 - "invalid number."

    * Cause:

    * Action:

    A know all work around that. Your help is very appreciated.

    Like this.

    SELECT TO_CHAR)

    NVL (TO_DATE ('2013-08-12', 'YYYY-MM-DD'),)

    TO_DATE (1 JANUARY 1924 ', 'DD-MON-YYYY')),

    'mm/dd/yyyy')

    conv_to_char

    FROM DUAL;

    -----------------------------------------

    CONV_TO_CHAR

    -------

    12/08/2013

    See you soon,.

    Manik.

  • To_char - error invalid number

    Hi all

    Could you please give me some explanation for the following error message:

    Capture.PNG

    And the following that I see when I try around this column figure:

    ROUND (Z)

    ----------

    -~

    -~

    -~

    -~

    -~

    -~

    -~

    -~

    -~

    -~

    -~

    ROUND (Z)

    ----------

    -~

    What happens when I try to extract the data in this column:

    Z

    ----------

    Z

    ----------

    This column type is: number. What can be? I have extracted this value of my candidacy. Thx a lot a lot a lot in advance for you help.

    A few thoughts:

    (1) the column is not really a NUMBER.

    (2) a person in charge of the data in the table using SQL * Loader using the incorrect data type (for example, INTEGER instead of an INTEGER EXTERNAL).

  • An error "invalid number."

    When I try to run the following code I get the error 'ORA-01722 number' and I can't understand what is the problem.

    the statement is a bit long, please bare with me:
    select 
           FN, 
           LN, 
           P_ID, 
           Pitch_Count,
           max(case when zone=1 then results end) as Zone_1,
           max(case when zone=2 then results end) as Zone_2,
           max(case when zone=3 then results end) as Zone_3,
           max(case when zone=4 then results end) as Zone_4,
           max(case when zone=5 then results end) as Zone_5,
           max(case when zone=6 then results end) as Zone_6,
           max(case when zone=7 then results end) as Zone_7,
           max(case when zone=8 then results end) as Zone_8,
           max(case when zone=9 then results end) as Zone_9,      
           max(case when zone='A' then results end) as Zone_A,
           max(case when zone='B' then results end) as Zone_B,
           max(case when zone='C' then results end) as Zone_C,
           max(case when zone='D' then results end) as Zone_D,
           max(case when zone='E' then results end) as Zone_E,
           max(case when zone='F' then results end) as Zone_F,
           max(case when zone='G' then results end) as Zone_G,
           max(case when zone='H' then results end) as Zone_H,
           max(case when zone='I' then results end) as Zone_I,
           max(case when zone='J' then results end) as Zone_J,
           max(case when zone='K' then results end) as Zone_K,
           max(case when zone='L' then results end) as Zone_L,
           max(case when zone='M' then results end) as Zone_M,
           max(case when zone='N' then results end) as Zone_N,
           max(case when zone='O' then results end) as Zone_O,
           max(case when zone='P' then results end) as Zone_P
    from   (
           select fn, ln, p_id, /*vs,*/ pitch_count, zone, 
                  '"F'||sum(decode(pitch_type,'F',1,0))
                  ||','||
                  'B"'||sum(decode(pitch_type,'B',1,0))
           as results
           from (
                select 
                  ev.pitcher_moniker as fn,
                  ev.pitcher_last_name as ln,
                 /* case
                  when ev.event_prop_bats_left = 'y'
                  then 'vs.Left'
                  else
                  'vs.Right' 
                  end as vs,*/
                  ev.pitcher_id_1032 as p_id,
                  decode(
                  p.zone,       
                  22, 1,
                  23, 2,
                  24, 3,
                  32, 4,
                  33, 5,
                  34, 6,
                  42, 7,
                  43, 8,
                  44, 9,
                  11, 'A',
                  12, 'B',
                  13, 'C',
                  14, 'D',
                  15, 'E',
                  21, 'F',
                  25, 'G',
                  31, 'H',
                  35, 'I',
                  41, 'J',
                  45, 'K',
                  51, 'L',
                  52, 'M',
                  53, 'N',
                  54, 'O',
                  55, 'P' 
                  ) as zone,
                  decode(
                  p.pitch_type_id,
                  1,'F',
                  9,'F',
                  7,'U',
                  'B'
                  ) as pitch_type,
                  Case
                  When p.balls = 0 and p.strikes = 0
                     Then 'First Pitch'
                  When p.balls = 3 and p.strikes = 2
                     Then 'Full Count'
                  Else To_char (p.balls) || '-' || to_char (p.strikes) || ' Count'
                  End as pitch_count      
                  from  customer_data.baseball_tvl_pitches p,
                        customer_data.baseball_tvl_events ev
                  where ev.event_number = p.event_number
                  and ev.game_code_1032 = p.game_code_1032
                  and ev.season = 2008
                  and p.game_type_id = 1
                  and p.game_code_1032 = ev.game_code_1032
                  and p.zone in (
                                 11,12,13,14,15,
                                 21,22,23,24,25,
                                 31,32,33,34,35,
                                 41,42,43,44,45,
                                 51,52,53,54,55
                                 )
                  order by 
                      ev.pitcher_id_1032
        )
        group by fn, ln, /*vs,*/ p_id, zone, pitch_count
        order by p_id, decode(pitch_count,'First Pitch','0--','Full Count','999',pitch_count) asc, zone
    )
    group by fn, ln, p_id, pitch_count
    order by ln, decode(pitch_count,'First Pitch','0--','Full Count','999',pitch_count) asc;
    decode(
                  p.zone,
                  22, 1,
                  23, 2,
                  24, 3,
                  32, 4,
                  33, 5,
                  34, 6,
                  42, 7,
                  43, 8,
                  44, 9,
                  11, 'A',
                  12, 'B',
                  13, 'C',
                  14, 'D',
                  15, 'E',
                  21, 'F',
                  25, 'G',
                  31, 'H',
                  35, 'I',
                  41, 'J',
                  45, 'K',
                  51, 'L',
                  52, 'M',
                  53, 'N',
                  54, 'O',
                  55, 'P'
                  ) as zone,
    

    The first return value of a decode statement determines the specific return type. In your example, your first returned value is 1, which is a number, so when he get up to 'A' he's trying to implicitly convert this string into a number and do not. You have only to deal with a data type, so in this case, you would be better to surround your numbers returned (1,2,3,4,5,6,7,8 and 9) with single quotes.

  • SQL * Loader invalid number error

    I'm trying to load a .csv using SQL * Loader and all ranks is rejected with an error invalid number.

    Here is the control file:

    OPTIONS (SKIP = 1)
    DOWNLOAD THE DATA
    INFILE 'shi_claims.csv '.
    REPLACE IN THE TABLE SHI_CLAIMS
    FIELDS ENDED BY ',' POSSIBLY FRAMED BY "" "
    TRAILING NULLCOLS
    (
    ID TANK
    DECIMAL EXTERNAL AMT
    )

    Here are the first lines of data in the .csv (note I am ignoring the first line):

    EmployeeID, PaidAmnt
    100550393,0
    100709611,120.04
    100795648,90
    100795648,5.24

    Here is the structure of the table, I'm trying to load:

    CREATE THE TABLE UST_GLOBAL. SHI_CLAIMS
    (
    ID VARCHAR2 (9 CHAR),
    AMT NUMBER (8.2)
    )

    Here's the .log file that results. All ranks lands in the .bad file.

    SQL * Loader: Release 10.2.0.4.0 - Production on Mon Mar 7 16:34:09 2011

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Control file: /u02/sct/ust/shi_claims.ctl
    Data file:././data.7609732
    Bad leadership: 7609732.bad
    Delete the file: discard.7609732
    (Allow all releases)

    Number of loading: ALL
    Number of jump: 1
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table SHI_CLAIMS, loaded from every logical record.
    Insert the option in effect for this table: REPLACE TRAILING NULLCOLS option in effect

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    FIRST ID *, O ("") CHARACTER
    AMT NEXT *, O ("") CHARACTER

    Sheet 1: Rejected - error on the SHI_CLAIMS, AMT column table.
    ORA-01722: invalid number

    Sheet 2: Rejected - error on the SHI_CLAIMS, AMT column table.
    ORA-01722: invalid number

    (.. .and so forth for all ranks).

    I note that in the copy of the control file that is displayed in the .log file, the column AMT appears as a CHARACTER, while my control file means DECIMAL EXTERNAL. Could why, and this be part of the problem?

    Thanks for any help...

    Published by: wrfoster on March 8, 2011 09:40

    wrfoster wrote:
    Ideas on how to get rid of them?

    Well, ideally, if you can get rid of them when creating csv... If not do the AMT DUMP as I suggested previously to get the exact or the end characters ascii codes. Assuming that it is the new line of Chr (10) put the following text in the loader control file:

    AMT "RTRIM (:AMT,CHR(10)).

    SY.

  • Invalid number in insert

    Hi people,

    I am looking for a way to find which of the 100 columns in an insert causes the error invalid number. Problem is deeply nested inside several procedures, so it is difficult to pull out of the insert and then remove line-by-line until I get to the problem. Y at - it a quick way oracle would say XYZ column causes the error invalid number?


    Best regards
    Igor

    DML Error Logging - I guess , is what you need exactly.

    Please refer - DML Error Logging

    -Http://www.orafaq.com/node/76
    >
    Logging of DML errors is a new feature for 10 gr 2. Have you tried updating the 30 million records, only to have the update fail after twenty minutes, because a single record in 30 million does not reach a check constraint? Or, what would you say a insert-as-select which fails to 999 1000 rank as a column value is too large? With DML error logging , adding a clause to your insert statement would lead the 999 correct to be inserted successfully records and the a wrong record to be written in a table for you to solve.
    >

    HTH
    Vanessa B.

    Published by: Vanessa B on January 15, 2013 14:26

  • Invalid number when reading a flat file

    Hello Experts,

    I have the following flat file format and I want to insert it into a table
    I have an error invalid number.

    How can I stop reading the file when it reaches the empty line before the grand total

    file
    ----------------------------------------------------------------------------------------------------------------------------------
    
                       TOTAL        PAID       TOTAL     EXPIRED       TOTAL    FRAC OUTSTANDING
                     WINNERS       TODAY        PAID       TODAY     EXPIRED   ROUND
        DRAW/SET      AMOUNT      AMOUNT      AMOUNT      AMOUNT      AMOUNT  AMOUNT      AMOUNT
    ------------ ----------- ----------- ----------- ----------- ----------- ------- -----------
        1/     1  6857068.00        0.00  5879902.00        0.00   977166.00    0.00        0.00
        2/     1  5907322.00        0.00  5463759.00        0.00   443563.00    0.00        0.00
        3/     1  7277181.00        0.00  6551708.00        0.00   725473.00    0.00        0.00
        4/     1 37503734.00        0.00 36656046.00        0.00   847688.00    0.00        0.00
        5/     1  4879934.00        0.00  4293514.00        0.00   586420.00    0.00        0.00
        6/     1 15604133.00        0.00 15172198.00        0.00   431935.00    0.00        0.00
        7/     1  4943514.00        0.00  4425254.00        0.00   518260.00    0.00        0.00
        8/     1  6493874.00        0.00  5745660.00        0.00   748214.00    0.00        0.00
        9/     1 23195487.00        0.00 22279945.00        0.00        0.00    0.00   915542.00
        10/    1  5480445.00        0.00  4981615.00        0.00        0.00    0.00   498830.00
        11/    1  5421101.00        0.00  4852814.00        0.00        0.00    0.00   568287.00
        12/    1 22644465.00        0.00 21987329.00        0.00        0.00    0.00   657136.00
        13/    1  6310425.00        0.00  5582127.00        0.00        0.00    0.00   728298.00
        14/    1  5986847.00        0.00  5471429.00        0.00        0.00    0.00   515418.00
        15/    1  6699299.00        0.00  6080687.00        0.00        0.00    0.00   618612.00
        16/    1  7549513.00        0.00  6842058.00        0.00        0.00    0.00   707455.00
        17/    1 43951014.00        0.00 42538841.00        0.00        0.00    0.00  1412173.00
        18/    1  6275029.00        0.00  5608261.00        0.00        0.00    0.00   666768.00
        19/    1 34023432.00      100.00 33066516.00        0.00        0.00    0.00   956916.00
        20/    1  5496324.00        0.00  5029237.00        0.00        0.00    0.00   467087.00
        21/    1  5791146.00        0.00  5281256.00        0.00        0.00    0.00   509890.00
        22/    1  7121128.00        0.00  6419500.00        0.00        0.00    0.00   701628.00
        23/    1 36121507.00        0.00 35211831.00        0.00        0.00    0.00   909676.00
        24/    1 10137379.00        0.00  9660197.00        0.00        0.00    0.00   477182.00
        25/    1  4267656.00      200.00  3875040.00        0.00        0.00    0.00   392616.00
        26/    1  8656241.00      561.00  7744762.00        0.00        0.00    0.00   911479.00
        27/    1 10023865.00      400.00  9070015.00        0.00        0.00    0.00   953850.00
        28/    1 15201340.00     1188.00 13795352.00        0.00        0.00    0.00  1405988.00
        29/    1 83052341.00     2773.00 80673373.00        0.00        0.00    0.00  2378968.00
        30/    1  7137232.00     1000.00  6459875.00        0.00        0.00    0.00   677357.00
        31/    1 25472826.00     1700.00 24487312.00        0.00        0.00    0.00   985514.00
        32/    1  5679593.00     4398.00  5094378.00        0.00        0.00    0.00   585215.00
        33/    1 19360140.00    32659.00 18144162.00        0.00        0.00    0.00  1215978.00
        34/    1  5350117.00  1059167.00  1059167.00        0.00        0.00    0.00  4290950.00
    
    GRAND TOTAL  ########.##  1104146.00 ########.##        0.00  5278719.00    0.00 25108813.00
    
    End of Report
    code
    declare
    l_start_file_name varchar2(50) := 'liab_report_summary_p008_c';
    l_end_file_name varchar2(50)   := '_english.rep';
    l_file_name varchar2(100);
    l_sql varchar(32767);
    refresh_cdc varchar2(10) := '00540';
    
    Begin
    
    l_file_name := l_start_file_name||REFRESH_CDC||l_end_file_name;
    
     l_sql := 'create or replace directory GTECHFILES as ''/ftpfiles/gtechfiles/acct_'||REFRESH_CDC||'''';
      execute immediate l_sql;
    
    
    l_sql :=  ' CREATE TABLE LOTO_LIABILITY_REPORT_temp             '||
              ' (                                                   '||
              '  draw_number       varchar2(50),                    '||
              '  total_winners_amt number,                          '||
              '  paid_today_amt    number,                          '||
              '  total_paid_amt    number,                          '||
              '  expired_today_amt number,                          '||
              '  total_expired_amt number,                          '||
              '  frac_round_amt    number,                          '||
              '  outstanding_amt   number                           '||
              ' )                                                   '||
              ' ORGANIZATION EXTERNAL                               '||
              '   (  TYPE ORACLE_LOADER                             '||
              '     DEFAULT DIRECTORY GTECHFILES                    '||
              '     ACCESS PARAMETERS                               '||
              '       ( records delimited by newline                '||
              '      LOGFILE TEMPDIR:''loto_liability_report.log''  '||
              '      SKIP 8                                         '||            
              '      FIELDS LDRTRIM                                 '||
              '      MISSING FIELD VALUES ARE NULL                  '||
              '       (                                             '||
              '  draw_number       (1:11)  char(11),                '||
              '  total_winners_amt (14:24) char(11),                '||
              '  paid_today_amt    (26:36) char(11),                  '||
              '  total_paid_amt    (38:48) char(11),                  '||
              '  expired_today_amt (50:60) char(11),                  '||
              '  total_expired_amt (62:72) char(11),                  '||
              '  frac_round_amt    (74:80) char(11),                  '||
              '  outstanding_amt   (82:92) char(11)                   '||
              '       )                                             '||
              '   )                                                 '||
              '     LOCATION ('''||l_file_name||''')                '||
              ' )                                                   '||
              ' REJECT LIMIT UNLIMITED                              '||
              ' NOPARALLEL                                          '||
              ' NOMONITORING                                        ';
    
             execute immediate l_sql; 
     
     l_sql := ' insert into LOTO_LIABILITY_REPORT '||
     ' ( draw_number             , '||
     '   total_winners_amt       , '||
     '   paid_today_amt          , '||
     '   total_paid_amt          , '||
     '   expired_today_amt       , '||
     '   total_expired_amt       , '||
     '   frac_round_amt          , '||
     '   outstanding_amt         , '||
     '   source                  , '||
     '   inserted_DATE           , '||
    -- '   UPLOADED                 ,'||
     '   CDC                       '||
     ' )                           '||
     '   SELECT                    '||
     '       draw_number    , '||
     '       TO_NUMBER(total_winners_amt,''999,999,999.00'') total_winners_amt,  '||
     '       TO_NUMBER(paid_today_amt,''999,999,999.00'') paid_today_amt,        '||
     '       TO_NUMBER(total_paid_amt,''999,999,999.00'') total_paid_amt,        '||
     '       TO_NUMBER(expired_today_amt,''999,999,999.00'') expired_today_amt,        '||
     '       TO_NUMBER(total_expired_amt,''999,999,999.00'') total_expired_amt,        '||
     '       TO_NUMBER(frac_round_amt,''999,999,999.00'') frac_round_amt,        '|| 
     '       TO_NUMBER(outstanding_amt,''999,999,999.00'') outstanding_amt,        '||  
     '       '''||l_file_name                                       ||''', '||
     '       sysdate                                                     , '||
     --'     ''N''                                                         , '||
             refresh_cdc                                                    ||
     '    FROM                                                             '||
     '       LOTO_LIABILITY_REPORT_temp                                              ';
    
     
        dbms_output.put_line(l_sql);
             execute immediate l_sql;           
             
    ll_sql :='drop table LOTO_LIABILITY_REPORT_temp';
     
            execute immediate l_sql;
    
    exception
    when others then
    rollback;
    l_sql :='drop table LOTO_LIABILITY_REPORT_temp';
    execute immediate l_sql;
    debug_message('LOTO_LIABILITY_REPORT_temp_UPLOAD/'||REFRESH_CDC,'Unexpected Error '||sqlerrm);
    END LOTO_LIABILITY_REPORT;
    any help would be greatly appreciated.

    Thank you
    Kevin

    Hello

    You can do this:
    Add this condition in the table definition
    WHEN LOAD (total_winners_amt! = "#.") "#" and total_paid_amt! =" ###. "#" and draw_number! = BLANKS)
    and do it for each column that can have this value...

    CREATE TABLE WEBUSER.LOTO_LIABILITY_REPORT_TEMP
    (
      DRAW_NUMBER        VARCHAR2(50 BYTE),
      TOTAL_WINNERS_AMT  NUMBER,
      PAID_TODAY_AMT     NUMBER,
      TOTAL_PAID_AMT     NUMBER,
      EXPIRED_TODAY_AMT  NUMBER,
      TOTAL_EXPIRED_AMT  NUMBER,
      FRAC_ROUND_AMT     NUMBER,
      OUTSTANDING_AMT    NUMBER
    )
    ORGANIZATION EXTERNAL
      (  TYPE ORACLE_LOADER
         DEFAULT DIRECTORY GTECHFILES
         ACCESS PARAMETERS
           ( records delimited by newline
                    LOGFILE GTECHFILES:'loto_liability_report.log'
                    SKIP 8
                    LOAD WHEN (total_winners_amt!="########.##" and total_paid_amt!="########.##" and draw_number != BLANKS)
                    FIELDS LDRTRIM
                    MISSING FIELD VALUES ARE NULL
                     (
                draw_number       (1:11)  char(11),
                total_winners_amt (14:24) char(11),
                paid_today_amt    (26:36) char(11),
                total_paid_amt    (38:48) char(11),
                expired_today_amt (50:60) char(11),
                total_expired_amt (62:72) char(11),
                frac_round_amt    (74:80) char(7),
                outstanding_amt   (82:92) char(11)
                     ) 
    
                  )
         LOCATION (GTECHFILES:'test.txt')
      )
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;
    

    You'll get in the log file:

     LOG file opened at 06/28/10 22:16:51
    
    Field Definitions for table LOTO_LIABILITY_REPORT_TEMP
      Record format DELIMITED BY NEWLINE
      Data in file has same endianness as the platform
      Rows with all null fields are accepted
      Load when ((TOTAL_WINNERS_AMT != ########.##) AND ((TOTAL_PAID_AMT != ########.##) AND (DRAW_NUMBER != BLANKS)))
    
      Fields in Data Source: 
    
        DRAW_NUMBER                     CHAR (11)
          Record position (1, 11)
          Trim whitespace same as SQL Loader
        TOTAL_WINNERS_AMT               CHAR (11)
          Record position (14, 24)
          Trim whitespace same as SQL Loader
        PAID_TODAY_AMT                  CHAR (11)
          Record position (26, 36)
          Trim whitespace same as SQL Loader
        TOTAL_PAID_AMT                  CHAR (11)
          Record position (38, 48)
          Trim whitespace same as SQL Loader
        EXPIRED_TODAY_AMT               CHAR (11)
          Record position (50, 60)
          Trim whitespace same as SQL Loader
        TOTAL_EXPIRED_AMT               CHAR (11)
          Record position (62, 72)
          Trim whitespace same as SQL Loader
        FRAC_ROUND_AMT                  CHAR (7)
          Record position (74, 80)
          Trim whitespace same as SQL Loader
        OUTSTANDING_AMT                 CHAR (11)
          Record position (82, 92)
          Trim whitespace same as SQL Loader
    KUP-04102: record 41 discarded from file c:\temp\test.txt
    KUP-04102: record 42 discarded from file c:\temp\test.txt
    KUP-04102: record 43 discarded from file c:\temp\test.txt
    KUP-04102: record 44 discarded from file c:\temp\test.txt
    

    ORA-01722 exception has disappeared...
    be very vigilant, you also should jump 6 instead of spend 8...

  • TO_NUMBER gives invalid number

    Hello
    I'm trying to compare varchar2 (250) field with numeric field and it gives me the error invalid number when I run this query.
    There are some alphanumeric values in field varchar2 which I imagine causing problem. Not sure how to check if a field value is numeric or Alpha numric.
    So I need TO_NUMBER only if the t.interface_header_attribute1 value is NUMERIC. I don't know how to do this.

    SELECT T.trx_number TransactionRef,
    ca_ship.Account_Number ship_to_CUSTOMER_AC,
    Decode(TP.type,'INV','0','CM','1') TransactionType,
    OE.order_number,
    t.trx_date,
    P.AMOUNT_DUE_ORIGINAL,
    OE.cust_po_number
    OF ra_customer_trx_all t.
    ra_cust_trx_types_all tp,
    OE OE_ORDER_HEADERS_ALL,
    hz_cust_site_uses_all su_ship,
    hz_cust_acct_sites_all sa_ship,
    hz_cust_accounts ca_ship,
    AR_PAYMENT_SCHEDULES_ALl p
    WHERE t.status_trx = "OP" - close
    and t.cust_trx_type_id = tp.cust_trx_type_id

    and to_number (nvl (trim (t.interface_header_attribute1),'0 ')) = oe.order_number - to_number causing an error invalid number

    and p.TRX_NUMBER = t.trx_number
    -ship to a/c
    and su_ship.site_use_id (+) = t.ship_to_site_use_id
    AND su_ship.cust_acct_site_id = sa_ship.cust_acct_site_id (+)
    AND sa_ship.cust_account_id = ca_ship.cust_account_id (+);

    Any help will be much appreciated.

    Thank you

    VJ

    Hello

    and     regexp_like(t.interface_header_attribute1, '^[0-9]+') -- excludes rows where non digits occur in this column
    

    Not quite true.

    with data as(
    select '123' x from dual union all
    select 'a234f' x from dual union all
    select 'a234' x from dual union all
    select '12d34' x from dual union all
    select '123df5' x from dual)
    
    select
    *
    from data
    where
    regexp_like(x, '^[0-9]+')
    

    Kind regards
    Bobin

  • Error # NULL number

    Hello

    pls CN u tell me whts wrong with the query. I get an error invalid number.



    with tab1
    as

    (

    Select the 1 January 2008 "as start_date, March 17, 2009 as" double end_date

    )

    Select (round ((months_between (end_date, start_date) / 12))) years.
    (round ((months_between(end_date,start_date) - round ((months_between(end_date,start_date)/12)) * 12))) as month,.
    End_date - start_date days


    of tab1



    Thank you

    REDA

    Select the 1 January 2008 "as start_date, March 17, 2009 as" double end_date

    These are the strings, not dates. TO_DATE allows to convert DATES

    It works:

    with tab1
    as
    (
    select to_date ('01-JAN-2008', 'dd-MON-yyyy') as start_date , to_date ('17-MAR-2009', 'dd-MON-yyyy') as end_date from dual
    )
    select (round((months_between(end_date,start_date) / 12))) as years,
    (round((months_between(end_date,start_date) - round((months_between(end_date,start_date) / 12)) *12 ))) as months,
    end_date - start_date as days
    from tab1 
    
  • ORA-01722: invalid number calculation error during the treatment.

    My version of the APEX is Application Express 4.2.6.00.03

    I imported apex application 4.0.2 and his object of decision-making support in my apex.

    Its installed successfully.

    But when I try to run this application it show me this error:

    ORA-01722: invalid number calculation error during the treatment.

    Thank you guys for your help.

    I found the solution.

    There was a problem in the authentication scheme.

    I called function as return function_name in 4.0.2

    but in the Apex 4.2.6 to call a function word return is not necessary.

    He was throwing the error caused that Word back.

  • Error: ORA-01722: invalid number

    Hello

    Can some please tell me what I'm doing wrong when I try to make a difference?

    Since the format is the same I use this query

    Select b1 - b2 of TMP_1;
    Error: ORA-01722: invalid number
    --create table         
        CREATE TABLE TMP_1
    (
      B1  VARCHAR2(8 BYTE),
      B2  VARCHAR2(8 BYTE)
    ) 
    /
    
    --insert 
    
    INSERT INTO TMP_1 (B1, B2)
         VALUES ('00:02:54', '00:02:10');
    
    INSERT INTO TMP_1 (B1, B2)
         VALUES ('00:05:47', '00:03:56');
    
    INSERT INTO TMP_1 (B1, B2)
         VALUES ('00:12:49', '00:02:37');
    
    INSERT INTO TMP_1 (B1, B2)
         VALUES ('00:49:33', '00:02:09');
    
    INSERT INTO TMP_1 (B1, B2)
         VALUES ('00:06:34', '00:02:39');
    
    INSERT INTO TMP_1 (B1, B2)
         VALUES ('00:02:45', '00:01:41');
    
    INSERT INTO TMP_1 (B1, B2)
         VALUES ('00:01:22', '00:00:22');
    
    COMMIT;
    objective:

    Need to get the difference in the same format as the
     columns example: 00:02:54 

    Please provide examples of data, it is very useful. Here's one way:

    SQL> select b1, b2,
      2         b1 - (to_date(to_char(sysdate, 'dd-mon-yyyy')||' '||b2,'dd-mon-yyyy hh24:mi:ss') - trunc(sysdate)) b3
      3  from tmp_1;
    
    B1                   B2       B3
    -------------------- -------- --------------------
    03-dec-2012 20:13:33 00:02:10 03-dec-2012 20:11:23
    03-dec-2012 18:24:24 00:03:56 03-dec-2012 18:20:28
    03-dec-2012 21:48:33 00:02:37 03-dec-2012 21:45:56
    03-dec-2012 15:50:09 00:02:09 03-dec-2012 15:48:00
    03-dec-2012 14:06:24 00:02:39 03-dec-2012 14:03:45
    03-dec-2012 21:47:15 00:01:41 03-dec-2012 21:45:34
    

    John

  • Please help: instruction box - ORA-01722: invalid number error

    Hi all
    I am trying to use the Case statement to recode the status canceled in two groups
    "Reject" If the difference between the date of the first and the last date is less than 29 and
    'Accept' if the difference between the date of the first and the last date is greater than 30

    Here's my data 'test'

    STATUS FIRST_DATE LAST_DATE

    Transfer / / 10/08/2011-10/09/2011
    Mover 10/08/2011-15/09/2011
    Cancel the 16/09/2011 10/08/2011
    Cancel the 10/08/2011 5/09/2011

    Here's the syntax

    Select a.*,
    (CASE WHEN a.STATUS = 'Cancel' CAN (round(a.LAST_DATE-a.FIRST_DATE))
    0 OTHERWISE
    END CAN_DAYS),
    (BOX WHEN "CAN_DAYS" > 29 THEN "reject"
    WHEN "CAN_DAYS" < 30 THEN "accept."
    Reject_Accept END)
    try one

    The first CASE statement works very well and gives me this
    STATUS FIRST_DATE LAST_DATE CAN_DAYS

    Transfer 0 10/08/2011-10/09/2011
    Mover 0 10/08/2011-15/09/2011
    Cancel the 37 16/09/2011 10/08/2011
    Cancel the 26/10/08/2011 5/09/2011

    but the LATTER product ORA-01722: invalid number error. It's something to do with the type of data CAN_DAYS, Oracle does not see in the Numeric form I think.
    I want to see result
    STATUS FIRST_DATE LAST_DATE CAN_DAYS Reject_Accept

    Transfer 0 10/08/2011-10/09/2011
    Mover 0 10/08/2011-15/09/2011
    Accept to cancel 37 10/08/2011-16/09/2011
    Refuse to cancel the 26/10/08/2011 5/09/2011

    Could someone please help me fix the syntax?
    Thank you in advance,

    Hello

    The error is due to the fact that you are trying to compare "CAN_DAYS", which cannot be regarded as a number, a number.
    You can try this option for your results:

    select A.STATUS, A.FIRST_DATE, A.LAST_DATE,case
                                                when a.status ='Cancel' then round(a.last_date - a.first_date)
                                                else 0
                                                end as can_days,
                                                case
                                                when (a.status ='Cancel'  and round(a.last_date - a.first_date) > 29) then 'Reject'
                                                when (a.status ='Cancel'  and round(a.last_date - a.first_date)< 30) then 'Accept'
                                                else null
                                                end as Accept_Reject
    from test a 
    
  • SQL * Loader - rejected records - error on table ORA-01722: invalid number

    Get the following errors:

    Please tell me where I'm wrong?
    The log file and extracts the data file with the control file is attached.
    Also guide me please how I can download 4900 files at once?

    -------------------------------------
    SQL * Loader: release 11.1.0.7.0 - Production on Fri 14 Oct 03:06:06 2011

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Control file: sample.ctl
    Data file: Cities.csv
    Bad leadership: Cities.bad
    Discard File: none is specified

    (Allow all releases)

    Number of loading: ALL
    Number of jump: 0
    Authorized errors: 50
    Link table: 64 lines, maximum of 256000 bytes
    Continuation of the debate: none is specified
    Path used: classics

    Table CITY, loaded from every logical record.
    Insert the option in effect for this table: INSERT

    Column Position Len term Encl. Datatype name
    ------------------------------ ---------- ----- ---- ---- ---------------------
    FIRST ID *, CHARACTER
    35. ACCORDING TO NAME, ' CHARACTER
    COUNTRYCODE 3, ' CHARACTER
    THE NEXT POPULATION * CHARACTER WHT

    Sheet 1: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 2: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 3: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Folder 4: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 5: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 6: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 7: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 8: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 9: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Case 10: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Factsheet 11: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 12: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 13: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 14: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 15: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 16: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 17: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 18: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    File 19: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 20: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 21: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Account 22: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 23: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record number of 24: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 25: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 26: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Fact sheet 27: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 28: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 29: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 30: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record of 31: rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    • Statement 32: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 33: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 34: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 35: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 36: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 37: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 38: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 39: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 40: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 41: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 42: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 43: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Sheet 44: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 45: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    • Statement 46: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 47: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 48: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 49: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Page 50: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number

    Record 51: Rejected - error on the table CITY, POPULATION column.
    ORA-01722: invalid number


    NUMBER of MAXIMUM ERRORS EXCEEDED - above the statistics reflect partial performance.

    CITY table:
    0 rows successfully loaded.
    51 lines not filled due to data errors.
    0 rows not loading because all WHEN clauses were failed.
    0 rows not populated because all fields are null.


    The space allocated to bind table: 35840 bytes (64 lines)
    Bytes of read buffer: 1048576

    Total logical records ignored: 0
    Total logical records read: 64
    Total rejected logical records: 51
    Total logical records ignored: 0

    Run started on Fri 14 Oct 03:06:06 2011
    Run finished Fri Oct 14 03:06:12 2011

    Time was: 00:00:06.18
    Time processor was: 00:00:00.03



    ----------------------------------------------------------------------

    my control file (sample.ctl):

    Load data infile 'Cities.csv '.
    in the town of table
    fields completed by «,»
    (external id integer,
    char (35) name box by ' ', '
    CountryCode tank (3) box by ' ', '
    external population integer terminated by '\n '.
    )

    my data (Cities.csv) file (it contains 4900 documents, but I show here just 4 records for ease)

    3830, "Virginia Beach", "USA", 425257
    3831, 'Atlanta', 'USA', 416474
    3832, "Sacramento", "USA", 407018
    3833, 'Oakland', 'USA', 399484


    Thanks in advance!

    Watch when I have a little change your database as follows

    1,'Kabul','AFG',1780000
    2,'Qandahar','AFG','237500'
    3,'Herat','AFG','186800'  
    

    I got the same error (last 2 rows rejected for the same number invalid error)

    mhouri > select * from cities;
    
            ID NAME                                COU POPULATION
    ---------- ----------------------------------- --- ----------
             1 Kabul                               AFG    1780000
    
    SQL*Loader: Release 10.2.0.3.0 - Production on Fri Oct 14 10:38:06 2011
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   cities.ctl
    Data File:      cities.dat
      Bad File:     cities.bad
      Discard File:  none specified
    
     (Allow all discards)
    
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    
    Table CITIES, loaded from every logical record.
    Insert option in effect for this table: INSERT
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    ID                                  FIRST     *   ,       CHARACTER
    NAME                                 NEXT    35   ,    '  CHARACTER
    COUNTRYCODE                          NEXT     3   ,    '  CHARACTER
    POPULATION                           NEXT     *  WHT      CHARACTER            
    
    Record 4: Rejected - Error on table CITIES, column ID.
    Column not found before end of logical record (use TRAILING NULLCOLS)
    Record 2: Rejected - Error on table CITIES, column POPULATION.
    ORA-01722: invalid number
    
    Record 3: Rejected - Error on table CITIES, column POPULATION.
    ORA-01722: invalid number
    
    Table CITIES:
      1 Row successfully loaded.
      3 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    
    Space allocated for bind array:                  35840 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:             4
    Total logical records rejected:         3
    Total logical records discarded:        0
    
    Run began on Fri Oct 14 10:38:06 2011
    Run ended on Fri Oct 14 10:38:06 2011
    
    Elapsed time was:     00:00:00.23
    CPU time was:         00:00:00.09
    

    Value of the population within the data file must be a number

    Best regards

    Mohamed Houri

  • We get a "invalid number" error when the Xref database of fill

    Hi all

    My table (XREF_DATA) target has the following parameters and its respective data types: -.

    XREF_TABLE_NAME
    XREF_COLUMN_NAME
    ROW_NUMBER
    VALUE
    IS_DELETED
    LAST_MODIFIED
    LAST_ACCESSED

    All are varchar2

    But when I am executing the interface and observing the results then this error pops up:-1722: 42000: java.sql.SQLException: ORA-01722: invalid number to the stadium
    Insert flow I$ Table(I$_XREF_DATA)

    I used CKM, LKMSql for Oracle and the incremental update of the IKM Oracle)


    My target table has all the varchar2 data type, then why it gives this error number invalid?



    Kind regards
    Sourav

    Hello

    You can copy the SQL code generated by ODI (for the stage which gives this error) and then try to run it through any SQL client like toad / developer sql etc.
    This will help you find erroneous data.

    Also is LAST_MODIFIED and LAST_ACCESSED have as VARCHAR2 data type? The name it seems that it is lying do DATE.

    Thank you
    Fati

Maybe you are looking for

  • F20 is good for gaming?

    Hello I think of buying a Qosmio F20-130, but I'm not sure how it would be for the game? I see that the GPU is not the best but I would be really happy to hear about someone who has first-hand experience.

  • Satellite A60-217 memory upgrade

    Hi, I have a Satellite A60-217 (Intel Pentium IV HT 532, 3.06 GHz), and I want to upgrade the memory by adding a 512 MB of currently installed memory (256 MB with 64 MB shared memory for video card). I tried to install a S3 + PC2700 DDR SODIMM 512 MB

  • kb2492386 error 0x8024200E after installation attempt failed

    The error message above appears after checking Microsoft Update & any attempt to install updated kb2492386. I am running WinXP Home, SP3. Any help would be appreciated.

  • Need advice to recover the password for WLC 4404

    Hi all I can't reset the password WLC 4404 from our site. I followed the steps in the document from cisco. Are there other ways by which I can reset the same. Note: Can't console SSH, HTTPS and take the WLC. Any help will be greatly appreciated... Co

  • Removal of reading emails from my blackberry blackBerry Smartphones

    I use a gmail with microsoft outlook e-mail account and the last Director of office for blackberry... When I sync my phone with Outlook, I lose all the e-mails I've read from my phone, so I can't go back and read old emails about it. I went through a