Gets the cursor not valid error on line 6?

create or replace procedure cust_pack (p_dept_id in number, p_emp_id number) is
number of v_credit_limit: = 2000;
cursor cur_cust (p_dept_id in number, p_emp_id number) is
Select first_name, last_name, salary from employee where department_id = p_dept_id and employee_id = p_emp_id;
Start
for cust_record in cur_cust (50,188)
loop
dbms_output.put_line (' name ='| cust_record.last_name |', Sal ='| cust_record.salary);
close cur_cust;
end loop;
end;
/
Please rectify the problem...

Please rectify the problem...

Remove this

close cur_cust;

You do not close the cursor yourself in a cursor for loop and especially not while you use it.

http://docs.Oracle.com/CD/B19306_01/AppDev.102/b14261/loop_statement.htm#LNPLS01328

Concerning
Peter

Tags: Database

Similar Questions

  • get the rowid not valid error when using for update

    Hi gurus,

    I'm practicing the updates in the sliders. Layout error invalid ROWID executing script below. Please help me.

    create the table dup_employees in select * from employees;

    declare

    cursor c1 is select *.

    of e dup_employees

    where e.COMMISSION_PCT is null

    update the COMMISSION_PCT wait 10;

    SheikYerbouti c1% rowtype;

    Start

    Open c1;

    loop

    Fetch c1 into SheikYerbouti.

    Update e dup_employees

    Set e.COMMISSION_PCT = 0.1

    the location being c1;

    When exit c1% notfound;

    end loop;

    end;

    /

    declare

    *

    ERROR on line 1:

    ORA-01410: invalid ROWID

    ORA-06512: at line 11 level

    See you soon,.

    Suri

    Fetch c1 into SheikYerbouti.

    Update e dup_employees

    Set e.COMMISSION_PCT = 0.1

    where rowid = emp_rec.rid;

    When exit c1% notfound;

    Care to guess what exception you will get when the UPDATE statement is performed when EXTRACTION returns no line?

    Your code has the same default Moazzam already mentioned.

  • ORA-01001: cursor not valid error

    Cursor UNA is throwing this error... ORA-01001: cursor not valid error
    Can you please please help me find the problem.

    CREATE OR REPLACE TRIGGER LOT_DBA.CR_FIELD_CUT_AFTER_INSERT
    AFTER INSERT
    ON LOT_DBA.CR_FIELD_CUT_STAGING
    REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    DECLARE
    
      stmt_var     VARCHAR2(50);
      err_msg      VARCHAR2(250);
      conn         UTL_SMTP.CONNECTION;
      crlf         VARCHAR2(2)   := CHR(13) || CHR(10);
      mesg         VARCHAR2(2000);
      --cc_recipient VARCHAR2(50) DEFAULT '[email protected]';
      cc_recipient VARCHAR2(50) DEFAULT '[email protected]';--6/24
      msg_body     VARCHAR2(200) := 'Please check CR_FIELD_ERROR Table for Details. ';
      systime      DATE;
      V_CCI        VARCHAR2(50) DEFAULT '[email protected]';-- 07/27/2010 Added Contractor Name for CT 2010-4071
    
      CURSOR CUT (pl_no   VARCHAR2) IS
             SELECT layout_no
               FROM CR_FIELD_CUT_SHEET
              WHERE LAYOUT_NO = pl_no;
    
      cut_cur CUT%ROWTYPE;
    
      CURSOR LOT (pl_no   VARCHAR2) IS
             SELECT layout_no,contractor_name   -- 07/27/2010 Added Contractor Name for CT 2010-4071
               FROM CR_LAYOUT_TRACKING
              WHERE LAYOUT_NO = pl_no;
    
      lot_cur LOT%ROWTYPE;
    
      CURSOR DET (pl_no   VARCHAR2)   IS
             SELECT layout_no, cut_no
               FROM CR_FIELD_CUT_DETAIL
              WHERE LAYOUT_NO = pl_no;
    
      det_cur DET%ROWTYPE;
    
      CURSOR DTN (pl_no   VARCHAR2,
                  pl_ct   NUMBER,
                  pl_nt   VARCHAR2)   IS
             SELECT layout_no, cut_no
               FROM CR_FIELD_CUT_DETAIL
              WHERE LAYOUT_NO = pl_no
                AND CUT_NO    = pl_ct
                AND NVL(NOTE,'XXXXXXXXX') = pl_nt;
    
      dtn_cur DET%ROWTYPE;
    
      CURSOR ITM (pl_no   VARCHAR2)   IS
             SELECT layout_no, cut_no, seq_no
               FROM CR_FIELD_CUT_ITEM
              WHERE LAYOUT_NO = pl_no;
    
      itm_cur ITM%ROWTYPE;
    
      CURSOR STAT (pl_no CHAR) IS
         SELECT MAX(create_date) cdate
           FROM CR_FIELD_LAYOUT_STATUS
          WHERE LAYOUT_NO = pl_no
            AND STATUS    = 'AWAITING_COMPLETION';
    
      stat_cur STAT%ROWTYPE;
    
        CURSOR UNA (pl_no VARCHAR2,
                  pa_no VARCHAR2) IS
             SELECT layout_no, account_no
               FROM CR_ACCOUNTS
              WHERE LAYOUT_NO  = pl_no
                AND ACCOUNT_NO = pa_no;--added for cha 2011-3172 6/14/2011
    
         una_cur  UNA%ROWTYPE;--added for cha 2011-3172 6/14/2011
    
     BEGIN
    
      systime := SYSDATE;
    
      /* If the record being inserted in the staging table does not
         exist in the core table, the record is inserted in the core
         table. However, if it exists, then the record in the core
         table is deleted and then inserted. */
    
      /* Delete items, then cut details, and finally cut sheet
         respectively so as not to raise the foreign key constraint */
    
      ---------------
      -- Cut Items --
      ---------------
      OPEN ITM(:NEW.LAYOUT_NO);
    
      FETCH ITM
       INTO itm_cur;
    
      IF ITM%FOUND THEN
    
         DELETE FROM CR_FIELD_CUT_ITEM
               WHERE LAYOUT_NO = :NEW.LAYOUT_NO
                 AND NVL(NOTE,'XXXXXXXXX')     <> :NEW.NOTE;
    
         stmt_var := 'Delete Cut Items';
    
      END IF;
    
      -----------------
      -- Cut Details --
      -----------------
      OPEN DET(:NEW.LAYOUT_NO);
    
      FETCH DET
       INTO det_cur;
    
      IF DET%FOUND THEN
    
         DELETE FROM CR_FIELD_CUT_DETAIL
               WHERE LAYOUT_NO = :NEW.LAYOUT_NO
                 AND NVL(NOTE,'XXXXXXXXX')  <> :NEW.NOTE;
    
         stmt_var := 'Delete Cut Detail';
    
      END IF;
    
      ---------------
      -- Cut Sheet --
      ---------------
      OPEN CUT(:NEW.LAYOUT_NO);
    
      FETCH CUT
       INTO cut_cur;
    
      IF CUT%FOUND THEN
    
    
         DELETE FROM CR_FIELD_CUT_SHEET
         WHERE LAYOUT_NO = :NEW.LAYOUT_NO ;
    
         stmt_var := 'Delete Cut Sheet';
    
      END IF;
    
    
      ---------------
      -- Layout Tracking --  Moved it from below for Change Track 2010-4071  (OpenedByContractor).
      ---------------
    
    
     OPEN LOT(:NEW.LAYOUT_NO);
    
      FETCH LOT
       INTO lot_cur;
    
      /* This updates the table CR_LAYOUT_TRACKING's columns
         House Number into the new value set by the staging table. */
    
    
      IF LOT%FOUND THEN
    
         UPDATE CR_LAYOUT_TRACKING
            SET HOUSE_NUMBER  = :NEW.HOUSE_NUMBER
          WHERE LAYOUT_NO     = lot_cur.LAYOUT_NO;
    
         stmt_var := 'Update Layout Tracking';
    
      END IF;
    
    
    
    
      /* Insert record from staging table to Cut Sheet Table
         the complete_status is set to No. ('N')*/
    
    BEGIN
    
      INSERT INTO CR_FIELD_CUT_SHEET
                 (LAYOUT_NO              , PERMIT_TYPE            ,
                  SAWCUT                 , PLATED                 ,
                  COUNTY                 , STATE                  ,
                  WEST_MAP_ID            , OPENED_BY_CONTR        ,
                  PROTECTED_ST           , COMPASS_POINT          ,
                  STREET_NAME            , ARTERY_TYPE            ,
                  LEFT_CROSS_STREET      , RIGHT_CROSS_STREET     ,
                  SPECIFIC_LOC           , EMER_PERMIT_NO         ,
                  EMER_ISSUE_DATE        , SERVICE_TYPE           ,
                  PARKING_RESTR          , RESTORE_REQD           ,
                  CREATE_DATE            , CREATE_BY              ,
                  NOTE                   , COMPLETE_STATUS        ,
                  EDIT_FINAL)
           VALUES
                 (:NEW.LAYOUT_NO              , :NEW.PERMIT_TYPE         ,
                  :NEW.SAWCUT                 , :NEW.PLATED              ,
                  :NEW.COUNTY                 , :NEW.STATE               ,
                  :NEW.WEST_MAP_ID            , lot_cur.contractor_name    , -- Get contractor Name from cr_layout_tracking
                  :NEW.PROTECTED_ST           , :NEW.COMPASS_POINT       ,
                  :NEW.STREET_NAME            , :NEW.ARTERY_TYPE         ,
                  :NEW.LEFT_CROSS_STREET      , :NEW.RIGHT_CROSS_STREET  ,
                  :NEW.SPECIFIC_LOC           , :NEW.EMER_PERMIT_NO      ,
                  :NEW.EMER_ISSUE_DATE        , :NEW.SERVICE_TYPE        ,
                  :NEW.PARKING_RESTR          , :NEW.RESTORE_REQD        ,
                   systime                    , :NEW.CREATE_BY           ,
                  :NEW.NOTE                   , 'N'                      ,
                  :NEW.STATUS                 );
    
    
         stmt_var := 'Insert Cut Sheet';
    
    
      EXCEPTION
       WHEN DUP_VAL_ON_INDEX THEN
    
             NULL;
    
      END;
    
      ---------------------
      -- Cut Details New --
      ---------------------
      OPEN DTN(:NEW.LAYOUT_NO, :NEW.CUT_NO, :NEW.NOTE);
    
      FETCH DTN
       INTO dtn_cur;
    
      IF DTN%NOTFOUND THEN
      /** start --added for cha 2011-3172 6/14/2011 **/
    
          OPEN UNA(:NEW.LAYOUT_NO, :NEW.ACCOUNT_NO);
    
          FETCH UNA
           INTO una_cur;
    
          ---------------------------------
          -- CAPTURE UNPROCESSED ACCOUNT --
          ---------------------------------
    
          IF UNA%NOTFOUND THEN
    
            INSERT INTO UNPROCESSED_ACCOUNTS
                        (LAYOUT_NO         , EMPL_NO              ,
                        ACCOUNT_NO         , LOG_DATE             ,
                        COMPLETE_TODAY     , NEW_ACCOUNT_NO       ,
                        STATUS             , CREATED_BY           ,
                        MODIFIED_BY        , CUT_NO               ,
                        CREATE_DATE        , MODIFIED_DATE        )
            VALUES
                        (:NEW.LAYOUT_NO    , NULL                 ,
                        :NEW.ACCOUNT_NO    , NULL                 ,
                        NULL               , NULL                 ,
                        :NEW.STATUS        , :NEW.CREATE_BY       ,
                        :NEW.CREATE_BY     , :NEW.CUT_NO          ,
                        :NEW.CREATE_DATE   , :NEW.CREATE_DATE   );
           stmt_var := 'Insert Unprocessed Accounts';
    
           SELECT EMAIL INTO V_CCI FROM C_LOV_CCI WHERE UPPER(NAME) = (SELECT UPPER(CCI)
           FROM CR_LAYOUT_TRACKING WHERE layout_no = :NEW.LAYOUT_NO);
    
           IF SQL%NOTFOUND THEN
              V_CCI := '[email protected]';
           END IF;
    
           V_CCI := '[email protected]';--6/24
    
           conn:= utl_smtp.open_connection( 'EXCHSMTP.coned.com');
    
           utl_smtp.helo(conn, 'coned.com');
           utl_smtp.mail(conn, '[email protected]' );
           utl_smtp.rcpt(conn, '[email protected]' );
           utl_smtp.rcpt(conn,  V_CCI);
           mesg:= 'From: Cut Staging After Insert <[email protected]>' || crlf ||
                  'Subject: Unprocessed Account (Testing)' || crlf ||
                  'To: XYZ <[email protected]>' || crlf ||
                  'Cc: ' || V_CCI || crlf  ;
           mesg:= mesg || '' || crlf || 'Unprocessed account found:  '||' Layout No: '|| :NEW.LAYOUT_NO ||
                          ' , Account No: '|| :NEW.ACCOUNT_NO ||' , Status: '|| :NEW.STATUS ||
                          ' , Created By: '|| :NEW.CREATE_BY ||' , Cut No.: '|| :NEW.CUT_NO ||
                          ' , Create Date: '|| :NEW.CREATE_DATE;
           utl_smtp.data( conn, mesg );
           utl_smtp.quit( conn );
    
           END IF;
          /** end --added for cha 2011-3172 6/14/2011 **/
            INSERT INTO CR_FIELD_CUT_DETAIL
                       (LAYOUT_NO              , CUT_NO                 ,
                        SHALLOW_FACILITIES     , CUT_LENGTH             ,
                        CUT_WIDTH              , CUT_DEPTH              ,
                        BASE_DEPTH             , BASE_MATERIAL          ,
                        SURFACE_DEPTH          , SURFACE_MATERIAL       ,
                        LANE                   , START_POINT            ,
                        LINEAR_START_CUT       , LINEAR_CURB_CUT        ,
                        SHAPE                  , PAVING_REQUIRED        ,
                        OPENED_DATE            , EXCAVATION_DATE        ,
                        BACKFILL_DATE          , BASE_DATE              ,
                        TRENCHING_DATE         , BASE_MAT_REPLACED      ,
                        COMBINED_CUT           , CASTING_DEDUCTION      ,
                        ACCOUNT_NO             , CREATE_DATE            ,
                        CREATE_BY              , NOTE                   ,
                        STATUS                 , REMARK                 ,
                        PERMIT_NO)
                 VALUES
                       (:NEW.LAYOUT_NO              , :NEW.CUT_NO                   ,
                        :NEW.SHALLOW_FACILITIES     , :NEW.CUT_LENGTH               ,
                        :NEW.CUT_WIDTH              , :NEW.CUT_DEPTH                ,
                        :NEW.BASE_DEPTH             , :NEW.BASE_MATERIAL            ,
                        :NEW.SURFACE_DEPTH          , :NEW.SURFACE_MATERIAL         ,
                        :NEW.LANE                   , :NEW.START_POINT              ,
                        :NEW.LINEAR_START_CUT       , :NEW.LINEAR_CURB_CUT          ,
                        :NEW.SHAPE                  , :NEW.PAVING_REQUIRED          ,
                         TRUNC(:NEW.OPENED_DATE)    ,  TRUNC(:NEW.EXCAVATION_DATE)  ,
                         TRUNC(:NEW.BACKFILL_DATE)  ,  TRUNC(:NEW.BASE_DATE)        ,
                         TRUNC(:NEW.TRENCHING_DATE) , :NEW.BASE_MAT_REPLACED        ,
                        :NEW.COMBINED_CUT           , :NEW.CASTING_DEDUCTION        ,
                        :NEW.ACCOUNT_NO             ,  systime                      ,
                        :NEW.CREATE_BY              , :NEW.NOTE                     ,
                        :NEW.STATUS                 , :NEW.REMARK                   ,
                        :NEW.PERMIT_NO);
    
            stmt_var := 'Insert Cut Detail';
    
      END IF;
    
    
      /* Insert record from staging table to Cut Item Table */
    
      INSERT INTO CR_FIELD_CUT_ITEM
                 (LAYOUT_NO      , CUT_NO         ,
                  SEQ_NO         , CODE           ,
                  LENGTH         , WIDTH          ,
                  DEPTH          , DATE_WORKED    ,
                  CREATE_DATE    , CREATE_BY      ,
                  NOTE           , STIP_FACTOR    )
           VALUES
                 (:NEW.LAYOUT_NO      , :NEW.CUT_NO               ,
                  :NEW.SEQ_NO         , :NEW.CODE                 ,
                  :NEW.LENGTH         , :NEW.WIDTH                ,
                  :NEW.DEPTH          ,  TRUNC(:NEW.DATE_WORKED)  ,
                   systime            , :NEW.CREATE_BY            ,
                  :NEW.NOTE           , :NEW.STIP_FACTOR          );
    
      stmt_var := 'Insert Cut Items';
    
     /*  This inserts record from staging to history table. */
    
     BEGIN
    
     INSERT INTO CR_FIELD_CUT_HISTORY
                (LAYOUT_NO              , PERMIT_TYPE            ,
                 PO_NUMBER              , HOUSE_NUMBER           ,
                 SAWCUT                 , PLATED                 ,
                 COUNTY                 , STATE                  ,
                 WEST_MAP_ID            , OPENED_BY_CONTR       ,
                 PROTECTED_ST           , COMPASS_POINT          ,
                 STREET_NAME            , ARTERY_TYPE            ,
                 LEFT_CROSS_STREET      , RIGHT_CROSS_STREET     ,
                 SPECIFIC_LOC           , EMER_PERMIT_NO         ,
                 EMER_ISSUE_DATE        , SERVICE_TYPE           ,
                 PARKING_RESTR          , RESTORE_REQD           ,
                 CUT_NO                 , SHALLOW_FACILITIES     ,
                 CUT_LENGTH             , CUT_WIDTH              ,
                 CUT_DEPTH              , BASE_DEPTH             ,
                 BASE_MATERIAL          , SURFACE_DEPTH          ,
                 SURFACE_MATERIAL       , LANE                   ,
                 START_POINT            , LINEAR_START_CUT       ,
                 LINEAR_CURB_CUT        , SHAPE                  ,
                 PAVING_REQUIRED        , OPENED_DATE            ,
                 EXCAVATION_DATE        , BACKFILL_DATE          ,
                 BASE_DATE              , TRENCHING_DATE         ,
                 BASE_MAT_REPLACED      , COMBINED_CUT           ,
                 CASTING_DEDUCTION      , ACCOUNT_NO             ,
                 SEQ_NO                 , CODE                   ,
                 LENGTH                 , WIDTH                  ,
                 DEPTH                  , DATE_WORKED            ,
                 CREATE_DATE            , CREATE_BY              ,
                 NOTE                   , STATUS                 ,
                 PERMIT_NO              , STIP_FACTOR            )
          VALUES
                (:NEW.LAYOUT_NO                 , :NEW.PERMIT_TYPE             ,
                 :NEW.PO_NUMBER                 , :NEW.HOUSE_NUMBER            ,
                 :NEW.SAWCUT                    , :NEW.PLATED                  ,
                 :NEW.COUNTY                    , :NEW.STATE                   ,
                 :NEW.WEST_MAP_ID               , lot_cur.contractor_name         , -- Get it from LOT Change Track 2010-4071
                 :NEW.PROTECTED_ST              , :NEW.COMPASS_POINT           ,
                 :NEW.STREET_NAME               , :NEW.ARTERY_TYPE             ,
                 :NEW.LEFT_CROSS_STREET         , :NEW.RIGHT_CROSS_STREET      ,
                 :NEW.SPECIFIC_LOC              , :NEW.EMER_PERMIT_NO          ,
                  TRUNC(:NEW.EMER_ISSUE_DATE)   , :NEW.SERVICE_TYPE            ,
                 :NEW.PARKING_RESTR             , :NEW.RESTORE_REQD            ,
                 :NEW.CUT_NO                    , :NEW.SHALLOW_FACILITIES      ,
                 :NEW.CUT_LENGTH                , :NEW.CUT_WIDTH               ,
                 :NEW.CUT_DEPTH                 , :NEW.BASE_DEPTH              ,
                 :NEW.BASE_MATERIAL             , :NEW.SURFACE_DEPTH           ,
                 :NEW.SURFACE_MATERIAL          , :NEW.LANE                    ,
                 :NEW.START_POINT               , :NEW.LINEAR_START_CUT        ,
                 :NEW.LINEAR_CURB_CUT           , :NEW.SHAPE                   ,
                 :NEW.PAVING_REQUIRED           ,  TRUNC(:NEW.OPENED_DATE)     ,
                  TRUNC(:NEW.EXCAVATION_DATE)   ,  TRUNC(:NEW.BACKFILL_DATE)   ,
                  TRUNC(:NEW.BASE_DATE)         ,  TRUNC(:NEW.TRENCHING_DATE)  ,
                 :NEW.BASE_MAT_REPLACED         , :NEW.COMBINED_CUT            ,
                 :NEW.CASTING_DEDUCTION         , :NEW.ACCOUNT_NO              ,
                 :NEW.SEQ_NO                    , :NEW.CODE                    ,
                 :NEW.LENGTH                    , :NEW.WIDTH                   ,
                 :NEW.DEPTH                     ,  TRUNC(:NEW.DATE_WORKED)     ,
                  systime                       , :NEW.CREATE_BY               ,
                 'PROCESSED '||TO_CHAR(systime  , 'MM/DD/YYYY HH:MI:SS'),
                 :NEW.STATUS                    , :NEW.PERMIT_NO               ,
                 :NEW.STIP_FACTOR               );
    
      stmt_var := 'Insert Cut History';
    
      EXCEPTION
    
      WHEN DUP_VAL_ON_INDEX THEN
    
        NULL;
    
      END;
    
    
       /* This will insert/update the records in CR_FIELD_LAYOUT_STATUS */
         OPEN STAT(:NEW.LAYOUT_NO);
         FETCH STAT INTO STAT_CUR;
    
         IF stat_cur.cdate IS NULL THEN
            /* Offset system date inserted by 1 second (SYSDATE+.00001) to prevent PK_LOT_STAT
               constraint from firing when the cuts are entered simultaneously with logs. */
            INSERT INTO CR_FIELD_LAYOUT_STATUS
                   (LAYOUT_NO, STATUS, CREATE_BY, CREATE_DATE, NOTE)
            VALUES (:NEW.LAYOUT_NO, 'AWAITING_COMPLETION', :NEW.CREATE_BY, SYSDATE+.00001,
                   'Cut Inserted by Field Personnel '|| to_char(SYSDATE+.00001,'MM/DD/YYYY HH:MI:SS AM'));
    
            stmt_var := 'Insert Layout Status';
    
         ELSE
    
            UPDATE CR_FIELD_LAYOUT_STATUS
               SET CREATE_DATE = SYSDATE
                 , NOTE        = 'Cuts Updated: '|| to_char(SYSDATE+.00001,'MM/DD/YYYY HH:MI:SS AM') -- CT 2009-5511  09/10/09 Removed concatenation
             WHERE LAYOUT_NO   = :NEW.LAYOUT_NO
               AND STATUS      = 'AWAITING_COMPLETION'
               AND CREATE_DATE = stat_cur.cdate;
    
            stmt_var := 'Update Layout Status';
    
         END IF;
    
      CLOSE CUT;
      CLOSE DET;
      CLOSE DTN;
      CLOSE ITM;
      CLOSE LOT;
      CLOSE STAT;
      CLOSE UNA;--added for cha 2011-3172 6/14/2011
    
      /* When exceptions are raised, the users will be notified for
         the failure. */
    
      EXCEPTION WHEN OTHERS THEN
    
           err_msg := SQLERRM;
    
           INSERT INTO CR_FIELD_ERROR VALUES(:NEW.LAYOUT_NO, ' Cut No.: '||:NEW.CUT_NO
                                             ||' Item No.: '||:NEW.SEQ_NO, SYSDATE, err_msg);
    
     /*      conn:= utl_smtp.open_connection( 'EXCHSMTP.coned.com');
    
           utl_smtp.helo(conn, 'coned.com');
           utl_smtp.mail(conn, '[email protected]' );
           utl_smtp.rcpt(conn, '[email protected]' );
           utl_smtp.rcpt(conn, cc_recipient);
           mesg:= 'From: Cut Staging After Insert <[email protected]>' || crlf ||
                  'Subject: CR_FIELD_CUT_AFTER_INSERT Trigger Failed (Testing)' || crlf ||
                  'To: Harsha <[email protected]>' || crlf ||
                  'Cc: ' || cc_recipient || crlf  ;
           mesg:= mesg || '' || crlf || msg_body || ' Layout No.: '|| :NEW.LAYOUT_NO ||
                          ' Cut No.: ' || :NEW.CUT_NO || ' Item No.: ' || :NEW.SEQ_NO ||
                          '  **ErrorMessage**  '||err_msg||' Error found after this statement: '||stmt_var;
           utl_smtp.data( conn, mesg );
           utl_smtp.quit( conn );*/ --6/24
            conn:= utl_smtp.open_connection( 'EXCHSMTP.coned.com');
    
           utl_smtp.helo(conn, 'coned.com');
           utl_smtp.mail(conn, '[email protected]' );
           utl_smtp.rcpt(conn, '[email protected]' );
           utl_smtp.rcpt(conn, cc_recipient);
           mesg:= 'From: Cut Staging After Insert <[email protected]>' || crlf ||
                  'Subject: CR_FIELD_CUT_AFTER_INSERT Trigger Failed (Testing)' || crlf ||
                  'To: XYZ <[email protected]>' || crlf ||
                  'Cc: ' || cc_recipient || crlf  ;
           mesg:= mesg || '' || crlf || msg_body || ' Layout No.: '|| :NEW.LAYOUT_NO ||
                          ' Cut No.: ' || :NEW.CUT_NO || ' Item No.: ' || :NEW.SEQ_NO ||
                          '  **ErrorMessage**  '||err_msg||' Error found after this statement: '||stmt_var;
           utl_smtp.data( conn, mesg );
           utl_smtp.quit( conn );
    END;
    Published by: 831050 July 20, 2011 06:50

    It's just a guess,

    what you the sliders are open regardless of any condition, for example;

    OPEN CUT(:NEW.LAYOUT_NO);
    OPEN DET(:NEW.LAYOUT_NO);
    OPEN ITM(:NEW.LAYOUT_NO);
    OPEN LOT(:NEW.LAYOUT_NO);
    OPEN DTN(:NEW.LAYOUT_NO, :NEW.CUT_NO, :NEW.NOTE);
    

    UNA is however open after a condition;

    IF DTN%NOTFOUND THEN
      /** start --added for cha 2011-3172 6/14/2011 **/
    
          OPEN UNA(:NEW.LAYOUT_NO, :NEW.ACCOUNT_NO);
    

    All in sliders however closed without worrying, that is, they are all suppose to be open;

      CLOSE CUT;
      CLOSE DET;
      CLOSE DTN;
      CLOSE ITM;
      CLOSE LOT;
      CLOSE STAT;
      CLOSE UNA;
    

    So I think you close the wen of cursors UNA this is indeed not to open.
    So, pass the "NARROW UNA"; line of code before the END IF; on line 278, since that's when it will definitely be open.

  • When I connect I get the 404 not found error message file

    Original title: 404 File not found

    I was the connection of a webcam that allows me to observe a bird's nest.  I went there

    several times a day for about 6 weeks.  When I log in now, I get the 404 not found error message file.

    I returned to view history and tried to bring it up like that without success.  All other programs seem to

    to work properly, no recent changes I know.  The eggs should be hatching, and I can't wait to

    Download this issue is resolved.  Any ideas?

    Perhaps that the eggs have hatched and the webcam has been removed.

    The problem is not just about anything on your computer.  You have to ask the person who is the owner of the webcam.

    The 404 or not found error message is an HTTP standard response

    Code indicating that the client was able to communicate with a given

    Server, but the server did not find what was requested.

    The web site hosting server usually generates a "404 Not Found"

    Web page when a user tries to follow a link broken or dead; That's why

    the 404 error is one of the most recognizable errors on the

    The World Wide Web.

  • A deployed Application OK;  my application still gets the "404 Not Found" error...

    I'm trying to deploy my application from in JDeveloper 10.1.3.4 to the oc4j standalone on the local host, before you deploy to an application server. I am a beginner and I do this by following a tutorial. The tutorial application is deployed very well, but my application still gets the "404 Not Found" error after deployment.

    The standalone oc4j is installed on my PC under Windows XP by running the \jdev\bin\start_oc4j.bat file < jdev_home > and works very well because the tutorial application is deployed and works very well.

    For the purposes of the tutorial, the deployment is the last chapter (Chapter 10). I started from the application of the tutorial almost completed at the end of Chapter 9 and went throug all the steps in Chapter 10 and the application is deployed and invoke it with success.

    My application starts with the login.jspx page. The application works perfectly when it is called directly in JDeveloper by right click on login.jspx and then selecting run. But in case to go through the same steps as for the application of the tutorial, my request still get "404 Not Found" in the browser.

    The deployment steps are:

    1. right click on the ViewController project, select new, then on profiles/WAR deployment file, to create the deployment profile. During the creation of this profile, I entered 'ZBV' according to the root context custom.

    2 right-click on the deployment profile (ZBV.deploy) and "deploy to...» "the standalone oc4j on localhost and accept the default configuration. Messages in the log in JDeveloper window are clean without error.

    3. open a browser, enter the url "http://localhost:8888/ZBV/faces/staff/login.jspx and get"404 Not Found". I cancelled and went through the same steps several times and always got the same error. I use /staff/login.jspx after ZBV/faces because in the navigation of the Application, the login.jspx file is located in the staff-ViewController-Web content folder.

    I wonder what could be wrong with my request. In the tutorial, it is said that a .war and .ear file will be created, but only the .war file must be created because of the dependence of the ViewController project on the DataModel project defined in the application. My request is this defined addiction so I went throug the same steps as for the deployment of the application of the tutorial.

    I hope that the experienced and experts and gurus will shine on me with their experience and wisdom.

    Thank you very much!

    Newman

    Check your OC4J logs to see if the deployment worked and if you receive error messages.
    You can go in the OC4J administration console to verify that the deployment is in place.

  • get the entity level validation error after clicking the Cancel button

    Hi Experts,

    JDEV 12.1.3.0

    I have a popup and I create several rows in a table. And when you click on CANCEL, I get the validation error level feature on the home page.

    Cancel call the method below and also set immediate = "true".

    /*

    * return allchanges

    */

    {} public void refreshRemoveNewRow (rank)

    If ((row) .getNewRowState (ViewRowImpl) () == Row.STATUS_INITIALIZED) {}

    Row.Refresh (Row.REFRESH_UNDO_CHANGES + Row.REFRESH_REMOVE_NEW_ROWS + Row.REFRESH_FORGET_NEW_ROWS);

    } else {}

    Row.Refresh (Row.REFRESH_UNDO_CHANGES + Row.REFRESH_FORGET_NEW_ROWS);

    }

    }

    If I try with Rollback I get Transaction has expired. My behavior of workflow is also use existing Transaction if Possible.

    Thank you

    Roy

    Hello

    Try again with

    public void refreshRemoveNewRow(Row row) {
       if (((ViewRowImpl)row).getNewRowState() == Row.STATUS_INITIALIZED) {
             row.refresh(Row.REFRESH_UNDO_CHANGES +  Row.REFRESH_REMOVE_NEW_ROWS);
        } else {
             row.refresh(Row.REFRESH_UNDO_CHANGES + Row.REFRESH_FORGET_NEW_ROWS);
        }
    }
    

    Beside that, can you post the jdev console stack trace, to see which exactly entity and validator is in question...

  • Get the program "not responding" error message

    get the program does not

    Hey jessejender

    Well, this may be due to 2 things:

    1. you don't have enough RAM to run all the processes on your system, you must add more RAM.

    2. you have viruses or worms currently running on your system, you will need to install a program antivirus or scan your system with the MRT (windows malware removal tool), to run it, open the system32 directory in the windows folder, then search for MRT, first, run a quick scan, if you find something, then you should run a full system scan and it may take some time. Note: It is recommended if you have updated the tool before running it.

    Hope it is helpful

  • Beginner question: get the file not found error, when the file exists

    I'm in developer edition Coldfusion9 on Ubuntu 10.10 x 64.  I followed the tutorial found here. So far, I was able to do everything with the exception of the visualization of my pages in the browser.  When I try to view the page, it gives me the error shown below.

    I have been using cfEclipse to build pages and I followed the instructions as much as I can, the difference is that I replaced the paths of Linux for windows those.

    Thanks in advance

    Error occurred while processing request

    File not found: /home/forrest/workspace/Learning/Gallery.cfc

    Resources:

    BrowserMozilla/5.0 (X 11; U; Linux x86_64; en-US; RV:1.9.2.10) Gecko
    Remote address0:0:0:0:0:0:0:1
    Referrer
    Date/timeOctober 11, 10 10:44
    Stack trace


    coldfusion.runtime.TemplateNotFoundException: File not found: /home/forrest/workspace/Learning/Gallery.cfc
         at coldfusion.filter.PathFilter.invoke(PathFilter.java:90)
         at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
         at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
         at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
         at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
         at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
         at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
         at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
         at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:138)
         at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
         at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
         at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
         at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
         at jrun.servlet.FilterChain.service(FilterChain.java:101)
         at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
         at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
         at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
         at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
         at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
         at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
         at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    

    grog says:

    @David thanks of Watts for the help that I tried to change the port to 8300 that does not work.  That makes sense, I think because I have to go to 'http://Mypc:8500 / etc. in order to get to the CF administrator.

    This means that content in the/opt/coldfusion9/wwwroot/directory will be served to the top by the url http://Mypc:8500 /.

    I.e. /opt/coldfusion/wwwroot/myFirstColdFusion.cfm == http://mypc:8500 / myFirstColdFusion.cfm

    Unless you did something to the underscore configeration to change this behavior.

  • Get the file not found error when trying to get a glimpse into Captivate 8. Have used it before without a problem, so don't know why it's happening now.

    Please help me solve this. I can not get a preview in Chrome or IE. Thank you.

    My IT people have managed to create a secondary user on the workspace to connect and listen to samples. Not ideal, but it worked. After continuing to work with Adobe, they were able to provide an alternative solution that worked. I suggest that someone experiences this problem works with Adobe - the people are great. And, to prevent this from happening in the first place, make sure that your windows user name is a single word!

  • Instance not valid error then take out the screen

    Hi friends

    I am doing a simple demo of screen Sharing.but it will give me the instance not valid error when I sign on to any editor screen, I mean when you go to subscribe to any screen through an error named

    Invalid instance.

    at com.adobe.rtc.session.managers::SessionManagerBase/receiveError() [C:\work\main\connect\co como\src\com\adobe\rtc\session\managers\SessionManagerBase.as:352]
    at com.adobe.rtc.session.managers::SessionManagerFMS/receiveError() [C:\work\main\connect\coc omo\src\com\adobe\rtc\session\managers\SessionManagerFMS.as:308]
    at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/receiveError() [C:\work\ main\connect\cocomo\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices.a s:271]
    at com.adobe.rtc.session.managers::SessionManagerAdobeHostedServices/onMeetingError() [C:\wor k\main\connect\cocomo\src\com\adobe\rtc\session\managers\SessionManagerAdobeHostedServices .as:111]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.adobe.rtc.session.sessionClasses::MeetingInfoService/onStatus() [C:\work\main\connect\ cocomo\src\com\adobe\rtc\session\sessionClasses\MeetingInfoService.as:457]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/redirectEvent()

    body guides me why does this happen and how to solve the it.shoould I put through different in key can sign the application?

    Thanks and greetings

    Vineet Osho

    Hi Aditya,

    You should not need to use a shared secret for 2 apps running - it's

    specifically for external authentication. All you need is 2 applications,

    both have the same roomURL. An application can have the publishing server, the

    others may have of the Subscriber. I suggest that you spend some time to read the

    LCCS Developer Guide, or listen to the video tutorials we provide.

    hope that helps

    Nigel

  • Hidden entry point causes the Page not found error

    Hello.

    I use Apex 4.1.0 on Oracle 10.2.0.5 and mod_plsql (Oracle application server).

    I created an application with two tabs.

    On one of the tabs in a block of Annonymous PL/SQL, I have the following code:
    begin
      htp.p('
    <!DOCTYPE html>
    <html>
    <head>
    <title>AMO PROPOSAL CHECKLIST</title>
    </head>
    <body>
    <h1>AMO PROPOSAL CHECKLIST</h1>
    <form action="" method="post">
    <input type="hidden" name="FS-1" value="1" />
    text2<label for="C12" class="hideMeButHearMe">text2</label><input type="text" name="f02" size="20" maxlength="12" value="" name="TEXT-Q12" id="C12" />
    My Question
    </form>
    </body>
    </html>
    ');
    end;
    When I run this page, the HTML code is rendered correctly.

    However, if I then click the other tab, I get the error: Page not found.

    I've narrowed the problem to the inscription of this point of entry hidden: < input type = "hidden" name = "FS-1" value = "1" / >

    If I simply delete this hidden, switch to another tab throws any error.

    I ran this page using Firefox with Firebug. But does not help me understand why this hidden item throws the error.

    Anyone know why this is happening?

    EEG wrote:
    Hi, fac586.

    Well, today the good folks at Oracle/Apex unlocked my account apex.oracle.com and so, was able to connect.

    I created a new application:

    Workspace: EEG
    Username:   [email protected]
    Password:   galaxy (Note: all lowercase)
    
    App Id: 28044 (Name = Debug Page Not Found Error)
    

    I created a new user of fac586 , so that you can follow what I've done through the activity if necessary log...

    The application uses the same theme (Sapphire, #17). Page 1 contains a region PLSQL Annonymous Block in which I simply preprogrammed the exact same HTML code that throws the error "Page not found" that started this post. The other page is just a page of report.

    When the application runs, page 1 immediately appears with the HTML code. However, by clicking on the 'Report' tab (for the 2nd page) get the Page not found error.

    If you have time, I'd appreciate it if you could kindly look at what I've done. It would help to understand if you can translate essentially advice you have already posted to what is shown in this sample application.

    After seeing what you do more in detail I am now actually suggesting a completely different approach ;-)...

    Given the potential duration visualized forms and the obvious importance of the applied CSS, preview style has really come in the form of a separate document. (As noted above, you can not have more than one element html, head and body in the page and that and the CSS that you attempt to register is completely destroying the presentation of the APEX on page 1.)

    Therefore, I want to say now is made the preview in a separate document in an iframe within an HTML region, as illustrated on page 3:

    
    

    Document source is a process on demand in your application from which you can call a procedure that returns the HTML survey form. The iframe is automatically sized to display the complete form.

    You still need to take measures for the visualized form either by ferry to sand/locked so that it can be made: it is the case in the examples the measure where there is no form action and no submit button, but it is unclear if this is indeed the case in your application?

  • My text box is frozen and has a dotted around her line, how can I get the cursor inside?

    My text box is frozen and has a dotted around her line, how can I get the cursor inside? I work in Indesign CS3, I wrote a page of A4 format with a unique and with a large amount of text inside text box. In the end, I brought a JPEG in the page. Now they have a thin line dotted around them and appear "frozen." I have not seen the dotted line instead of the line before usual text box.

    Points: The text box is not locked, the layer is not locked. Nothing on the page goes live with command + A to select.

    It happened between the Time Machine backups so that I can not restore.

    All I need are the captured keystrokes.

    What can happen when you put the JPEG, I myself can I have moved that file folder, a larger file, on the desktop, then placed the JPEG.

    Re-opening Indesign didn't work; restart did not work.

    Solutions appreciated.

    The dotted lines mean that your items are on a master page and not a document page.

  • I am trying to download adobe reader, but it will not complete the download because there is a "drive not valid error 1327: J:\. "box that appears

    Original title: I have windows xp.  What does "drive not valid error 1327: J:\. "means and how to fix it?

    Hello

    I have windows xp and I am trying to download adobe reader, but it will not complete the download because there is a "drive not valid error 1327: J:\. "box that appears. I have no idea what this means or what to do.  I didn't know that there was such a unit, because I can not find it. I hope someone can help.  Thank you.

    Hello

    1. are you able to download another program?
    2. you have any program installed download accelerator?
    3. what browser do you use?

    Read the following article that may help you resolve this problem.
    Error 1327. "Invalid drive" | Install | CS4, CS5, Acrobat, Reader
    http://kb2.Adobe.com/CPS/404/kb404946.html

  • Installed Adobe on the K drive, now my computer has assigned portable K:\ drive to my hard drive. I am reader not valid error 1327 J:\.

    Last year I buy Nero software, and it was installed on my laptop hard drive which has been J:\.  Now for some reason, my computer has received a portable K:\ drive on my hard drive.  So, when I try to open the program, it gives me drive not valid error 1327 J:\.  He also stated that there is insufficient space in J:\, AND it gives me a message "fatal error in installation.  Why he did it assign a different drive letter?

    I don't know how to change the registry, because I'm sure that WHAT I have uploaded in this device will give me a similar error code when I try to use it.  Help!

    original title: problems in car

    Hello

    You must be sure that programs use the drive letter that you define or
    you will need to change it back when needed. The latter would be the
    more great pain in the long term.

    Most programs allow you to change the data reader. If the reader is a program
    installed on and then after he moved to the drive letter, you will need to re - install the
    program.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to get the cursor to the first line after the addition of 3 rows in the OPS. Help, please.

    Hi Experts,

    I have a requirement to get the cursor should point to the first line instead of pointing to the third row. To the help of code below, my cursor points to the third row. Please put some light on it to reach the requirement

    XXCLKTestVOImpl vo = getXXCLKTestVO1();

    for (int i = 0; i < 3; i ++) {}

    Line = vo.createRow ();

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    Thank you

    Gurnur Singh

    Problem is solved. Since then, I've been on 12.2.4 Ebs version and was auto insert false setting in AddtablerowBean. To reach the requirement, you will need to refer to the same number of lines to add the addtablerowbean property that you use in loop for. here I use 3 looping so you must use the number 3 lines to add the addtablerowbean property to get there. So whenever you add three rows then cursor in the first row of three lines you will add. Thank you all.

    Thank you

    Gurnur Singh

Maybe you are looking for