SDO_NET. VALIDATE_NETWORK throwing error ORA-06502

I generated a network but also created a partition. Before you create the partition, I run SDO_NET. VALIDATE_NETWORK and that's fine.

I perform partitioning with the following procedures:
execute sdo_net.spatial_partition('LRS_NETWORK', 'LRS_NETWORK_PART', 2500, 'LRS_NETWORK_PARTITION_DIR', 'lrs_network_part.log', 'W', 1);
execute sdo_net.generate_partition_blobs('LRS_NETWORK', 1,'LRS_NETWORK_PART_BLOB', true, true, 'LRS_NETWORK_PARTITION_DIR', 'lrs_network_part_blob.log', 'W', false, false);
Both all fine, and I don't see any errors in the logs. They can be provided if necessary. Note that the meter on my partition table, after it is 0, and my BLOB table has a 1 meter.

So I now run SDO_NET. VALIDATE_NETWORK and the following errors occur when the procedure runs:
[Error] Script lines: 1-1 --------------------------
 ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "MDSYS.SDO_NET", line 2467
ORA-06512: at line 1
 Script line 1, statement line 1, column 7
In addition, there seems to be 2 other functions without papers: SDO_NET. VALIDATE_PARTITION_INFO and SDO_NET. VALIDATE_CONSISTENCY. I was curious, so I ran to them, this is the result I get:

SDO_NET. VALIDATE_PARTITION_INFO ('LRS_NETWORK', 'TRUE')
Inconsistent link_level information between partition table, and partition blob table! (min: ,max: ,count:0 ) vs. (min:1 ,max:1 ,count:1)  
Inconsistent total no. of nodes between node table and partition table at link_level:1! (5227 vs. 0) Partition blob table contains 1 inconsistent (partition,,link_level) pair(s) vs. partition table!   
Partition blob table contains 1 partition(s) with inconsistent no. of nodes vs. partition table at link_level:1!  5227 node(s) with unassigned partition_id  in the partition table at link_level:1!  
MDSYS. SDO_NET. VALIDATE_CONSISTENCY ('LRS_NETWORK', 'TRUE')
 Node table has 5227 node(s) while partition table has 0 node(s); 
Not sure if I should be concerned here. FYI, I'm using Oracle 11 g 2. My network is a network space, not LRS as you might suppose. Here is the metadata for my network:

NETWORK:     LRS_NETWORK
NETWORK_ID: 62
NETWORK_CATEGORY:     SPACE
GEOMETRY_TYPE:     SDO_GEOMETRY
NETWORK_TYPE:     (null)
NO_OF_HIERARCHY_LEVELS: 1
NO_OF_PARTITIONS: 1
LRS_TABLE_NAME:     (null)
LRS_GEOM_COLUMN:     (null)
NODE_TABLE_NAME:     LRS_NODES
NODE_GEOM_COLUMN:     GEOMETRY
NODE_COST_COLUMN:     COST
NODE_PARTITION_COLUMN:     (null)
NODE_DURATION_COLUMN:     (null)
LINK_TABLE_NAME:     LRS_LINKS
LINK_GEOM_COLUMN:     GEOMETRY
LINK_DIRECTION:     REALIZED
LINK_COST_COLUMN:     COST
LINK_PARTITION_COLUMN:     (null)
LINK_DURATION_COLUMN:     (null)
PATH_TABLE_NAME:     LRS_PATHS
PATH_GEOM_COLUMN:     GEOMETRY
PATH_LINK_TABLE_NAME:     LRS_PATHS_LINKS
SUBPATH_TABLE_NAME:     (null)
SUBPATH_GEOM_COLUMN:     (null)
PARTITION_TABLE_NAME:     LRS_NETWORK_PART
PARTITION_BLOB_TABLE_NAME:     LRS_NETWORK_PART_BLOB
COMPONENT_TABLE_NAME:     (null)
NODE_LEVEL_TABLE_NAME:     (null)
TOPOLOGY:     (null)
USER_DEFINED_DATA:     THERE
EXTERNAL_REFERENCES:     (null)


Thank you, Tom

Tom,

The geometry of your node is a point LRS geometry (gtype = 3301). Point 2D geometry is of the following form:

SDO_GEOMETRY)
2001,
41104,
SDO_POINT (x, y, NULL),
NULL,
NULL));

You can convert the geometry lrs in standard 2D geometry with the procedures mentioned in my previous post and see if that solves your problem.

Jack

Tags: Database

Similar Questions

  • While the BLOB conversion of type CLOB error - ORA-06502: PL/SQL: digital error or value

    Passing data from attachment of DB (Blob data Type) after the CLOB data type conversion, giving the error "ORA-06502: PL/SQL: digital error or value" in the PL/SQL package. If the BLOB size 32K > it will give another error works great my procedure.

    For example, I enclose my code here.

    function get_base64 (p_blob_in in blob) return clob is

    CLOB v_clob;

    CLOB v_result;

    whole v_offset;

    v_chunk_size PLS_INTEGER: = 12288;

    v_buffer_varchar varchar2 (32767).

    v_buffer_raw raw (32767).

    Start

    fnd_file.put_line (fnd_file.log, 'here');

    If p_blob_in is null then

    Returns a null value.

    end if;

    DBMS_LOB.CREATETEMPORARY (v_clob, true);

    fnd_file.put_line (fnd_file.log, 'here1');

    v_offset: = 1;

    fnd_file.put_line (fnd_file.log, 'Loop value'-| ceil (DBMS_LOB.) GetLength (p_blob_in) / v_chunk_size));

    because me in 1... ceil (DBMS_LOB. GetLength (p_blob_in) / v_chunk_size) loop

    DBMS_LOB. Read (p_blob_in, v_chunk_size, v_offset, v_buffer_raw);

    v_buffer_raw: = utl_encode.base64_encode (v_buffer_raw);

    v_buffer_varchar: = utl_raw.cast_to_varchar2 (v_buffer_raw);

    DBMS_LOB. WriteAppend (v_clob, length (v_buffer_varchar), v_buffer_varchar);

    v_offset: = v_offset + v_chunk_size;

    end loop;

    fnd_file.put_line (fnd_file.log, 'Out of the loop');

    v_result: = v_clob;

    fnd_file.put_line (fnd_file.log, 'V_result length' - |) DBMS_LOB. GetLength (v_result));

    fnd_file.put_line (fnd_file.log, 'V_result' - | v_result);

    DBMS_LOB.freeTemporary (v_clob);

    Return v_result;

    exception

    while others then

    fnd_file.put_line (fnd_file.log, 'Error based on the encode_base64' - |) SQLERRM);

    Returns a null value.

    end;

    In my main program I call this function as below:

    Main proceedings...

    l_return_clob CLOB.

    Begin

    ....

    l_return_clob: = get_base64 (p_blob_in);

    -In returning it gives error - ORA-06502: PL/SQL: digital error or value

    end;

    Then, please mark the thread ANSWERED.

  • Error ORA-06502

    Request Express 4.1.1.00.23 on database of Oracle 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit - embedded Installation

    I have a dynamic action (instruction) that sets out a numeric field (the rating are digital in the database and objects digital apex page too)
    I want to just this value to be stored in a numeric value.


    declare
    number of l_return;
    Start
    l_return: = nvl(:P7_CURRENT_BALANCE_1,0);
    Return l_return;
    end;


    The statement l_return: = nvl(:P7_CURRENT_BALANCE_1,0); gives the error Ora-06502

    Help, please

    DJ

    Following what fac586 said, if you have specified a format for the P7_CURRENT_BALANCE_1 element mask, then you must consider that too when the conversion of number.

    Kind regards

  • Process apex Pl/SQL error: ORA-06502: PL/SQL: digital error or value: specified incorrect LOB Locator

    Apex 4.2

    I searched through the forums of the research about this error, but I do not understand what to do from here. I am writing a process that sends an e-mail when a value of the claim is made (or on a button click). Procedure is as follows:

    DECLARE
       l_body        clob;
       l_body_html   clob;
       l_subject    varchar2(100);
    
    BEGIN
      
    l_body := empty_clob();
    l_body_html := empty_clob();
    
    
    IF V('REQUEST') in ('SAVE_ME') AND :P32_PARENT_UPDATED_FL IS NOT NULL THEN
       l_subject :=  'Survey Job Request Updated'||utl_tcp.crlf||utl_tcp.crlf;
       l_body := 'Update'||utl_tcp.crlf;
    
       l_body_html := '<html>
          <head>
             <style type = "text/css">
                 /* Can add style attributes later */
             </style>
          </head>
          <body>'||utl_tcp.crlf;
       l_body_html := l_body_html ||'Survey Job Request has been updated.<br /><br />'||utl_tcp.crlf;
       l_body_html := l_body_html ||'Title: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_TITLE||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Request Category : '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_REQUEST_CATEGORY||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Update Date: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_UPDATE_DATE||utl_tcp.crlf;
       l_body_html := l_body_html ||'<br />Updated By: '||utl_tcp.crlf;
       l_body_html := l_body_html ||:P32_LAST_EDITED_BY_USERID||utl_tcp.crlf;
       l_body_html := l_body_html ||'</body></html>';
    
    
    
    
    
    END IF;
    
    :P32_CANCELLATION_REASON := l_body_html;
    
    apex_mail.send(
       p_to             =>  '[email protected]',
       p_from           =>  '[email protected]',
       p_body           =>  l_body_html,
       p_body_html      =>  l_body_html,
       p_subj           =>  l_subject);
    
    END;
    
    
    
    
    
    
    
    
    
    

    I added two lines to the code (lines 08 and 09) and when I run my program, I now get the error:

    • ORA-21560: 3 argument is null, invalid or out of range

    Without these two lines, I received the error:

    ORA-06502: PL/SQL: digital error or value: specified incorrect LOB Locator

    I'm not quite sure what is wrong or what I can change. There seems to be right, and in fact, it worked before. I have no idea why this error keeps popping up. Any help on that would be great. Thanks in advance.

    Hello

    NewApexCoder wrote:

    Hmmm... good point. I think that apex_mail.send must be called inside the IF block. But in the future, I added several conditional statements, won't I need to include the apex_mail.send function in each IF block? But at the same time, there is the case that if no conditional instructions are met? Tests, when none of the conditions are true (when I had a second IF block in the code), an email would not be defined, which is correct. Could that be causing a problem however. If the IF block is not filled could he always try to send an email about anything or the l_body_html and l_subject fields have in them the garbage that causing ORA error?

    If the call to the procedure of sending (it is a procedure, and not a function) many times is necessary or useful depends on exactly what you're trying to do.

    For example, you can write to Santa for

    • Submit a wish list
    • Change of address
    • Contradiction with your boss, who can you tell Santa you were mean

    or any combination of these grounds.  If you want to send a simple email whenever any of the conditions are met (and not send a when none are met), then you could do something like this:

    DECLARE

    need_to_send BOOLEAN: = FALSE;

    ...

    BEGIN

    ...

    IF wish_list IS NOT NULL

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF old_addresss <> new_address

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF boss_is_a_big_fat_liar

    THEN

    l_body: = l_body | ...

    need_to_send: = TRUE;

    END IF;

    IF need_to_send

    SO - It's the only call to send

    apex_mail. Send...

    In any case, the error message ' ORA-21560: argument 3 sucks...» "is pretty clear: If you have not given a value to everything you're passing as p_body, then you'd better call the procedure.

  • Workflow PO error "ORA-06502: PL/SQL: digital error or value."

    Hi guys,.


    Column MAIL_STATUS of the WF_NOTIFICATIONS ERROR value



    SQL > select ERROR_MESSAGE in wf_item_activity_statuses_v WHERE NOTIFICATION_ID = 1320203



    ERROR_MESSAGE

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

    [WF_ERROR] ERROR_MESSAGE = 3835: error '-6502 - ORA-06502: PL/SQL: numeric or earned

    e error: form of associative array is not compatible with enco session settings

    untered during execution of the function Generate ' WF_XML. Generate 'event' oracl

    e.apps.WF.notification.Send'. ERROR_STACK =

    PO_REQAPPROVAL_LAUNCH. POREQ_SELECTOR (POAPPRV, TEST_CTX, 10150-25246)

    Wf_Engine_Util.Function_Call (PO_REQAPPROVAL_LAUNCH. POREQ_SELECTOR, POAPPRV, 1015

    0-25246, TEST_CTX)

    Wf_Engine_Util.Execute_Selector_Function (POAPPRV, TEST_CTX, 10150-25246)

    Wf_Engine_Util.Function_Call (PO_REQAPPROVAL_LAUNCH. POREQ_SELECTOR, POAPPRV, 1015

    0-25246, TEST_CTX)

    Wf_Engine_Util.Execute_Selector_Function (POAPPRV, TEST_CTX, 10150-25246)

    Wf_Engine.CB (TESTCTX, POAPPRV:10150 - 25246:208270, :::))

    Wf_Engine.oldCB (TESTCTX, POAPPRV:10150 - 25246:208270, :::))

    WF_MAIL. SetContext (1320203)

    WF_XML. GenerateDoc (oracle.apps.wf.notification.send, 1320203)

    WF_XML. Generate (oracle.apps.wf.notification.send, 1320203)

    WF_XML. Generate (oracle.apps.wf.notification.send, 1320203)

    Wf_Event.setMessage (oracle.apps.wf.notification.send, 1320203, WF_XML.) Generate)

    Wf_Event.dispatch_internal)

    1 selected line.





    OS: RHEL5.7

    Database: 10.2.0.3

    Applications: R12.0.4

    Please help me to solve this error.

    Salvation;

    Please see the bulletin:

    Approval Confirmation e-mail is not received by trainer - ERROR_MESSAGE = 3835 ORA-20001 ORA-6502 [ID 465146.1]

    Respect of

    HELIOS

  • Problem with error ORA-06502: PL/SQL: numeric string or the error value

    Hello

    I use a loop for the coil just out of data using 'dbms_output.put_line' and I get this error after a few records. I've been using and it happens at a different interval. He would have to do with the length of the question, I am trying to spool? Thank you.

    ORA-06502: PL/SQL: numeric string or the error value

    SD wrote:
    Hello

    I use a loop for the coil just out of data using 'dbms_output.put_line' and I get this error after a few records. I've been using and it happens at a different interval. He would have to do with the length of the question, I am trying to spool? Thank you.

    ORA-06502: PL/SQL: numeric string or the error value

    Yes, it's a mistake to dependent data.

    Manage: SD
    Status level: Beginner
    Join date: November 21, 2001
    Messages total: 289
    Total Questions: 189 (183 pending)

    Why wasting you time here when you get rarely answers your questions?

  • Error ORA-06502 in DBMS_LOB. READ

    I am generating XML by use of DBMS_XMLGEN.getxml pakage and exit I store in a CLOB. Then, I read the value of the CLOB object by use of DBMS_LOB. READ for each count 32767 data. Here is my code. My LOB total length is 450755. In the loop, when it reached 393205, I get the error below.

    ORA-06502: PL/SQL: digital or value error: character string buffer too small
    DECLARE
        v_xml_clob     CLOB := EMPTY_CLOB();
    
        v_lob_length   INTEGER;
        v_index        INTEGER := 1;
        v_read_cnt     INTEGER;
        v_chunk        VARCHAR2(32767);
    
    BEGIN
        o_ret_code := 0;
    
        SELECT  DBMS_XMLGEN.getxml ('SELECT OBJECT_NAME, OBJECT_TYPE FROM DBS_OBJECTS')
            INTO    v_xml_clob
            FROM    DUAL;
    
        v_lob_length  := NVL(DBMS_LOB.getlength(v_xml_clob),0);
        DBMS_OUTPUT.PUT_LINE('LOB Length : '||v_lob_length);
    
        v_index       := 1;
    
        -- Start to read the data from CLOB object
        WHILE v_index <= v_lob_length
        LOOP
            DBMS_OUTPUT.PUT_LINE('IN');
            v_read_cnt   := 32767;
            DBMS_LOB.read (
                        v_xml_clob,
                        v_read_cnt,
                        v_index,
                        v_chunk
                        );
    
            -- USe fnd_file.put function to place the XML data into concurrent view output
            fnd_file.put(fnd_file.output,v_chunk);
            DBMS_OUTPUT.PUT_LINE('v_index Start: '||v_index);
            v_index := v_index + v_read_cnt;
            DBMS_OUTPUT.PUT_LINE('v_index End: '||v_index);
        END LOOP;
    
    EXCEPTION
    WHEN OTHERS
    THEN
        ROLLBACK;
        NULL;
    END;
    Please let me know what can be the problem

    Thank you

    Hello

    I'm partly guessing here. You read from a CLOB, which means that you read 32,767 characters, not bytes.

    These 32,767 characters you load into a (probably) 32767 bytes length varchar2 variable. If you use a multibyte character set you could get more than 32767 bytes in a reading.

    Concerning
    Peter

  • Lexical parameter error: ORA-06502: PL/SQL: digital error or value

    Hello

    I am facing a problem with my lexical parameter. I have a requirement where I have to pass a string to the db column. I think that I am facing problem with quotes. Please find the sample code below:

    : lp_trans_type: = "" AND (RSV.transaction_type <>"F" OR RSV.transaction_type is NULL);"

    The report compiles suceccfully but when run from window SRS that generates an error

    REP-1401: "afterpform": PL/SQL unrecoverable error occurred.
    ORA-06502: PL/SQL: digital error or value

    Please help me how to set up the string within a string. Or please suggest a possible solution.

    Thanks in advace.

    Kind regards
    Prakash

    Check the data type and length of lp_trans_type.

    This is not the error, but will not work your query:

    RSV.transaction_type "F"

    You forgot the =.

    Published by: InoL on July 20, 2010 12:57

  • Error (ORA-06502) when addinng a LOV-more element in a table

    I created the collection. Then, I created in a table, this collection from.
    In the form of tables, I created 3 elements, based on the "list of (named LOV) selection.
    It is ok.

    LOV:
    Select SN_ZVET display_value, KOD_ZVET return_value
    of PLENKA
    order by 1


    Table (PLENKA):

    KOD_ZVET NUMBER (3.0)
    FN_ZVET VARCHAR2 (50 BYTE)
    SN_ZVET VARCHAR2 (25 BYTE)
    FIRMA_IZGOTOV VARCHAR2 (50 BYTE)
    SETTING VARCHAR2 (30 BYTE)
    KOD_ED_IZM NUMBER (2.0)
    NAZ_ZVET NUMBER (6.3)
    KOD_PVX NUMBER (2.0)
    KOD_PR NUMBER (1.0)


    When I added 4th element, based on the same LOV, I get error:

    error report:
    ORA-06502: PL/SQL: digital or value error: character string buffer too small

    What evil? Why I created 3 identical items and could not created one more element (the same)?

    Alex - selection lists can generate a lot of HTML code. If it exceeds 4K for all a "column in your query, or if the cumulative for all 'a line' size exceeds 32K, you will get this error. How many items in each LOV?

    Scott

  • Binds a parameter in WHERE clause throws error (ORA-00920)

    Good day to you all.  Hope everything goes well.

    Ok.  Here's the deal.  I am trying to bind a parameter in a where clause clause, but I continue to get the error invalid relational operator (ORA-00920).  It seems as if Oracle is looking for a correct syntax before you pass the variable (bind value).

    For example:

    SELECT LAST_NAME, FIRST_NAME FROM MYTABLE
    WHERE OBSOLETE IS NULL
    and :P_MY_BIND_VALUE
    

    What is the right way to get around this?

    Thanks for all your help!

    AquaNX4 wrote:

    Thank you for the reply.

    I use simple SQL.  The variable binding will be used in the APEX and an item that is based on a LOV with where condition stored there.  Make sense?

    Logic you want... doesn't have a sense of how you try to do.

    Bind variables are for the passage of the 'values' to a question, only not for the passage of the SQL statements or sections of objects such as the names of tables etc.  It is not a substitution string such as the use of '&' in SQL * more and should not be treated this way.

    If you could provide more details on exactly what you're trying to do (some data would help) then perhaps we could tell how best to go about this.

  • EXECUTE IMMEDIATE throwing error ORA-00933

    Hello

    I am trying to build a PL/SQL code that implements the EXECUTE IMMEDIATE statement in a cursor for EXECUTE IMMEDIATE does not support queries for multiple records. Recursively, I want to place a single record in a variable using the INTO clause, USING a defined value. But my code keeps throwing an error that the SQL command is not properly cancel online 15; which is the line of the EXECUTE IMMEDIATE statement.

    I tried to generate the SQL statement to the console to review in the effort to find the problem, but the result looks OK. I also made other variations of what I want to accomplish, but not to make any where. Could someone maybe help identify what I am doing wrong?

    DECLARE
    TBL VARCHAR2 (50);
    Col VARCHAR2 (50);
    sqlcmd VARCHAR (300);
    field_value VARCHAR2 (20): = 'MEXICO ';
    match_count NUMBER;
    CURSOR c1 IS SELECT TABLE_NAME, COLUMN_NAME FROM USER_TAB_COLS;

    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO tbl, col; -extract 2 columns in variables
    OUTPUT WHEN c1% NOTFOUND;
    Sqlcmd: = 'SELECT COUNT (*) FROM' | TBL | ' WHERE ' | Col |' = ": col" ';
    EXECUTE IMMEDIATE sqlcmd IN match_count USING field_value.
    DBMS_OUTPUT. Put_line (sqlcmd);
    END LOOP;
    CLOSE c1;
    END;
    /

    I am more proficient with SQL PL/SQL, but try to understand the semantics of the language.

    Thanks for any help.

    user10251149 wrote:
    I'm in class implementing the recommended code you posted Solomon and he is not sinning through out, but I'm sitting at a cursor blinking on the console.

    I noticed that you have placed the variables, this time taking the table_name and column_name inside quotes values, it is a possible workaround for the issue or is there another method I could use to get the same results?

    If you have N tables with columns of M your code will run statements N * Mr. If the tables are large, it might take some time. Now how about double quotes. You may receive error on the basis I assumed you have names of tables/columns composed of several words. You must include these names in quotation marks. Discover Oracle naming rules.

    SY.

  • ORA-06502 error digital or value of PL/SQL.

    Hi experts,

    Oracle Apex 4.2, 11g database, using windows 7.

    I created a form and trying to create automatically generated # (sequence of not) with logic and SQL.

    My requirement is to generate the good good exercise only and exercise begin from 01 July and ends 30 June each year. This means if the 07/01/2015 start it will create a new voucher No.

    The table name is GL_PV and the columns are:

    Number of PV_No

    Date of PV_Date

    Number of CC_code

    number amount

    Remarks varchar2 (100)

    What I did: -.

    Created a process to submit before the calculations and validations.

    Code are

    IF TO_NUMBER (TO_CHAR (: P15_pv_date, 'MM')) < = 6 THEN

    SELECT MAX (to_number (nvl(pv_no,0))) + 1

    IN: P15_pv_no

    OF GL_PV

    WHERE pv_date

    BETWEEN

    TO_DATE ('01 - JUL' |) ' -'|| (TO_NUMBER (TO_CHAR(:P15_pv_date,'YYYY'))-1), 'DD-MON-YY')

    AND

    TO_DATE (30 - JUN'|) ' -'|| To_char(:P15_pv_date,'YYYY'), 'DD-mon-YY')

    and cc_code =: P15_cc_code;

    ON THE OTHER

    SELECT MAX (to_number (nvl(pv_no,0))) + 1

    IN: P15_pv_no

    OF GL_PV

    WHERE pv_date

    BETWEEN

    TO_DATE ('01 - JUL' |) ' -'|| To_char(:P15_pv_date,'YYYY'), 'DD-mon-YY')

    AND

    TO_DATE (30 - JUN'|) ' -'|| (TO_NUMBER (TO_CHAR(:P15_pv_date,'YYYY')) + 1), 'DD-MON-YY')

    and cc_code =: P15_cc_code;

    END IF;

    If: P15_pv_no is null then

    : P15_pv_no: = 1;

    end if;

    and press the button when Conditions = Generate_Button

    I have the default assign to pv_date = sysdate, when I launched the point Pv_date form shows the current date and I click on Generate_button now show error.

    Error ORA-06502 PL/SQL digital or value. Conversation number character.

    One last thing, I checked this code already in TOAD, type I assigned as DATE-value = 10/11/2014 (today's date) works fine without error.

    Please guide what this evil is stated.

    Best regards

    : P15_pv_date is probably not a date but a varchar2 in Apex

    Try this

    NVL SELECT (MAX (to_number (nvl(pv_no,0))) + 1, 1)

    IN: P15_pv_no

    OF GL_PV

    WHERE pv_date

    BETWEEN to_date (' 01-07-' |) (extract (year of to_date (: P15_pv_date, "dd-mm-yyyy")) + case when extracted (months to_date (: P15_pv_date, "dd-mm-yyyy")))<= 6="" then="" -1="" else="" 0="" end="" ),="" 'dd-mm-yyyy'="">

    AND to_date (30 - 06-' |) (extract (year of to_date (: P15_pv_date, "dd-mm-yyyy")) + case when extracted (months to_date (: P15_pv_date, "dd-mm-yyyy")))<= 6="" then="" 0="" else="" 1="" end="" ),="" 'dd-mm-yyyy'="">

    and cc_code =: P15_cc_code;

  • Getting Ora-06502: PL/SQL of Numeric or value error.

    Hello

    I m getting the following error when a calculation for form fields.

    ""Server Ajax Call returned error Ora-06502: PL/SQL digital error or value ".

    I m using the dynamic action to calculate my value fields display. Here is the code of my DA.

    (Required value) event: change

    Selection type (required): product (s)

    Article (s) (required): P141_PROP_COST, P141_DOWNPAY_AMT, P141_PREM_PERC, P141_DOWNPAY_PERC, P141_PREM_AMT



    Begin

    : P141_TOTAL_SELL_PRICE: =: P141_DOWNPAY_AMT +: P141_PREM_AMT;

    : P141_COMM_AMT: =: P141_TOTAL_SELL_PRICE*.02;

    : P141_TOTAL_SELL_PRICE_FEE: =: P141_TOTAL_SELL_PRICE +: P141_TRANSFER_COST +: P141_COMM_AMt;

    : P141_INST_REM_AMT: =: P141_PROP_COST-: P141_DOWNPAY_AMT;

    End;

    Page point to presented: P141_PROP_COST, P141_DOWNPAY_AMT, P141_PREM_AMT, P141_TRANSFER_COST

    Return point page: P141_TOTAL_SELL_PRICE, P141_COMM_AMT, P141_TOTAL_SELL_PRICE_FEE, P141_INST_REM_AMT

    I m using another DA for the calculation and validation of my form fields rest. Here is the code:

    {$("#P141_DOWNPAY_PERC").change (function ()}

    var x = ($("#P141_DOWNPAY_PERC").val () / 100) * $("#P141_PROP_COST").val ();

    $("#P141_DOWNPAY_AMT").val (x);

    });

    {$("#P141_DOWNPAY_AMT").change (function ()}

    If ($("#P141_DOWNPAY_AMT").val () > $("#P141_PROP_COST").val ())

    {

    Alert ("section may be no greater than the basic price");

    }

    on the other

    {var y = ($("#P141_DOWNPAY_AMT").val () / ($("#P141_PROP_COST").val ())) * 100;}

    y = Math.Round (y);

    $("#P141_DOWNPAY_PERC").val (y) ;}

    });

    {$("#P141_PREM_PERC").change (function ()}

    var x = ($("#P141_PREM_PERC").val () / 100) * $("#P141_PROP_COST").val ();

    $("#P141_PREM_AMT").val (x);

    });

    {$("#P141_PREM_AMT").change (function ()}

    If ($("#P141_PREM_AMT").val () > $("#P141_PROP_COST").val ())

    {

    Alert ("section may be no greater than the basic price");

    }

    on the other

    {var z = ($("#P141_PREM_AMT").val () / ($("#P141_PROP_COST").val ())) * 100;}

    z = Math.Round (z);

    $("#P141_PREM_PERC").val (z) ;}

    });

    Any help.

    Concerning

    Pa

    'Problems of implicit conversion' comes to mind when I see this:

    : P141_TOTAL_SELL_PRICE: =: P141_DOWNPAY_AMT +: P141_PREM_AMT;

    This is similar to the problems I've seen when using the default formats for the Date Picker Item Types.

    I will add in some APEX_DEBUG. MESSAGE() lines to check what are the string values.

    (remember, all bind variables are of type VARCHAR2)

    You should maybe explicitly to convert strings to numbers using TO_NUMBER() and include the appropriate format.

    (a bit like you have to do with the conversion of strings to dates.)

    My $0.02 worth

    MK

  • ORA-06502: PL/SQL: digital error: error in the conversion of char to number

    Hello world.

    I have a strange problem here. I'll try to explain better. I work with APEX 4.2 and of Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production.

    Here are my parameters NLS_SESSION_PARAMETER and NLS_DATABASE_PARAMETER: NLS_NUMERIC_CHARACTERS,.


    I have a table with a lot of body numbers, and when I imported a MS Access application data, all fields were imported with the comma as decimal separator.


    Now, I have a form with several fields of number and when I leave a numeric field, a body of numbers of amount total is calculated and automatically filled with a bit of javascript.


    Now the problem: calculating fields (sum) succeeds only when I use the decimal as the delimiter. If I use the comma, I get a NaN value in the total amount field. I managed to convert all commas in points with javascript, so the total amount is calculated.

    When I try to save the record, I get the error: ORA-06502: PL/SQL: digital error: error in the conversion of char to number because I'm trying to save the separator point in my number fields.


    I tried to use REPLACE function to replace the. by one, before winning but does not solve the problem.


    This sounds familiar to anyone?


    Thanks in advance.



    OK, the problem is solved people.

    Somehow, the registration procedure had an influence on another calculation of my form and the error came from this process. So I put a to_number and replace stated in the calculation and all records very well and it shows my total.

  • UTL_SMTP. Data ORA-06502: PL/SQL: digital error or value

    Hello

    I use utl_smtp to send an HTML email, I'm passing in a clob to utl_smtp.data (), works very well for some emails small relativley is no bigger nut, which return the following error

    ORA-06502: PL/SQL: digital error or value

    Does anyone know what the limitation is the size if the parameter of body to utl_smtp.data (), and is there another way to send large mails?

    Thank you...

    refer to this

    http://www.Oracle-base.com/articles/Misc/email-from-Oracle-plsql.php

    http://asktom.Oracle.com/pls/asktom/f?p=100:11:3366784949717501:P11_QUESTION_ID:1739411218448

Maybe you are looking for