Invalid Cursor Error when executing a form

I am getting the following error
"Error Executing Cursor
ORA-01001: invalid cursor"
when I try to "Submit" information in a form based on the procedure below. What's the problem?! The procedure compiles fine.
create or replace procedure MARKETING_FORM_2_7
(ToAdd in Varchar2,
FromAdd in Varchar2,
Subject in Varchar2,
SenderName in Varchar2,
Branch in Varchar2,
Phone in Varchar2,
Address in Varchar2,
Suggestion in Varchar2,
SalesPromo in Varchar2,
TradeshowPrep in Varchar2,
SalesMaterials in Varchar2,
DirectMail in Varchar2,
CounterDays in Varchar2,
BranchCustData in Varchar2,
Other in Varchar2,
ProjectName in Varchar2,
Purpose in Varchar2,
Audience in Varchar2,
WhoPay in Varchar2,
Deadline in Varchar2,
Progress in Varchar2,
EmployeeUpdate in Varchar2,
WESCOWin in Varchar2,
DescribeWin in Varchar2,
PotentialValue in Varchar2,
PartBranches in Varchar2,
SignifPeople in Varchar2,
SpecialFactors in Varchar2)
is
mailhost Varchar2(15) :='CLAPTON';
mail_conn utl_smtp.connection;
crlf varchar2(2):=chr( 13 )||chr( 10 );
mesg varchar2(5000);
begin
mail_conn := utl_smtp.open_connection(mailhost,25);
mesg:= 'From: <'||FromAdd||'>' ||crlf ||
'To: '||ToAdd || crlf ||
'Subject: '||Subject || crlf ||
'' ||crlf||
'Name: '||SenderName || crlf ||
'Branch: '||Branch || crlf ||
'Phone: '||Phone || crlf ||
'Address: '||Address || crlf ||
'Comment or Suggestion: ' || Suggestion || crlf ||
'Sales Promotion Assistance: '|| SalesPromo || crlf ||
'Tradeshow Assistance: '|| TradeshowPrep || crlf ||
'Sales Materials or Presentations Assistance: '|| SalesMaterials || crlf ||
'Direct Mail Assistance: '|| DirectMail || crlf ||
'Counter Days Assistance: '|| CounterDays || crlf ||
'Customer Database Assistance: '|| BranchCustData || crlf ||
'Other: '|| Other || crlf ||
'Project Name: '|| ProjectName|| crlf ||
'Purpose: '|| Purpose || crlf ||
'Indended Audience: '|| Audience || crlf ||
'Who Will Pay?: ' || WhoPay || crlf ||
'Deadline: '|| Deadline || crlf ||
'Progress Made: ' || Progress || crlf ||
'Mailing List Update: ' || EmployeeUpdate || crlf ||
'WESCO Win: '|| WESCOWin || crlf ||
'Win Description: ' || DescribeWin || crlf ||
'Contract Value/Potential Sales: '|| PotentialValue || crlf ||
'Participating Branches: '|| PartBranches || crlf ||
'Significant Contributors: '|| SignifPeople || crlf ||
'Special Factors: '|| SpecialFactors;
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, FromAdd);
utl_smtp.rcpt(mail_conn, ToAdd);
utl_smtp.data(mail_conn, mesg);
utl_smtp.quit(mail_conn);
end;

Try executing the procedure independently (say from sqlplus) to see whether the procedure works fine.
Alternatively, try commenting out the calls to the utl_smtp packages to see whether the procedure works.

Similar Messages

  • Invalid Cursor error when modifying Assignment details - Transfer workflow

    Hi,
    We're trying to submit a Transfer transaction but if we try to modify any field in the Assignment details screen, we're getting a system error, and sometimes we see ORA-01001: invalid cursor error. We have already checked the database objects (procedures, packages, triggers) and we don't see any code which has an invalid use of a cursor. Does anyone have a clue on the cause of this error?

    This is just a guess,
    all you cursors are being opened 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 however is opened 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 cursors arel however closed regardless, i.e. they are all assumes to be open;
      CLOSE CUT;
      CLOSE DET;
      CLOSE DTN;
      CLOSE ITM;
      CLOSE LOT;
      CLOSE STAT;
      CLOSE UNA;So I think you are closing the UNA cursors wen it is in fact not open.
    So, move the "CLOSE UNA;" line of code to before the END IF; on line 278, since that is when it will definitely be open.

  • "Invalid Character" error when executing a 13KB query with ADO

    Hello
    I want to execute a query using an ADO Recordset using the Open method. When calling this method, an ORA-911 "Invalid Character" raises. I can say that the SQL runs fine, because using the SQL*Plus utility it works.
    I have a 11g client installed, and the target database is in a 9i server; my PC uses WinXP SP2.
    What could be wrong?
    Thanks a lot.

    Well there's a 32K limit in Oracle. (But it can be overcome using dynamic sql).
    You basically end up putting the text in an associative_array which has to be sequential.
    There should be info on askom.oracle.com as I initially posted the question there.
    13KB of characters is a lot of query text, and it could easily be the provider.
    Try the microsoft ADO provider and see if you get the same problem.
    There was another company which had a provider (which you had to pay for) , can't remember its name , but it seemed to be the best.
    I would seriously question why you need to pass a 13KB string to oracle though.

  • FRM-90928 error when executing a form

    After installing the Oracle 9i Developer suite, I tried to run a simple form for the first time but I keep getting the following error:
    "FRM-90928:Position parameter after keyword in the commandline."
    Could anybody has any idea on how to fix this. Any help will be appreciated!
    Thanks,
    MS.

    Maybe it's because your form is located in a directory with spaces in it, like "d:\trail forms\...."
    Try to place the form in a directory without spaces.
    Regards
    Harm van Zoest

  • "Invalid Cursor" Error in Form

    Hi,
    I wrote a procedure that take a REF CURSOR as an IN OUT argument. This procedure does an "OPEN cursor FOR qry" with a dynamic query:
    OPEN l_cursor FOR
           'SELECT A '||
             'FROM B '||
            'WHERE C = :l_var'
         USING myVar;After calling the procedure, I do a LOOP with FETCH.
    It works well when I use it in SQL*Plus with DBMS_OUTPUT but it returns a "ORA-01001 invalid cursor" error in Forms.
    Any help is welcome!
    Regards,
    Olivier.

    I found a solution on Metalink:
    Note:170881.1
    Note: 1007395.6
    Olivier.

  • Invalid cursor error in procedure

    i am writing a procedure in which i have make use of cursor........it is giving me error INVALID CURSOR
    on running
    i have used this cursor with WITH CLAUSE....
    when i am executing or running this procedure this giving me invalid cursor error
    create or replace
    procedure USP_UPDATEDRUGORDERDTL
    v_pServiceid IN NUMBER DEFAULT NULL ,
    v_pServRendered IN NUMBER DEFAULT NULL ,
    v_pSchDateTime IN DATE DEFAULT NULL ,
    v_pOrdQty IN FLOAT DEFAULT NULL ,
    v_billingclassid IN NUMBER DEFAULT NULL ,
    v_pOrdID IN NUMBER DEFAULT NULL ,
    v_UpdatedBy IN NUMBER DEFAULT NULL ,
    v_prender IN NUMBER DEFAULT 0 ,
    v_pInsertedByUserID IN VARCHAR2 DEFAULT NULL ,
    v_pInsertedON IN DATE DEFAULT NULL ,
    v_pDrugID IN NUMBER DEFAULT 0 ,
    v_pRate IN FLOAT DEFAULT 0 ,
    v_pBatchId IN NUMBER DEFAULT 0 ,
    v_OrderSource IN VARCHAR2 DEFAULT NULL ,
    v_pInsertedMacID IN VARCHAR2 DEFAULT NULL ,
    v_pInsertedIPAddress IN VARCHAR2 DEFAULT NULL ,
    v_pOldOrdID IN NUMBER DEFAULT NULL,
    v_plocid in char DEFAULT NULL
    AS
    vr_pConsumptionID NUMBER(10,0);
    vr_pSavedQty NUMBER(10,3);
    vr_pReturnQty NUMBER(10,3);
    vr_Qty NUMBER(10,3);
    begin
    vr_pSavedQty := 0;
    vr_pReturnQty := v_pOrdQty;
    declare
    cursor ordDtl_cur is -----cursor declaration
    with --- with clause used with cursor
    Q1 AS
    Select NVL(ConsumptionID,0) As ConsumptionID,Sum(OrdQty) As OrdQty,
    OrdID,DrugID,BatchID, locid from Orderdtl
    Where OrdID = v_pOldOrdID and DrugID = v_pDrugID And BatchID = v_pBatchID and NVL(Cancelled,0) = 0
    Group By OrdID,DrugID,BatchID,ConsumptionID
    Order By ConsumptionID asc
    Q2 AS
    SELECT NVL(OrderDtl.ConsumptionID,0) As ConsumptionID,(SUM(OrderDtl.OrdQty)) As OrdQty,
    IvPatientIssueReturnDtl.OrderID as OrdID,OrderDtl.DrugID,OrderDtl.BatchID,OrderDtl.locid
    FROM OrderDtl INNER JOIN
    IvPatientIssueReturnDtl ON OrderDtl.OrdID = IvPatientIssueReturnDtl.NewOrderId AND
    OrderDtl.DrugId = IvPatientIssueReturnDtl.ItemId AND OrderDtl.BatchId = IvPatientIssueReturnDtl.BatchId
    WHERE (OrderDtl.BatchId = v_pBatchID) AND (IvPatientIssueReturnDtl.OrderId = v_pOldOrdID)
    AND (OrderDtl.DrugID = v_pDrugID) and NVL(OrderDtl.Cancelled,0) = 0
    Group By IvPatientIssueReturnDtl.OrderID,OrderDtl.DrugID,OrderDtl.BatchID,OrderDtl.ConsumptionID
    Order By OrderDtl.ConsumptionID asc
    Select
    Q1.ConsumptionID,(Sum(NVL(Q1.OrdQty,0)) + Sum(NVL(Q2.OrdQty,0))) As OrdQty,
    Q1.OrdID,Q1.DrugID,Q1.BatchID,Q1.locid
    from
    Q1 ,Q2
    where
    Q1.OrdID =Q2.OrdID(+)
    and
    Q1.BatchID =Q2.BatchID(+)
    and
    Q1.DrugID =Q2.DrugID(+)
    and
    Q1.ConsumptionID =Q2.ConsumptionID(+)
    Group By Q1.OrdID,Q1.BatchID,Q1.DrugID,Q1.ConsumptionID;
    TYPE ordDtl_trec is TABLE of ordDtl_cur%ROWTYPE index by PLS_INTEGER;
    l_ordDtl ordDtl_trec; ---- cursor syntax
    begin
    if ordDtl_cur%ISOPEN then
    open ordDtl_cur; --------------opening cursor
    end if;
    loop
    -- fetch data into cursor---
    fetch ordDtl_cur
    bulk collect into
    l_ordDtl;
    -----perform logic--------------------
    for indx IN 1..l_ordDtl.COUNT loop
    if vr_pSavedQty <> vr_pReturnQty then
    If v_pOrdQty <= (vr_pReturnQty - vr_pSavedQty) then
    vr_pSavedQty := vr_pSavedQty + v_pOrdQty;
    vr_Qty := v_pOrdQty;
    else
    vr_Qty := (vr_pReturnQty - vr_pSavedQty);
    vr_pSavedQty := vr_pSavedQty + (vr_pReturnQty - vr_pSavedQty);
    end if;
    end if;
    end loop;
    exit when ordDtl_cur%NOTFOUND;
    end loop;
    CLOSE ordDtl_cur; ---- closing cursor
    end;
    end;

    Hello.
    Very simple.
    You are using cursor name before opening it.
    Here is the problem.
      if ordDtl_cur%ISOPEN then
       open ordDtl_cur; --------------opening cursor
      end if;
    end if;Please change your code like this
    comment IF statement use only OPEN  ordDtl_cur;
      ---- if ordDtl_cur%ISOPEN then
         open ordDtl_cur; --------------opening cursor
      --- end if;Thanks,
    Suri

  • Invalid Cursor Error

    I have a table called cdd_merge_children where the comments field contains the following SQL.
    SELECT EVENT_ID FROM EVENT WHERE ACCOUNT_ID = :ACCOUNT_NO
    In my procedure I am doing the following:
    --get the comments from the cdd_merge_children table where CDD_MERGE_CHILDREN_TYPE
    --is of type 3. type 3 are a replica of type 2's for audit/history purposes 
    SELECT DISTINCT COMMENTS
    INTO ls_comments
    FROM CDD_MERGE_CHILDREN
    where table_name = ps_tablename
    and CDD_MERGE_CHILDREN_TYPE = 3 ;
    --get the comments from the table and execute the dynamic sql using the looser.
    OPEN col_cv FOR ls_comments USING gvloosingaccount ;
    --dump the curosr values in the table
    FETCH col_cv BULK COLLECT INTO loosingvals ;
    For some reason or the other when I try doing the fetch I am getting invalid cursor or ORA-01001: invalid cursor error. WHY WHY
    Please help !

    You cannot bulk-fetch from a cursor into a collection of records, you can only bulk-fetch from a cursor into one or
    more collections:
    DECLARE
    TYPE NameList IS TABLE OF emp.ename%TYPE;
    TYPE SalList IS TABLE OF emp.sal%TYPE;
    CURSOR c1 IS SELECT ename, sal FROM emp WHERE sal > 1000;
    names NameList;
    sals SalList;
    BEGIN
    OPEN c1;
    FETCH c1 BULK COLLECT INTO names, sals;
    END;
    You cannot however,
    DECLARE
    TYPE NameList IS TABLE OF emp.ename%TYPE;
    names NameList;
    salary emp.sal%TYPE;
    TYPE DeptRecTab IS TABLE OF dept%ROWTYPE;
    dept_recs DeptRecTab;
    CURSOR c1 IS
    SELECT deptno, dname, loc FROM dept WHERE deptno > 10;
    BEGIN
    SELECT ename, sal BULK COLLECT INTO names, salary; -- illegal target
    BEGIN
    OPEN c1;
    FETCH c1 BULK COLLECT INTO dept_recs; -- illegal
    END;
    Ok I have a table called cdd_merge_children which has a column called comments. In this column I am storing dynamic SQL such as
    SELECT EVENT_ID FROM EVENT WHERE ACCOUNT_ID = :ACCOUNT_NO
    Now in my code I retrieve this SQL statement and use it as follows:
    --get the comments from the table and execute the dynamic sql using the looser.
    OPEN col_cv FOR ls_comments USING gvloosingaccount ;
    --col_cv is a reference cursor BTW
    --dump the curosr values in the table
    FETCH col_cv BULK COLLECT INTO loosingvals ;
    Ok at this fetch is where I am getting the following error
    ORA-01001: invalid cursor
    Why ? Anyhelp would be great
    Thank's
    Sameer Handa

  • "ORA-01001 Invalid Cursor" error

    Platform: oracle 8.X on ibm aix and java client code from
    windows NT.
    JDBC DRIVER: JDBC Oracle thin driver version 1.2.
    when i execute a Sql satement with Cursor expression from the
    java client code with XSU it returns an XML DOM But if the
    CURSOR EXPRESSION IN THE SQL QUERY RETURNS EMPTY ROWS i get
    back an error node with "ORA-01001 Invalid Cursor" error
    message.i had aslo set the setNullAttributes(true) property
    on oraclexmlquery.
    Interestingly, if i exceute the same query in the SQL plus
    it returns the column names with no rows.
    is there any way where i can get xml document with table
    structure, when there are no rows instead of ORA error message.
         

    This is just a guess,
    all you cursors are being opened 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 however is opened 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 cursors arel however closed regardless, i.e. they are all assumes to be open;
      CLOSE CUT;
      CLOSE DET;
      CLOSE DTN;
      CLOSE ITM;
      CLOSE LOT;
      CLOSE STAT;
      CLOSE UNA;So I think you are closing the UNA cursors wen it is in fact not open.
    So, move the "CLOSE UNA;" line of code to before the END IF; on line 278, since that is when it will definitely be open.

  • Error when starting Adobe Form

    I have an Adobe Form which works Ok in the development SAP Portal, but that, when I log in the production portal gives the following error:
    Error when reinitializing the form (I guess, it's Error al reinicializar el formulario, in Spanish)
    I think maybe there is something missing to transport, or some misconfiguration, but I haven't been able so far to find it...
    Can someone give me a hand?
    Thank you in advance,
    S.

    Hi,
    Can you tell me when does the error message comes? Does it comes when you are trying to open the Form or when you are trying to execute it.
    Please check if it is still working in the development box?
    Regards,
    Susanta

  • Invalid cursor state when trying to insert record

    Hi everyone!
    I'm using JDBC-ODBC bridge to connect to a mySql database, which works fine. Then I try to insert new records, but this only works for the first record in the table.
    When there is already a record in the table, I always get "[Microsoft][ODBC Driver Manager] Invalid cursor state" when calling the updateRow()-method of the result set.
    Here is my code:            // open db connection
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection conn = DriverManager.getConnection("jdbc:odbc:TTManager", "xxxx", "xxxx");
                // Prepare SQL statement
                java.sql.Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
                ResultSet result = stmt.executeQuery("SELECT * FROM Player");
                result.moveToInsertRow();Then all fields are filled in this manner:            result.updateString("Name", name);And finally the insertRow should be written to the db:            result.insertRow();But at this point it gives the mentioned error, including these messages:         at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5272)
            at sun.jdbc.odbc.JdbcOdbcResultSet.insertRow(JdbcOdbcResultSet.java:4132)Since I'm very unexperienced with Java, I guess (or hope^^) it's just some stupid beginner's mistake.
    Oh, almost forgot to mention: The new record's data doesn't violate any unique-constraints on the table, all fields are explicitely filled and all variable's data types are matching their according field types!
    Any help would be appreciated!
    reinski

    Ok, I needed to help myself and this is what I found out:
    If the table already contains records, it is not enough to doresult.moveToInsertRow();but I must beresult.last();
    result.moveToInsertRow();I didn't find any explanation and even the code examples from the Sun tutorial don't mention this, so I guess it's a bug occurring in my poor IT environment: DB server running mySQL 5.0.0-alpha on a P1-233-MMX w/ 64MB under WinNT4 (hey don't laugh!!^^).
    Maybe this information is of use to someone having similar problems...
    Greetings!
    reinski

  • Error when executing query without passing variable selection

    Hi Gurus
    I am getting an error while executing a query with out passing values for variables
    When executing the query by passing the filter values report returns the data
    When executing the query with out passing variable selections the error message is
    Unknown error in SQL interface
    Error reading the data of Info Provider ZCRM_O08
    Error while reading data; navigation possible
    System error in program SSAPLRS_EXCEPTION and form
    RS_EXCEPTION_TO_MESSAGE
    No Data Available
    can any one please help me in resolving this
    Thank you

    Hi Srini
    Thanks for your quick response
    When i am executing the query with selection it is returning the data
    giving error when executing with out passing the selection
    is there any other cause for this problem
    like any particular info object causes this sort of problem
    Thank you

  • File to JDBC :Error when executing statement for table/stored proc.

    Hi,
    I am getting following error when i am trying to insert data into z-table using JDBC recr adapter.
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ZTEST' (structure 'STATEMENT'): java.sql.SQLException: <u>[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name '<b>ZTEST</b>'.</u>
    But the database table name 'ZTEST' exists in the system.
    XML structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_RECR xmlns:ns0="http://urn:srini/FileToJDBC">
       <STATEMENT>
          <TEST action="INSERT">
             <table>ZTEST</table>
             <access>
                <ROLLNO>123</ROLLNO>
                <FIRSTNAME>ABC</FIRSTNAME>
                <LASTNAME>XYZ</LASTNAME>
             </access>
          </TEST>
       </STATEMENT>
    </ns0:MT_RECR>
    Regards,
    Srinivas

    Hi,
    I have changed my MT str but still getting the same error.Is it possible to insert/ update a z-table using JDBC adapter.
    XML str:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_RECR xmlns:ns0="http://urn:srini/FileToJDBC">
       <STATEMENT>
          <ZTEST action="INSERT">
             <access>
                <ROLLNO>123</ROLLNO>
                <FIRSTNAME>abc</FIRSTNAME>
                <LASTNAME>XYZ</LASTNAME>
             </access>
          </ZTEST>
       </STATEMENT>
    </ns0:MT_RECR>
    Regards,
    Srinivas

  • Error when executing d2kwutil.pll procedure

    Hi all,
    I use a client/server architecture.
    There was an error when executing the procedure write_registry in the w2kutil.pll. I created a test forms , and I just created a control block containing a button. In the when-button-pressed trigger I coded : win_api_environment.write_registry('HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE','TEST_REGISTR','D:\MYLOGS',true); . I already attached the d2kwutil.pll to the form module.
    The error is : FRM-40734: internal error : pl/sql error occurred.
    So how to resolve it ?
    Thank you very much indeed.

    You have that atachar the bookstore to the form and then you can make use of the contained functions inside the bookstore.

  • ESS Payslip : Error when creating a form

    Hi Experts,
    Please help me on this issue.
    The payslip is not getting generated in QA portal. I have checked everything, feature, report variant. The payslip is getting generated from the back end.
    But I have not checked from PZ11_PDF, becz of authorisation issue.
    Can anyone guess what could be the problem?
    thanks
    Jay

    Here is the error
    Critical Error
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
      Error when creating the form   
      Error when creating the form:com.sap.pcuigp.xssfpm.java.FPMRuntimeException: Error when creating the form
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:112)
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:122)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.reportBapiRet2Error(FcRepFramework.java:525)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcGetForm(FcRepFramework.java:394)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.processFollowingActions(FcRepFramework.java:484)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcExecAction(FcRepFramework.java:378)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.initModel(FcRepFramework.java:292)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFramework.initModel(InternalFcRepFramework.java:256)
         at com.sap.xss.hr.rep.fcrfw.FcRepFrameworkInterface.initModel(FcRepFrameworkInterface.java:136)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface.initModel(InternalFcRepFrameworkInterface.java:198)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface$External.initModel(InternalFcRepFrameworkInterface.java:258)
         at com.sap.xss.hr.rem2.selection.VcRem2Selection.onInit(VcRem2Selection.java:245)
         at com.sap.xss.hr.rem2.selection.wdp.InternalVcRem2Selection.onInit(InternalVcRem2Selection.java:249)
         at com.sap.xss.hr.rem2.selection.VcRem2SelectionInterface.onInit(VcRem2SelectionInterface.java:161)
         at com.sap.xss.hr.rem2.selection.wdp.InternalVcRem2SelectionInterface.onInit(InternalVcRem2SelectionInterface.java:144)
         at com.sap.xss.hr.rem2.selection.wdp.InternalVcRem2SelectionInterface$External.onInit(InternalVcRem2SelectionInterface.java:220)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:869)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:229)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1344)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:356)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:549)
         at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:593)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:865)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

  • Getting Invalid Cursor error in a procedure

    Hi,
    I have a procedure(1) which inturn calls another procedure(2) which does some task.
    Procedure(1) accepts response from Procedure(2).
    The error code of procedure(2) is *0* which is the success response.
    Iam getting 0 from Procedure(2).
    But still Procedure(1) gives me a Invalid cursor error ( eventhough all the cursors are closed and opened ).
    Any suggestion on this????

    procedure p_create_conn -- Procedure(1) which is the calling proc
    is
    begin
    connectivity_api.p_create_connection -- Procedure(2) called proc
    in_scheme_number => in_scheme_number
    ,in_a_lp_sysid => in_a_lp_sysid
    ,in_z_lp_sysid => in_z_lp_sysid
    ,in_interconnect_name => in_interconnect_name
    ,in_mux_usage => in_mux_usage
    ,in_mux_type => in_mux_type
    ,out_a_end_sne => v_out_a_sne_id
    ,out_z_end_sne => v_out_z_sne_id
    ,out_sss_id => v_out_sss_id
    ,out_error_code => out_error_code
    ,out_error_message => out_error_message
    ,in_a_port_name => in_a_port_name
    ,in_a_port_signal => in_a_port_signal
    ,in_z_port_name => in_z_port_name
    ,in_z_port_signal => in_z_port_signal
    ,in_trs_area => in_trs_area
    ,in_alternate_id => in_alternate_id
    ,in_dcn_equipment_name => in_dcn_equipment_name
    ,in_dcn_equipment_id => in_dcn_equipment_id
    ,in_dcn_equipment_notes => in_dcn_equipment_notes
    ,in_tcode => in_tcode
    if out_error_code != 0 --- Error code from Procedure(2) is 0 in my case
    then
    raise ex_p_create_connection;
    end if;
    -- Faliing after success response here
    workflow_utils.create_link
    in_link_type => 'A'
    ,in_source_workflow_name => con_wf_scheme_type
    ,in_source_record_id => in_scheme_number
    ,in_trigger_state => 'initial'
    ,in_dest_workflow_name => con_wf_connectivity
    ,in_dest_record_id => v_out_sss_id
    ,in_dest_from_state => null
    ,in_dest_to_state => null
    ,in_terminate_source => 'N'
    ,in_terminate_dest => 'N'
    ,in_user_account_name => v_user
    -- in this proc all the cursors have been closed properly.
    exception
    when ex_p_create_connection
    then
    null;
    when others
    then
    out_error_code := sqlcode;
    out_error_message := sqlerrm;
    end p_create_connection;
    Is that fine with you????

Maybe you are looking for

  • Report Generation tool kit for MS office (Opening an existing excel file and appending to the bottom)

    I don't have any problems creating and filling an excel sheet with data. I use the New Report.vi, Easy Title.vi, and Easy Text.vi to create the file. I then save and dispose properly. What I don't seem to be able to do is open the exsting file and ap

  • Cost are not updated in the PMIS.

    Dear All I am using ECC 6 in our companey. Till July 2008 the cost for Internal Material,External Material cost, Internal wage cost, External wage cost, & service cost were showing properly. But from the month of august it is not getting updated. It

  • PDF Reader Control in VBA with Adobe Reader

    Can I use the "Adobe PDF Reader" control on a VBA user form on a machine with only Adobe Reader (v9) installed? I would like to create a form similar to the one depicted on page 25 in http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devn

  • Unzipping files using java.util

    I am trying to unzip files using java.util.zip It works fine when I am trying to unzip a file that is already residing on the server. But I want to unzip the file that user will upload to the server . My code is uploading zip file to server but not a

  • No longer allowed to make in-app purchases

    Please help, any suggestions would be great.