Error in fetch

dear sirs
this code return only the last record and i would like that this code return all the record in table
the code is
PROCEDURE TRANS IS
v_connect EXEC_SQL.CONNTYPE;
sqlstr varchar2(1000);
nRes PLS_INTEGER;
curid EXEC_SQL.CURSTYPE;
v_deptno number;
v_dname varchar2(100);
v_loc varchar2(100);
BEGIN
v_connect := EXEC_SQL.OPEN_CONNECTION('scott/tiger@orcl');--Defining Connection
--Opening Cursor in Oracle
curid := EXEC_SQL.OPEN_CURSOR(v_connect);
--Parsing & Executing Non-Oracle Query in Oracle
BEGIN
EXEC_SQL.PARSE(v_connect, curID,'select to_char(deptno),dname,loc from dept');
END;
nRes := EXEC_SQL.EXECUTE(v_connect, curID);
--Defining Column Sequence using Variables
EXEC_SQL.DEFINE_COLUMN(v_connect, curID, 1, v_deptno);
EXEC_SQL.DEFINE_COLUMN(v_connect, curID, 2, v_dname ,30 );
EXEC_SQL.DEFINE_COLUMN(v_connect, curID, 3, v_loc ,30 );
WHILE (EXEC_SQL.FETCH_ROWS(v_connect, curID)>0) LOOP
     --Fetching Column Values in Variables
     EXEC_SQL.column_value(v_connect,curID,1,v_deptno);
     EXEC_SQL.column_value(v_connect,curID,2,v_dname);
     EXEC_SQL.column_value(v_connect,curID,3,v_loc);
END LOOP;
:CONTROL.deptno:=v_deptno;
     :CONTROL.dname:=v_dname;
     :CONTROL.loc := v_loc;
END;
pls help

PROCEDURE TRANS IS
v_connect EXEC_SQL.CONNTYPE;
sqlstr varchar2(1000);
nRes PLS_INTEGER;
curid EXEC_SQL.CURSTYPE;
v_deptno number;
v_dname varchar2(100);
v_loc varchar2(100);
BEGIN
v_connect := EXEC_SQL.OPEN_CONNECTION('scott/tiger@orcl');--Defining Connection
--Opening Cursor in Oracle
curid := EXEC_SQL.OPEN_CURSOR(v_connect);
--Parsing & Executing Non-Oracle Query in Oracle
BEGIN
go_block('CONTROL');
FIRST_RECORD;
EXEC_SQL.PARSE(v_connect, curID,'select to_char(deptno),dname,loc from dept');
END;
nRes := EXEC_SQL.EXECUTE(v_connect, curID);
--Defining Column Sequence using Variables
EXEC_SQL.DEFINE_COLUMN(v_connect, curID, 1, v_deptno);
EXEC_SQL.DEFINE_COLUMN(v_connect, curID, 2, v_dname ,30 );
EXEC_SQL.DEFINE_COLUMN(v_connect, curID, 3, v_loc ,30 );
WHILE (EXEC_SQL.FETCH_ROWS(v_connect, curID)>0) LOOP
--Fetching Column Values in Variables
EXEC_SQL.column_value(v_connect,curID,1,v_deptno);
EXEC_SQL.column_value(v_connect,curID,2,v_dname);
EXEC_SQL.column_value(v_connect,curID,3,v_loc);
:CONTROL.deptno:=v_deptno;
:CONTROL.dname:=v_dname;
:CONTROL.loc := v_loc;
NEXT_RECORD;
END LOOP;
:CONTROL.deptno:=v_deptno;
:CONTROL.dname:=v_dname;
:CONTROL.loc := v_loc;
NEXT_RECORD;
END;

Similar Messages

  • Fatal error while fetching data from bi

    hi,
    i am getting following error while fetching data from bi using select statement
    i have written code in this way
    SELECT  [Measures].[D2GFTNHIOMI7KWV99SD7GPLTU] ON COLUMNS, NON EMPTY { [DEM_STATE].MEMBERS} ON ROWS FROM DEM_CUBE/TEST_F_8
    error description when i click on test
    Fatal Error
    com.lighthammer.webservice.SoapException: The XML for Analysis provider encountered an error

    thanks for answering .but when i tried writing the statement in transaction 'MDXTEST' and clicked on check i am getting following error
    Error occurred when starting the parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Message no. BRAINOLAPAPI011
    Diagnosis
    Failed to start the MDX parser.
    System Response
    timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Procedure
    Check the Sys Log in Transaction SM21 and test the TCP-IP connection MDX_PARSER in Transaction SM59.
    SO I WENT IN SM 59 TO CHECK THE CONNECTION.
    CAN U TELL ME WHAT CONFIGERATION I NEED TO DO FOR MAKING SELECT STATEMENTS WORK?

  • Getting error while fetching Log data using B1TE Tools

    Hi,
    i am using B1TE Tools to test an add on which generating an error while fetching the Log File using DI Logs Reader. The error is below:
    "Wrong Xml file format. "The data at the root level is invalid, Line 1, position 1.".
    please report it on B1TE blog"
    Please help..
    Regards,
    Sunita

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • "There was an error attaching fetch UID ^[Gmail]^^Drafts ..."

    Went to Drafts and clicked the Edit button at the top of an email. Clicked Send, and got this Send Message Error dialogue box:
    "Sending of message failed.
    There was an error attaching fetch>UID>^[Gmail]^^Drafts>22573. Please check if you have access to the file."
    Clicked OK, the only option. New dialogue box, Save Draft Error:
    "Unable to save your message as draft.
    There was an error attaching fetch>UID>^[Gmail]^^Drafts>22573. Please check if you have access to the file."
    Clicked OK, the only option. Clicked Send again - Send Message Error dialogue box again.
    There was an image in the email, in the message from the other party.
    Just in case it's related, I've recently had other problems - see https://support.mozilla.org/en-US/questions/1024916.

    Is the file open in Pages when you're trying to attach it? Save and close it first.

  • BO XI R 3.1 SP 2 fix pack 2.1 - Database error occured - "Error on fetch"

    Hi Ingo,
    As per SAP recommendation we have upgraded our SAP BI system from BI 7.0 to BI 7.01 (Enhancement Pack 1).
    And BO XI R 3.1 SP 2 to BO XI R 3.1 SP 2 fix pack 2.1.
    After applying fix pack 2.1 on BO server, suddenly the reports on one of the Universes throwing error as follows:
    A database error occured. The database error text is : (CS) "Error on Fetch". (WS 10901).
    We have to apply Enhancement pack (SAP BI 7.01) and fix pack 2.1 (on BO) before this weekend on production environment.
    Can you please help us if you are having any idea why this error occurs upon BO fix pack 2.1 installation.
    Regards,
    Ravi Kumar Garre
    Edited by: Ravi Kumar Garre on Dec 3, 2009 3:02 AM

    Hi Ingo,
    The query works well in SAP BI side using RSRT / BEx Analyzer.
    I have created a new universe on same BI Query, still the problem exist.
    We have created one new BEx query on same InfoProvider and then Universe. It works fine.
    Regards,
    Ravi Kumar Garre

  • Duplicity & Google docs : Error while fetching remote entries

    Hello, after hdd crashed in my home server I'm paying attention to make backups with duplicity now.
    But when run duplicity command:
    duplicity /path/to/folder gdocs://user:[email protected]/Backup/
    I get this error:
    Import of duplicity.backends.giobackend Failed: No module named gio
    BackendException: Error while fetching remote entries: 'DocsClient' object has no attribute 'get_everything'.

    I had python-gdata installed as duplicity told me to do it. Python2-gobject2 fixed the first error but second one still remains.

  • We got some error while fetching your calendar events.

    We got some error while fetching your calendar events. Please try again. Please try again.
    Suddenly I receive the above message and cannot access my calendar list of events although the calendar itself is displayed. I have closed down several times but the message persists.I am using MAC OSX Snow Leopard/ Firefox 4.01

    I have this same problem. Using XP Home SP3 and Firefox 8.0

  • Error when fetching into a variable of ROWTYPE

    I came across with a vied error when creating the body of a method.
    Problem:
    I have a Type called Emp_typ and a corresponding table Emp_tab.
    When I create the body of get method it gives the following error msg :
    Compilation errors for PACKAGE BODY CHAMITH.EMP_API
    Error: PLS-00386: type mismatch found at 'EMP_ROW' between FETCH cursor and INTO variables
    Line: 9
    Text: fetch get_emp_rec into emp_row;
    Get Method body :
    function get(id_ number) return emp_tab%rowtype IS
    cursor get_emp_rec IS
    select * from emp_tab;
    emp_row emp_tab%rowtype;
    begin
    open get_emp_rec;
    fetch get_emp_rec into emp_row;
    close get_emp_rec;
    return emp_row;
    end;
    However when I do the same without having a type upon the table emp_tab, it works fine.
    Pls give me a solution for that.
    Thanks,
    Chamith

    Hi,
    Let me know the Oracle Database Version.
    Regards,
    Sailaja

  • Error for fetching long text in xml tag for xml publisher report

    My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
    G_MEDIA...
    XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
    G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
    data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
    If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
    in xml tag.
    One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
    Please help.

    Hi,
    Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report...

  • Error when Fetching CATs Data to BI

    Hi,
    I have created data source in R/3 System (Source System) for CATS data and extracting data Using function Module. Using transaction RSA3 it is fetching all the desired records in R/3 System.
    In BI System extracting Full Data and when monitoring it is throwing Error.
    Error 7 when sending an IDoc
    Error when opening an RFC connection    2
    Error when opening an RFC connection
    Errors in source system
    Function Module for fetching CATS Data
    FUNCTION ZLBTIME_GET_CATSREC.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SRSC_S_IF_SIMPLE-REQUNR
    *"     VALUE(I_DSOURCE) TYPE  SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
    *"     VALUE(I_READ_ONLY) TYPE  SRSC_S_IF_SIMPLE-READONLY OPTIONAL
    *"     VALUE(I_REMOTE_CALL) TYPE  SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
    *"  TABLES
    *"      I_T_SELECT TYPE  SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  ZLSCATS OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
    * Example: DataSource for table SFLIGHT
    *  TABLES: SFLIGHT.
    * Auxiliary Selection criteria structure
      DATA: L_S_SELECT TYPE SRSC_S_SELECT.
    * Maximum number of lines for DB table
      STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
    * counter
              S_COUNTER_DATAPAKID LIKE SY-TABIX,
    * cursor
              S_CURSOR TYPE CURSOR.
    * Select ranges
    **  RANGES: L_R_CARRID  FOR SFLIGHT-CARRID,
    **          L_R_CONNID  FOR SFLIGHT-CONNID.
    * Initialization mode (first call by SAPI) or data transfer mode
    * (following calls) ?
      IF I_INITFLAG = SBIWA_C_FLAG_ON.
    * Initialization: check input parameters
    *                 buffer input parameters
    *                 prepare data selection
    * Check DataSource validity
        CASE I_DSOURCE.
          WHEN 'ZLTIME_DS_3'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE E009(R3). ENDIF.
    * this is a typical log call. Please write every error message like this
            LOG_WRITE 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      I_DSOURCE   "message variable 1
                      ' '.                 "message variable 2
            RAISE ERROR_PASSED_TO_MESS_HANDLER.
        ENDCASE.
        APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
    * Fill parameter buffer for data extraction calls
        S_S_IF-REQUNR    = I_REQUNR.
        S_S_IF-DSOURCE = I_DSOURCE.
        S_S_IF-MAXSIZE   = I_MAXSIZE.
    * Fill field list table for an optimized select statement
    * (in case that there is no 1:1 relation between InfoSource fields
    * and database table fields this may be far from beeing trivial)
        APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
      ELSE.                 "Initialization mode or data extraction ?
    * Data transfer: First Call      OPEN CURSOR + FETCH
    *                Following Calls FETCH only
    * First data package -> OPEN CURSOR
        IF S_COUNTER_DATAPAKID = 0.
    * Fill range tables BW will only pass down simple selection criteria
    * of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
    **      LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'CARRID'.
    **        MOVE-CORRESPONDING L_S_SELECT TO L_R_CARRID.
    **        APPEND L_R_CARRID.
    **      ENDLOOP.
    **      LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'CONNID'.
    **        MOVE-CORRESPONDING L_S_SELECT TO L_R_CONNID.
    **        APPEND L_R_CONNID.
    **      ENDLOOP.
    * Determine number of database records to be read per FETCH statement
    * from input parameter I_MAXSIZE. If there is a one to one relation
    * between DataSource table lines and database entries, this is trivial.
    * In other cases, it may be impossible and some estimated value has to
    * be determined.
    **      OPEN CURSOR WITH HOLD S_CURSOR FOR
    **      SELECT (S_S_IF-T_FIELDS) FROM SFLIGHT
    **                               WHERE CARRID  IN L_R_CARRID AND
    **                                     CONNID  IN L_R_CONNID.
            OPEN CURSOR WITH HOLD s_cursor FOR
    *        SELECT * FROM zlvctmbw.
            SELECT a~counter a~pernr a~workdate a~skostl a~lstar a~rproj a~awart a~kokrs a~meinh a~tcurr a~price
                   a~unit a~bukrs a~ersda a~erstm a~ernam a~laeda a~laetm a~status a~refcounter a~reason a~belnr
                   a~catshours a~act1 a~act2 a~task a~lang1 a~narr1 a~lang2 a~narr2 a~cmnt a~clst a~plchl
                   b~ltxa1 b~transfer b~hrkostl b~hrlstar b~hrcostasg b~statkeyfig b~catsquantity b~bemot
                   c~pspnr c~pspid
                   d~kunnr
            FROM   catsdb AS a
            LEFT OUTER JOIN catsco AS b ON a~counter = b~counter
            JOIN   prps AS p ON p~pspnr = a~rproj
            JOIN   proj AS c ON c~pspnr = p~psphi
            JOIN   zltproj AS d ON d~pspnr = c~pspnr.
        ENDIF.                             "First data package ?
    * Fetch records into interface table.
    *   named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR S_CURSOR
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE E_T_DATA
                   PACKAGE SIZE S_S_IF-MAXSIZE.
        IF SY-SUBRC <> 0.
          CLOSE CURSOR S_CURSOR.
          RAISE NO_MORE_DATA.
        ENDIF.
        S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
      ENDIF.              "Initialization mode or data extraction ?
    ENDFUNCTION.
    When fetching data using VIEW in source system it works fine.
    When testing for fetching data of SFLIGHT using function module ZRSAX_BIW_GET_DATA_SIMPLE
    made a copy of RSAX_BIW_GET_DATA_SIMPLE, it is working fine.
    Pls suggest the cause of error.
    Regards
    Vishal

    Hello Praveen,
    Connection is fine as I tried fetching data of SFLIGHT using standard template function module which works fine and in transaction sm58 I do not any data.
    Regards
    Vishal

  • Error when fetching a binary value from a resul set

    SQL ERROR CODE: 17002; SQL ERROR MSG: Io exception: Bigger type length than Maximum
    The above mentioned error occurs when I try to fetch a binary column from a result set. I execute the following statement in my code.
    byte[] byteArr = jresultset.getBytes(columnIndex);
    i also tried to use getObject instead of getBytes and experienced the same problem.
    Any help is appreciated.

    Hi Isaias,
    we are working with this versions:
    SAP_BASIS     700     0015     SAPKB70015     SAP Basiskomponente
    SAP_AP                     700     0013     SAPKNA7013     SAP Application Platform
    We are not working with developer studio, only with the regular tools of the abap development workbench Transaction SE80.
    Thanks,
    Fouad

  • Error while fetching Users from AD Tree

    Dear Gurus,
    I am connecting my NetWeaver 7.01 GRC ABAP stack to AD for fetching the Users. I have successfully created the LDAP Server, Connector and System User and I am able to connect to the AD.
    The problem I am facing is that when I put my Base Entry as the bootom level, I am able to create users using RSLDAPSYNC_USER program but when I put the base entry as my top level DC, it gives an error "Operation Failed" with code no LDAPRC001.
    Kindly guide if I can fetch all users in a single go, using the top level base entry? Otherwise it will be very difficult for me to identifiy all low level OUs and then fetching data individually changing base entry every time.
    Hope I am able to explain my problem..
    Thanks
    Jitendra Tayal

    Check this thread it might put you in the right direction,
    Problem with LDAP connector
    Regards
    Juan

  • Error while fetching data from OWB Client using External Table.

    Dear All,
    I am using Oracle Warehouse Builder 11g & Oracle 10gR2 as repository database on Windows 2000 Server.
    I facing some issue in fetching data from a Flat File using external table from OWB Client.
    I have perform all the steps without any error but when I try to view the data, I got the following error.
    ======================================
    RA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774)
         at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)
         at oracle.wh.ui.owbcommon.QueryResult.<init>(QueryResult.java:18)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleQueryResult.<init>(OracleDVTableModel.java:48)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleDVTableModel.doFetch(OracleDVTableModel.java:20)
         at oracle.wh.ui.owbcommon.dataviewer.RDVTableModel.fetch(RDVTableModel.java:46)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel$1.actionPerformed(BaseDataViewerPanel.java:218)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel.executeQuery(BaseDataViewerPanel.java:493)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.init(BaseDataViewerEditor.java:116)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.<init>(BaseDataViewerEditor.java:58)
         at oracle.wh.ui.owbcommon.dataviewer.relational.DataViewerEditor.<init>(DataViewerEditor.java:16)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.wh.ui.owbcommon.IdeUtils._tryLaunchEditorByClass(IdeUtils.java:1412)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1349)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1367)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:869)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:856)
         at oracle.wh.ui.console.commands.DataViewerCmd.performAction(DataViewerCmd.java:19)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ===========================
    In the error it is showing that file expense_categories.csv in SOURCE_LOCATION not found but I am 100% sure that file is very much there.
    Is anybody face the same issue?
    Do we need to configure something before loading data from a flat file from OWB Client?
    Any help would higly appreciable.
    Regards,
    Manmohan Sharma

    Hi Detlef / Gowtham,
    Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
    One way I have achieved as suggested by you
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copy all flat files on OWB Server
    5) Updated the location which I created at the client.
    Other way
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
    Hence my problem solved.
    Thanks a lot.
    Regards,
    Manmohan

  • Getting an error while fetching the data and bind it in the Tree table

    Hi All,
    I am getting an error "A navigation paths parameter object has to be defined - " while fetching the data and bind it in the Tree table.
    Please find the code and screenshot below
    var oModel = new sap.ui.model.odata.ODataModel("../../../XXXX.xsodata/", true);
    var oTable = sap.ui.getCore().byId("table");
    oTable.setModel(oModel);
    oTable.bindRows({
        path: "/Parent",
        parameters: {expand: "Children"}
    Can anyone please give me a suggestion to rectify this?
    Thanks in Advance,
    Aravindh

    Hi All,
    Please see the below code. It works fine for me.
    var oController = sap.ui.controller("member_assignment");
    var oModel = new sap.ui.model.odata.ODataModel("../../../services/XXXX.xsodata/", true);
    var Context = "/PARENT?$expand=ASSIGNEDCHILD&$select=NAME,ID,ASSIGNEDCHILD/NAME,ASSIGNEDCHILD/ID,ASSIGNEDCHILD/PARENT_ID";
    var oTable = sap.ui.getCore().byId("tblProviders");
    oModel.read(Context, null, null, true, onSuccess, onError);
    function onSuccess(oEventdata){
        var outputJson = {};
        var p = 0;
        var r = {};
        try {
            if (oEventdata.results){
                r = oEventdata.results;
        } catch(e){
            //alert('oEventdata.results failed');
        $.each(r, function(i, j) {
            outputJson[p] = {};
            outputJson[p]["NAME"] = j.NAME;
            outputJson[p]["ID"] = j.ID;
            outputJson[p]["PARENT_ID"] = j.ID;
            outputJson[p]["DELETE"] = 0;
            var m = 0;
            if (j.ASSIGNEDCHILD.results.length > 0) {
                $.each(j.ASSIGNEDCHILD.results, function(a,b) {
                outputJson[p][m] = { NAME: b.NAME,
                                     ID : b.ID,
                                     PARENT_ID: b.PARENT_ID,
                                     DELETE: 1};
                m++;
            p++;
        var oPM = new sap.ui.model.json.JSONModel();
        oPM.setData(outputJson);
        oTable.setModel(oPM);
    function onError(oEvent){
        console.log("Error on Provider Members");
    oTable.bindRows({
        path:"/"
    Regards
    Aravindh

  • UCM with VCR in WLP error while fetching

    Hi,
    I am getting this error after 6 hours and unable to fetch the query in placeholder in WLP 10.3 for the first time i am able to see the content
    Placehoder:
    <?xml version="1.0" encoding="UTF-8"?>
    <placeholder is-complete="true" xsi:schemaLocation="http://www.bea.com/servers/p13n/xsd/placeholder/1.1.1 placeholder-1_1_1.xsd" xmlns="http://www.bea.com/servers/p13n/xsd/placeholder/1.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cq="http://www.bea.com/servers/p13n/xsd/content/query/1.1.1">
    <name>tet</name>
    <type>Ad</type>
    <mixGlobals>false</mixGlobals>
    <contentQueries>
    <queryDefinition>
    <queryName/>
    <cq:contentQuery logic="and">
    <cq:contentPropertyComparison logic="and" propertySet="UCMRepository/IDC:Folder" name="dDocAuthor" type="string">
    <cq:like-ignore-case>
    <cq:literal>sysadmin</cq:literal>
    </cq:like-ignore-case>
    </cq:contentPropertyComparison>
    </cq:contentQuery>
    <queryPriority>normal</queryPriority>
    </queryDefinition>
    </contentQueries>
    </placeholder>
    content-config.xml:
    <content-store>
    <name>UCMRepository</name>
    <description>UCM Repository Configuration</description>
    <class-name>com.oracle.content.spi.ucm.RepositoryImpl</class-name>
    <!-- <username>sysadmin</username> -->
    <username>venu</username>
    <repository-property>
    <description>Hostname on which the UCM Content Server is running </description>
    <name>ContentServerHostname</name>
    <!-- <value>sncbcolbertncoe.mcafee.int</value> -->
    <value>10.226.173.4</value>
    </repository-property>
    <repository-property>
    <description>Port on which the UCM Content Server is running (on host named above) </description>
    <name>ContentServerPort</name>
    <value>4444</value>
    </repository-property>
    <repository-property>
    <description>Content Server Username in Admin role, used for security checks</description>
    <name>ContentServerAdminUser</name>
    <!-- <value>sysadmin</value> -->
    <value>venu</value>
    </repository-property>
    <repository-property>
    <description>Protocol used to connect with the UCM Server. Valid options are INTRADOR or INTRADOC_SSL</description>
    <name>ContentServerServiceType</name>
    <value>INTRADOC</value>
    </repository-property>
    <repository-property>
    <description>List of folder ObjectClasses</description>
    <name>folder_badge_objectClasses</name>
    <value>IDC:Folder</value>
    </repository-property>
    <repository-property>
    <description>Polling interval in minutes for the UCM Adapter CacheInvalidatorInterval job (must be greater than 2 minutes). This cache automatically invalidates cached content in WLP as content is changed on the UCM server</description>
    <name>CacheInvalidationInterval</name>
    <value>2</value>
    </repository-property>
    <repository-property>
    <name>useNativeSecurity</name>
    <value>true</value>
    </repository-property>
    <repository-property>
    <description>Specifies a UCM user account that is used to retrieve all types (ObjectClasses) from UCM.</description>
    <name>TypeRetrievalShapeUser</name>
    <!-- <value>sysadmin</value>-->
    <value>venu</value>
    </repository-property>
    <read-only>true</read-only>
    <binary-cache-max-entry-size>102400</binary-cache-max-entry-size>
    <search-is-enabled>true</search-is-enabled>
    <fulltext-search-is-enabled>true</fulltext-search-is-enabled>
    <search-indexing-is-enabled>false</search-indexing-is-enabled>
    </content-store>
    p13n-cache-config.xml
    <cache>
    <name>nodeCache.UCMRepository</name>
    <description>Caches node id to node instance for UCMRepository</description>
    <time-to-live>60000</time-to-live>
    <max-entries>50</max-entries>
    </cache>
    <cache>
    <name>nodePathCache.UCMRepository</name>
    <description>Caches node path to node instance for UCMRepository</description>
    <time-to-live>60000</time-to-live>
    <max-entries>50</max-entries>
    </cache>
    <cache>
    <name>typeCache.UCMRepository</name>
    <description>Caches binary property values for UCMRepository</description>
    <time-to-live>300000</time-to-live>
    <max-entries>200</max-entries>
    </cache>
    <cache>
    <name>typenameCache.UCMRepository</name>
    <description>Caches type id to content type for UCMRepository</description>
    <time-to-live>300000</time-to-live>
    <max-entries>200</max-entries>
    </cache>
    <cache>
    <name>binaryCache.UCMRepository</name>
    <description>Caches type name to content type for UCMRepository</description>
    <time-to-live>60000</time-to-live>
    <max-entries>10</max-entries>
    </cache>
    <cache>
    <name>searchCache.UCMRepository</name>
    <description>Caches node id to node for UCMRepository</description>
    <time-to-live>300000</time-to-live>
    <max-entries>200</max-entries>
    </cache>
    <cache>
    <name>nativeAuthCacheUCMRepository</name>
    <description>Caches node path to node for UCMRepository</description>
    <time-to-live>5000</time-to-live>
    <max-entries>5000</max-entries>
    </cache>
    <cache>
    <name>repo.ucm.typeNameCache.UCMRepository</name>
    <description>Caches node id to node instance for UCMRepository</description>
    <time-to-live>1800000</time-to-live>
    <max-entries>5000</max-entries>
    </cache>
    <cache>
    <name>repo.ucm.nodePathToUidCache.UCMRepository</name>
    <description>Caches node id to node instance for UCMRepository</description>
    <time-to-live>1800000</time-to-live>
    <max-entries>5000</max-entries>
    </cache>
    <cache>
    <name>repo.ucm.nodeUidCache.UCMRepository</name>
    <description>Caches node id to node instance for UCMRepository</description>
    <time-to-live>1800000</time-to-live>
    <max-entries>5000</max-entries>
    </cache>
    <cache>
    <name>repo.ucm.securityInfoCache.UCMRepository</name>
    <description>Caches node id to node instance for UCMRepository</description>
    <time-to-live>1800000</time-to-live>
    <max-entries>5000</max-entries>
    </cache>
    <cache>
    <name>repo.ucm.typeNamesCache.UCMRepository</name>
    <description>Caches node id to node instance for UCMRepository</description>
    <time-to-live>1800000</time-to-live>
    <max-entries>5000</max-entries>
    </cache>
    <cache>
    <name>repo.ucm.indexedFieldsCache.UCMRepository</name>
    <description>Caches node id to node instance for UCMRepository</description>
    <time-to-live>1800000</time-to-live>
    <max-entries>5000</max-entries>
    </cache>
    Error stacktrace:
    <Jan 13, 2010 6:08:14 PM IST> <Error> <WebLogicServer> <BEA-000337> <[STUCK] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "700" seconds working on the request "weblogic.servlet.internal.ServletRequestImpl@1b86f4b[
    POST /testprojectEARToolSupport/PlaceholderPreview?phtype=Ad HTTP/1.1
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    Content-Length: 666
    Cache-Control: no-cache
    Pragma: no-cache
    User-Agent: Java/1.6.0_05
    Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
    Connection: keep-alive
    Authorization: Basic d2VibG9naWM6d2VibG9naWM=
    ]", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace:
         java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
         java.lang.StringBuilder.append(StringBuilder.java:119)
         com.bea.content.spi.flexspi.common.capability.MethodCapabilityDefinition.buildId(MethodCapabilityDefinition.java:112)
         com.bea.content.spi.flexspi.common.capability.MethodCapabilityDefinition.<init>(MethodCapabilityDefinition.java:40)
         com.bea.content.federated.internal.delegate.RepositoryManagerDelegate.getMethodCapabilities(RepositoryManagerDelegate.java:268)
         com.bea.content.federated.internal.delegate.RepositoryManagerDelegate.findTicketCapabilities(RepositoryManagerDelegate.java:413)
         com.bea.content.federated.internal.delegate.RepositoryManagerDelegate.getTicketInterfaceCapabilities(RepositoryManagerDelegate.java:655)
         com.bea.content.federated.internal.delegate.RepositoryManagerDelegate.connectToRepository(RepositoryManagerDelegate.java:987)
         com.bea.content.federated.internal.delegate.RepositoryManagerDelegate.ensureConnectedToRepository(RepositoryManagerDelegate.java:808)
         com.bea.content.federated.internal.delegate.RepositoryManagerDelegate.connect(RepositoryManagerDelegate.java:1100)
         com.bea.content.federated.internal.delegate.RepositoryHelper.getInterface(RepositoryHelper.java:642)
         com.bea.content.federated.internal.delegate.DelegateFactory.getLatestObjectClassOps(DelegateFactory.java:111)
         com.bea.content.federated.internal.delegate.DelegateFactory.getObjectClassOpsDelegate(DelegateFactory.java:47)
         com.bea.content.federated.internal.delegate.SPIObjectHelper.configurePropertyDefinition(SPIObjectHelper.java:463)
         com.bea.content.federated.internal.delegate.SPIObjectHelper.configureObjectClass(SPIObjectHelper.java:426)
         com.bea.content.federated.internal.delegate.LatestObjectClassOpsDelegate.getObjectClassWithId(LatestObjectClassOpsDelegate.java:157)
         com.bea.content.Node.getObjectClass(Node.java:600)
         com.bea.content.Node.getPrimaryProperty(Node.java:828)
         com.bea.p13n.content.internal.RenderableContentNodeWrapper.getPrimaryProperty(RenderableContentNodeWrapper.java:34)
         com.bea.p13n.ad.AdHelper.getPrimaryProperty(AdHelper.java:448)
         com.bea.p13n.ad.AdHelper.getPrimaryMimeType(AdHelper.java:581)
         com.bea.p13n.ad.internal.AdBucketServiceBean.previewContent(AdBucketServiceBean.java:594)
         com.bea.p13n.ad.internal.AdBucketService_2bd1ao_EOImpl.previewContent(AdBucketService_2bd1ao_EOImpl.java:504)
         com.bea.p13n.placeholder.internal.PlaceholderServiceImpl.previewContent(PlaceholderServiceImpl.java:314)
         com.bea.p13n.placeholder.internal.PlaceholderService_snavek_EOImpl.previewContent(PlaceholderService_snavek_EOImpl.java:433)
         com.bea.p13n.placeholder.servlets.PlaceholderPreviewServlet.showResults(PlaceholderPreviewServlet.java:355)
         com.bea.p13n.placeholder.servlets.PlaceholderPreviewServlet.doGet(PlaceholderPreviewServlet.java:156)
         com.bea.p13n.placeholder.servlets.PlaceholderPreviewServlet.doPost(PlaceholderPreviewServlet.java:169)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
         weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
         weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         weblogic.security.service.SecurityManager.runAs(Unknown Source)
         weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
         weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
         weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    Any Clues????????
    Thanks in Advance,
    user8867138

    Hi Venu,
    Normally if you can see the UCM content in the admin console, it means the adapter is configured correctly and the placeholder should work. There's a couple of things I can suggest:
    1. Did you include the oracle-ucm-spi-app-lib.ear file in your project as documented under the heading Add a Reference to the UCM VCR Adapter Shared Library in the UCM VCR adapter installation docs ( [http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/install.html|http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/ucm_adapter/install.html] )?
    2. Browse to a document in the repository in the admin console. Pick one of the fields there (e.g. IDC:Folder.dDocId), grab the value and run a query using the placeholder. Do you get a single result?
    3. The original poster (user8867138) mentions a query along the lines of returning all folders that has dDocAuthor = sysadmin. If your UCM system had 10,000 folders all created by sysadmin, the adapter might be timing out? IIRC, you can adjust the timeout in UCM.
    4. Did you try a similar query using Content Selector instead?
    5. If the WLP server domain is running on a separate machine, is UCM configured to accept connections from the WLP server but not your machine?
    I would suggest getting the latest patches for WLP too as some of them are related to the UCM VCR adapter.
    Cheers,
    Cappa

  • Error in fetching the data from textfield and inserting to the database..

    I'm using Java Swing as front end and MySQL as backend using the netbeans ide..I am trying to fetch the data from the textfiled in the form and insert to the database table.i've skipped the generated code..In the following code i get the erro cannot find symbol "stmt" in the actionPerformed method..
    mport java.awt.event.*;
    import java.sql.*;
    public class BarcodeReader extends JFrame implements ActionListener {
    public BarcodeReader() {
    initComponents();
    nb.addActionListener(this);
    public void jdbcConnect(){
    Connection con=null;
    String url = "jdbc:mysql://localhost:3306/";
    String db = "mynewdatabase";
    String driver = "com.mysql.jdbc.Driver";
    String user = "usrname";
    String pass = "pwd";
    try{
    String s=newtxt.getText();
    con=DriverManager.getConnection(url + db, user, pass);
    Statement stmt=con.createStatement();
    Class.forName(driver);
    public void actionPerformed(ActionEvent e){
    try{
    jdbcConnect();
    stmt.executeUpdate("INSERT into machine(mname) values '"+jTextField1.getText()+"'");
    }}catch (Exception ex) {
    System.out.println(ex);
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new BarcodeReader().setVisible(true);
    }

    There are far too many errors to try and clear.
    For one, the exception references the actionPerformed method (according to your text), so why is that not shown here?
    For another you are performing, possible time-consuming, actions, and even worse IO actions, on the event thread, which is a huge no-no.
    You are not closeing your resources properly, if at all, which is another huge no-no.
    You are completely mixing your "view" (the gui), and your "model" (the data related classes), which is another huge no-no.
    etc, etc, etc.

Maybe you are looking for

  • How to connect SAP user to a webdynpro and how to pass parameters ?

    Hello, I have two technical questions : 1) How to recognize user from Portal and to get his pernr from SAP Backend (SSO to configure with SAP R/3 ?, use a bapi to get the pernr with the name and firstname of the portal user ?) 2) How to open a new wi

  • 5th Gen ipod won't sync a video podcast

    I have a 80GB iPod, only a month and a half old, 5th Gen. Thing is, I downloaded 5 video podcasts today, all from the same author. One of these podcasts WILL sync onto my iPod, however the other four won't, saying that the video format isn't supporte

  • ESS workflow customization

    One small info required generally about these ESS workflows. Are the ESS workflow templates  different from the standard R/3 workflow given for HR module. Does the transaction data store temporarliy in some tables especially maintained for ESS before

  • Interpret xml metadata

    Objective: u2022     Get the Metadata from SAP BW system into XML file u2022     Modify the data in XML file using .NET interface / re-engineering tool u2022     Upload the modified data from XML file to target BW System (BI 7.0) Requirement: 1.     

  • Keep zero in date format

    I've been searching and searching for this answer. I have a Date field in a form on LiveCycle. This is not a field that anyone enters the date, but it simply puts the current date in. I would like it to keep the 0's in the format.  So if the date is