Can't insert more than 8000 rows to excel via JOB

Hello, 
I have SSIS package where I have two tasks.
File System task copies file (with header names) to destination folder.
Data flow task export data from table to copied Excel file. Select are simple "select * from table" without any filters.
There are about 100 000 rows in the table.
When I run this task through Visual studio everything works fine. Data to Excel file is exported.
When I run this package in JOB (Job Activity Monitor) the file is created but 0 rows is exported.
One interesting thing, that when I use select "select top 7000 * from table" 7000 rows is inserted but when I try to export more than 8000 rows then 0 rows is exported. The JOB generates 0 errors. In fact he tries to export. Because all the time
Excel's file "Date modified" is changing.
It seems like data is exported but the final "commit" isn't done. Anybody knows where could be a problem?

Out of curiosity I have had a go at reading 70K lines of data from a table in a sql server and exporting them to an excel 2007 file:
SSIS 2012 project deployment
2 project connections: sql database connection for source
and an Excel 2007 connection for destination:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=F:\Data\Outbox\ExcelOut.xlsx;Extended Properties="Excel 12.0 XML;HDR=YES";
I have an empty excel 2007 file as template with header rows in the first sheet.
I test the project in VS 2012, ran without problems. 
I set DelayValidation to true on package level, data flow level.
In data flow, excel distination, ValidataExternal metadata to False. 
I deploy the project with the package to an Integration Services catalog on a SQL 2012 server (not my development machine)
I copy an empty excel 2007 file (with the headers in the first row) in the correct file location.
I execute the package from SSMS in the Integration services catalogs, with 32 bit checked.
The package runs without errors. 
I can open the excel file and see 70K records.
Last thought: I have no NULL values in my data. Do you have null values after the first 7000 records? Or is one of the excel columns expecting numerical data where it suddenly finds alfanumeric after 7000 rows?
Another suggestion: if you run the package with SSMS from the catalog, you can set the verbose reporting mode on, does that tell you anything more?
Jan D'Hondt - SQL server BI development

Similar Messages

  • Unable to insert more than 9 rows at a time

    Hi there,
    I have to insert more than 5000 rows in my table at a time,but i am not able to insert more than 10 ROWS AT ATIME.
    Do we need to do some that at the data base level for this to happen??????
    Thanks in Advance.

    Rather than give us unhelpful comments like "still its not taking", why don't you show us exactly what you're doing? We can't help you if you don't give us enough information.
    I've tried it and it works fine:
    SQL> create table customer (dealership_id number,
      2  region varchar2(100),
      3  customer_no number,
      4  firstname varchar2(100),
      5  lastname varchar2(100),
      6  address varchar2(100),
      7  city varchar2(100),
      8  state varchar2(100),
      9  zip varchar2(100),
    10  country varchar2(100),
    11  phone_number varchar2(100),
    12  email varchar2(100),
    13  gender varchar2(1),
    14  age number,
    15  transaction_date date);
    Table created.
    SQL> ed
    Wrote file afiedt.buf
      1  begin
      2  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
      3  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
      4  TRANSACTION_DATE ) VALUES (
      5  1, 'West', 546, 'Maria L', 'Umali', '515 W 59th St', 'San Francisco', 'California'
      6  , 10019, 'United Sta', '2122478223', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
      7  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
      8  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
      9  TRANSACTION_DATE ) VALUES (
    10  24, 'East', 547, 'Justa', 'Viafara', '66 Avenue C', 'Charleston', 'West Virginia'
    11  , 10009, 'United Sta', '2126736156', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    12  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    13  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    14  TRANSACTION_DATE ) VALUES (
    15  22, 'East', 548, 'C', 'Vignola', '41 Carmine St', 'Miami', 'Florida', 10014, 'United Sta'
    16  , '2122436687', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    17  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    18  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    19  TRANSACTION_DATE ) VALUES (
    20  2, 'West', 549, 'Catherine', 'Vignola', '16 Barrow St', 'San Diego', 'California'
    21  , 10014, 'United Sta', '2129297697', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    22  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    23  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    24  TRANSACTION_DATE ) VALUES (
    25  10, 'West', 550, 'Ashley', 'Weare', '275 W 96th St', 'Oakland', 'California', 10025
    26  , 'United Sta', '2128652935', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    27  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    28  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    29  TRANSACTION_DATE ) VALUES (
    30  9, 'West', 551, 'Shamire A', 'Zobadi', '446 W 46th St', 'San Jose', 'California', 10036
    31  , 'United Sta', '2129740994', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    32  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    33  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    34  TRANSACTION_DATE ) VALUES (
    35  20, 'East', 552, 'Iride', 'Ciaccio', '130 Wisner Ave', 'Baltimore', 'Maryland', 12550
    36  , 'United Sta', '9145612058', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    37  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    38  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    39  TRANSACTION_DATE ) VALUES (
    40  17, 'Central', 553, 'Cecil', 'Jackson', '30 Lake Dr', 'Houston', 'Texas', 12550, 'United Sta'
    41  , '9145617354', '[email protected]', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    42  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    43  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    44  TRANSACTION_DATE ) VALUES (
    45  4, 'West', 554, 'M P', 'Prabhu', '590 River Rd', 'Scottsdale', 'Arizona', 12550, 'United Sta'
    46  , '9145656155', 'null', 'F', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    47  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    48  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    49  TRANSACTION_DATE ) VALUES (
    50  16, 'Central', 555, 'Jacob', 'Agam', '221 E 61st St', 'Ann Arbour', 'Michigan', 10021
    51  , 'United Sta', '2127524408', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    52  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    53  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    54  TRANSACTION_DATE ) VALUES (
    55  23, 'East', 556, 'Alkis', 'Agaphogleous', '208 W 15th St', 'Fairfax', 'Virginia', 10011
    56  , 'United Sta', '2126478725', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    57  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    58  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    59  TRANSACTION_DATE ) VALUES (
    60  19, 'East', 557, 'Ponti C', 'Cia', '251 Central Park W', 'New York', 'New York', 10024
    61  , 'United Sta', '2128777400', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    62  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    63  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    64  TRANSACTION_DATE ) VALUES (
    65  27, 'West', 558, 'Steve', 'Ciabbatoni', '71 Broadway', 'Phoenix', 'Arizona', 10006
    66  , 'United Sta', '2128639140', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    67  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    68  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    69  TRANSACTION_DATE ) VALUES (
    70  13, 'Central', 559, 'Pascale', 'Coadou', '307 E 89th St', 'Austin', 'Texas', 10028
    71  , 'United Sta', '2128769343', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    72  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    73  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    74  TRANSACTION_DATE ) VALUES (
    75  21, 'East', 560, 'Arthur G', 'Coake', '95 W 95th St', 'Boston', 'Massachusetts', 10025
    76  , 'United Sta', '2122221851', '[email protected]', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    77  INSERT INTO CUSTOMER ( DEALERSHIP_ID, REGION, CUSTOMER_NO, FIRSTNAME, LASTNAME, ADDRESS, CITY,
    78  STATE, ZIP, COUNTRY, PHONE_NUMBER, EMAIL, GENDER, AGE,
    79  TRANSACTION_DATE ) VALUES (
    80  15, 'Central', 561, 'B P', 'Coakley', '139 W 35th St', 'Minneapolis', 'Minnesota'
    81  , 10001, 'United Sta', '2126863187', 'null', 'M', 39, TO_Date( '01/10/2005 12:00:00 AM', 'MM/DD/YYYY HH:MI:SS AM'));
    82* end;
    SQL> /
    PL/SQL procedure successfully completed.
    SQL> select count(*) from customer;
      COUNT(*)
            16

  • How can i insert more than one record a time in a JSP page?

    Hi experts,
    I'm working with JDeveloper version 3.2 application server 9i.
    I want to insert more than 1 record using a jsp page and then perform a commit at the end.
    do you can help me with this problem/challenge?
    Thank you,
    Regards,
    Mario

    statement.executeBatch() maybe?

  • How can I DISPLAY MORE THAN ONE ROW OF PHOTOS WHEN CREATING A BOOK?

    Can I display more than A SINGLE ROW of ohotos on the right side of the page when I am creating a photo book? I have 500 pics and this single bar is ridiculous.

    Command (right) - click on a photo in the Photo tray and select Small Photo from the contextual menu:
    This will give you two columns of photos.
    To reduce the number of photos to select from one can select only Unplaced Photos to be displayed in the tray.
    Happy Holidays

  • How can I display more than 15 rows in a stacked 3D horizontal flash chart

    It seems I cannot display more than 15 rows at a time in a stacked 3D horizontal flash chart.
    Any ideas?
    Thanks, Pierre

    The default history length of a chart is 1024. To make it longer is a right click option.

  • Not uploading more than 150 rows from Excel file to Internal table.

    Hi All,
    We have a Z program to upload initial stock from excel file to SAP using BAPI. The problem is we have defined row to '65536'. But it is not uploading more than 150 rows at a time. The piece of code is given below.
    DATA : it_excel LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    DATA: xcel TYPE TABLE OF alsmex_tabline WITH HEADER LINE.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '3',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    PERFORM upload_excel_file TABLES   gt_out
                                  USING   p_file
                                          gd_scol
                                          gd_srow
                                          gd_ecol
                                          gd_erow.
    FORM upload_excel_file  TABLES   gt_out
                                       "Insert correct name for <...>
                            USING    p_p_file
                                     p_gd_scol
                                     p_gd_srow
                                     p_gd_ecol
                                     p_gd_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
      DATA : ld_index TYPE i.
      FIELD-SYMBOLS: <fs> TYPE ANY.
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename    = p_p_file
          i_begin_col = p_gd_scol
          i_begin_row = p_gd_srow
          i_end_col   = p_gd_ecol
          i_end_row   = p_gd_erow
        TABLES
          intern      = lt_intern[].
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
          MOVE lt_intern-col TO ld_index.
          ASSIGN COMPONENT ld_index OF STRUCTURE gt_out TO <fs>.
          MOVE lt_intern-value TO <fs>.
          AT END OF row.
            APPEND gt_out.
            CLEAR gt_out.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.           
    Plz tell me, what is the problem here. I want to upload all the rows at a time.
    Thanks,
    With regards,
    Rosaline.

    Hi Rob, I confirm, you're nitpicking! :-D For information, I've noted a few SAP comments about releasing and released objects, for people who like reading: [SAP Library - Documenting and Releasing a Function Module|http://help.sap.com/saphelp_nw70/helpdata/en/d1/801f50454211d189710000e8322d00/frameset.htm], [Note 109533 - Use of SAP function modules|https://service.sap.com/sap/support/notes/109533], [Note 415983 - Modification/customer developments of SAP function modules|https://service.sap.com/sap/support/notes/415983]; Example of an unreleased BAPI -> [Note 577453 - Using BAPI BAPI_DELIVERYPROCESSING_EXEC|https://service.sap.com/sap/support/notes/577453]
    Sandra

  • Export more than  70000 rows to excel in OBIEE 10G

    Hi We are using
    Office 2003 and need to export more than 70000 rows from OBIEE to excel.Is there any way?

    Hi,
    Refer the below link.
    Re: Downloading / Exporting more than 65k records in Excel
    Thanks,
    Satya
    Edited by: Satya Ranki Reddy on Apr 18, 2013 2:41 PM

  • How to insert more than one row in an Oracle table in one go

    Hi All,
    I am working on a file-XI(BPM)-Oracle scenario.
    I am sending an xml file to XI via a file adapter. On the receiver end i am using a jdbc adapter to insert the row in the database. There is a transformation step within the BPM which is converting the file to a format understood by the JDBC adapter.
    The problem i am facing is that, even if my input xml file contains more than one recordset, only one row is created in the database with the first recordset.
    How can i insert all the other recordsets in the database at the same time.
    Pls guide
    Thanks in advance.
    Regards
    Neetu

    Hi,
    As asked by Bhavesh, i set the occurence of the STATEMENT tab 1 to UB. But still only one row is getting updated in the database at a time.
    As asked by Udo, i even tried the same by changing the occrence of ACCESS tab 1 to UB. But still same thing happened.
    Can there be some other problem.
    The transformation is being dane in the BPM.
    As seen in SXMB_MONI, the input xml to the BPM has two RECORDSET tags but the output generated xml in the format understood by jdbc adapter has a single STATEMENT tag.
    The two formats are given below
    <b>Input:</b>     
            <?xml version="1.0" encoding="utf-8"?>
         <ns:MT_Test_File xmlns:ns="http://namespace-EmpNumberGen">
         <EmpGenRecord>
              <APPLICANT_NO>20</APPLICANT_NO>
              <FIRST_NAME>abc</FIRST_NAME>
              <LAST_NAME>xyz</LAST_NAME>
              <FUNCTION>ADMIN</FUNCTION>
              <DESIGNATION>ZA</DESIGNATION>
              <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
              <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
              <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
              <STATUS>A</STATUS>
              <***>M</***>
         </EmpGenRecord>
         <EmpGenRecord>
              <APPLICANT_NO>14</APPLICANT_NO>
              <FIRST_NAME>abc</FIRST_NAME>
              <LAST_NAME>xyz</LAST_NAME>
              <FUNCTION>ADMIN</FUNCTION>
              <DESIGNATION>ZA</DESIGNATION>
              <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
              <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
              <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
              <STATUS>A</STATUS>
              <***>M</***>
         </EmpGenRecord>
    </ns:MT_Test_File>
    <b>Output</b>
            <?xml version="1.0" encoding="UTF-8"?>
         <ns0:MT_Emp_No_Generation xmlns:ns0="http://namespace-EmpNumberGen">
         <Statement>
              <SAP_EMPGEN action="INSERT">
                   <access>
                   <APPLICANT_NO>20</APPLICANT_NO>
                   <FIRST_NAME>abc</FIRST_NAME>
                   <LAST_NAME>xyz</LAST_NAME>
                   <FUNCTION>ADMIN</FUNCTION>
                   <DESIGNATION>ZA</DESIGNATION>
                   <RESPONSIBILITY_LEVEL>dd</RESPONSIBILITY_LEVEL>
                   <RECRUITMENT_TYPE>dd</RECRUITMENT_TYPE>
                   <EMPLOYEE_TYPE>p</EMPLOYEE_TYPE>
                   <STATUS>A</STATUS>
                   <***>M</***>
                   </access>
              </SAP_EMPGEN>
         </Statement>
         </ns0:MT_Emp_No_Generation>
    This is a bit urgent.
    Pls help
    Regards
    Neetu

  • How to write more than 65536 data in excel Via Labview in one column

    I have more than 65536 data and i want to write these data in excel sheet. It is giving Error:-
    "Description:-
    Error -2146827284 occurred at an unidentified location
    This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input."
    Less than 65536 data can be written....
    Please give some solution...

    This is not a limitation of LabVIEW writing to a spreadsheet file but a limitation of Microsoft Excel (and also of Notepad) itself.
    One option could be, you can switch to Excel 2007 or higher verison...!!
    Other solution could be, forget about writing to Excel, instead write in some other format and use LabVIEW your other compatible (with large data) application to read it back.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Cannot insert more than 1 row

    The insert statement is insert as select, and select is restricted by rownum. When rownum < 2 then it works (ie. only one row is inserted). When rownum < 3 and more it doesn't work (and without rownum condition there are over 200k rows, and it doesn't work either).
    Why could it be like that? The process is logged and it clearly shows for rownum < 2 that one row is inserted:
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Oct 20 10:46:02 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
    10:46:02 SQL> set serveroutput on
    10:46:02 SQL>
    10:46:02 SQL> WHENEVER SQLERROR EXIT SQL.SQLCODE
    10:46:02 SQL>
    10:46:02 SQL> insert into tmp2 select x,y from tmp where rownum < 2;
    1 row created.
    Elapsed: 00:00:00.00
    10:46:02 SQL>
    10:46:02 SQL> commit;
    Commit complete.
    Elapsed: 00:00:00.00
    10:46:02 SQL>
    10:46:02 SQL> exit sql.sqlcode
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing optionswhile for rownum < 3 it ends and doesn't insert anything:
    SQL*Plus: Release 11.2.0.1.0 Production on Sat Oct 20 10:50:03 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
    10:50:03 SQL> set serveroutput on
    10:50:03 SQL>
    10:50:03 SQL> WHENEVER SQLERROR EXIT SQL.SQLCODE
    10:50:03 SQL>
    10:50:03 SQL> insert into tmp2 select x,y from tmp where rownum < 3;Any guesses about it? I don't have idea where to start.

    Well I find that hard to believe.but this is what I can read from the log.. it ends after insert statement.
    When you run scripts from a command window and the script 'ends' you get returned to the command window and you will get whatever prompt has been configured. So there has to be 'something' - it it just ended it would be hung and you would have to use ctrl-c to get out.not exactly. I tried to run it from shell as typing sqlplus user/pass @/path/script.sql, and it worked. but after reading your answer I also ran it as executing original KSH script (which calls sql script inside), and it ran successfully too.
    But you say that this is the very last thing you see on the screen for the nonworking example. [..] So you now say 'thre is no more output than shown. it just ends after "insert ... where rownum < 3".yes, this is correct. the last line I see in log is just insert statement.
    So explain how it can 'just end' without your system being hung, without the script exiting, without the Oracle connection being disconnected and without the command window displaying some kind prompt (either SQL or OS). You also did not indicate whether you removed the WHENEVER SQLERROR line and you appear to be piping into a log file but haven't posted that either.OK, I overlooked this. here is the detailed situation. we have a propertiary scheduling tool. you just point a KSH file in this tool and it runs it at specified time. how it actually runs it I don't know, but I don't see command window, I just see logs. and when I look into the log it shows just insert statement as last line for rownum < 3. it shows other lines like elapsed, commited etc for rownum < 2. And yes, of course, I followed your suggestion and removed whenever line. what I was reffering earlier was after this removal: no change in log.
    let me summarize:
    1) sql runs in 3rd party sql tool
    2) sql runs from inside sqlplus
    3) runs when KSH is executed directly in shell manually
    4) runs from shell when sqlplus is called with user/pass and @/path/scriipt.sql
    5) doesn't run when executed with scheduling tool for rownum < 3, runs for rownum < 2
    You gave me quite a good hint about the cause. nothing comes to my mind except.. calling the support of this scheduling tool :)
    do you see other possibilities other that you mentioned? key violation is not causing it, I can load the whole table manually.
    thank you

  • How can i return more than one row in plsql

    Hi,
    This plsql return single row , but i need to written n number of row in the table, give some idea brifely please.,
    declare
    r_empname varchar2(20);
    r_project varchar2(50);
    begin
    select empname,project into r_empname,r_project
    from timesheet
    where project='ABC'; -- (I need without this condition)
    dbms_output.put_line(r_empname||r_project);
    exception when no_data_found then
    dbms_output.put_line('No Data');
    end;
    Message was edited by:
    hb venki

    Use SQL, not PL/SQL
    select empname||project
    from timesheet;Is much faster, more elegant and shorter too.

  • How can I insert more than one table into database simultaneously???

    I have a problem like that:
    I want to update(insert or update) into two tables in DB simultaneously when I click a certain button. Can you help me to solve this.
    Thanks.

    I have tried using a view but I get the Validation Error on a sequence generated attribute (HOTELID) as shown below:
    Validation Error
    You must correct the following error(s) before proceeding:
    JBO-26041: Failed to post data to database during "Insert": SQL Statement "BEGIN INSERT INTO HOTEL_LOGIN_VIEW(HOTELID,HOTELNAME,COUNTRY,LOCALCURRENCY,LOGINNAME,USERPASSWORD,USERROLE) VALUES (:1,:2,:3,:4,:5,:6,:7) RETURNING HOTELID INTO :8; END;".
    ORA-01779: cannot modify a column which maps to a non key-preserved table ORA-06512: at line 1
    I have not been able to resolve it and would appreciate your help.

  • Hierarchy question -- Can I insert more than one in a query?

    I have query where Iu2019m measuring sales across 5 divisions.  Sales are in the columns and the divisions are in the rows.  In the rows, I created a structure with 5 selections for each division.  Within each division, I need to insert a different hierarchy based on 0material.  Has anyone been successful with putting multiple hierarchies in a query?   Iu2019ve tried restricting each selection to their hierarchies but they arenu2019t displaying properly.

    statement.executeBatch() maybe?

  • Why can't insert more than two oam file at the same time in DW ?

    When I insert two oam at the same time, the page can't show any one!

    I found the problem, because I imported the width of two adaptive oam, then they can't show, here is the code, how do you look at me in the case of not cancel width adaptive to continue running
    =======================================================
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Home</title>
    <!--Adobe Edge Runtime-->
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <script>
      var custHtmlRoot="Untitled-1/Assets/";
      var script = document.createElement('script');
      script.type= "text/javascript";
    script.src = custHtmlRoot+"edge_includes/edge.5.0.1.min.js";
      var head = document.getElementsByTagName('head')[0], done=false;
      script.onload = script.onreadystatechange = function(){
      if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
      done=true;
      var opts ={
        scaleToFit: "width",
        centerStage: "none",
        minW: "0",
        maxW: "undefined",
        width: "550px",
        height: "400px"
      opts.htmlRoot =custHtmlRoot;
      AdobeEdge.loadComposition('Untitled-1', 'EDGE-1177204', opts,
      {"dom":{}}, {"dom":{}});
      script.onload = script.onreadystatechange = null;
      head.removeChild(script);
      head.appendChild(script);
      </script>
    <style>
            .edgeLoad-EDGE-1177204 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    <!--Adobe Edge Runtime-->
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <script>
      var custHtmlRoot="Untitled-2/Assets/";
      var script = document.createElement('script');
      script.type= "text/javascript";
    script.src = custHtmlRoot+"edge_includes/edge.5.0.1.min.js";
      var head = document.getElementsByTagName('head')[0], done=false;
      script.onload = script.onreadystatechange = function(){
      if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) {
      done=true;
      var opts ={
        scaleToFit: "width",
        centerStage: "none",
        minW: "0",
        maxW: "undefined",
        width: "550px",
        height: "400px"
      opts.htmlRoot =custHtmlRoot;
      AdobeEdge.loadComposition('Untitled-2', 'EDGE-1215759', opts,
      {"dom":{}}, {"dom":{}});
      script.onload = script.onreadystatechange = null;
      head.removeChild(script);
      head.appendChild(script);
      </script>
    <style>
            .edgeLoad-EDGE-1215759 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    </head>
    <body>
    <div id="Stage" class="EDGE-1177204"></div>
    <div id="Stage2" class="EDGE-1215759"></div>
    </body>
    </html>
    =======================================================

  • Export a BO  report to excel having more than 65500 rows

    Post Author: noble
    CA Forum: .NET
    Please let me know what are the different options available to export BO report having more than 65500 rows to excel 2003.

    Post Author: amr_foci
    CA Forum: .NET
    i think excel will not be able to handle all that records , you can devide your report into some tabs based on a specific condition for every tab, so when you export it to excel you will get many tabs as was exist in the the Business Objects report
    good luck

Maybe you are looking for

  • Clip Notes in CS4/Acrobat 9: exports transcript, no controls for QuickTime

    When I use the Transcribe feature, then export my project to Clip Notes, it exports every transcribed word as a separate comment. There doesn't seem to be any way of suppressing that, and there doesn't seem to be a way of deleting a transcription eit

  • External HDMI Monitor Slows Down Macbook Pro to Unbearable Speeds?

    I have my 2011 17" macbook hooked up via a Moshi HDMI adapter to a 24" Acer 1080p monitor... While the image shows properly it makes the computer completely unuseable. I can't play videos and it lags up the machine really bad. I don't get it... i pai

  • Sql --update statement --urgent

    i have an emp table with values ename rajeskumar venkakumar i want to update the first 5 characters of ename with vijay so my result should be like this ename vijaykumar vijaykumar

  • COnnecting 4th Generation Ipod to Alpine...

    My U2 edition works on firewire not USB and won't work with my new stereo... is there a firmware update or something to make it work with USB? thanks.... John

  • Labview.ex​e generated error

    "I am using LabVIEW 6.1 in windows 2000. I downloaded the Agilent3499A IVI from the website and configured the driver and everything. When I run the Initialize.vi, I have this following problem. LabVIEW.exe has generated errors and will be closed by