IR Saved Report  - Download to CSV downloads Primary Report

Hi there
I'm using Apex 4.1, I login to my Apex application NOT using the developer interface (the developer buttons are not visable at the base of the page) as an end user would see.
If I run an IR report and then create a filter on the Primary report the report runs OK. I then click Actions -> Download and then Download the report output to a CSV file (correctly filtered) to a Excel spreadsheet. I then Save this report giving the report a Name and Description. I then logoff from the Apex application. So far so good.
I then login back on to my Apex Application. When I choose and run the Saved Report (described above - not the Primary report) the saved report runs correctly (applying the correct filter condition), HOWEVER when I then click on Actions - Download I seem to get the Primary report downloaded as a CSV file into my Excel spreadsheet - the filter condition that is applied to the saved rerport is ignored for the Downloaded CSV file. The File Downloaded is a new CSV file generated in Apex as reported in my Firefox 'Downloads' list.
Does anyone know if this is a Bug or have I not set up the IR correctly.
Thanks in Advance
Edited by: boketi on Aug 13, 2012 3:18 PM

boketi wrote:
Hi Mehabub,
Many thanks for the quick response.
Did you test this in version 4.1 of Apex? I logged on to Oracle's 4.2 Early Adopter Beta Site and did the same and the IR works fine! Maybe it's a strange problem in 4.1 although I doubt it as with such a problem there would be a lot more noise on this forum. Could this be related to the 'theme' that I'm using? As the theme I'm using was origionally developed for Apex 3.2 and I don't think IR reports were around in 3.2?There is a good chance that it has to do with the theme or the upgrade from Apex 3.2. Interactive reports existed in 3.2 also user defined reports. But a lot of changes were made to the IR logic since 3.2 (introduction of multple standard reports, etc.).
I just tested your case in my Apex 4.1.1 version in an application that was also upgraded from 3.2. And the data was stored correctly into a csv file.
But it is useing one of the standard themes that was also updated.
Did you set the compatibility mode of your application to 4.1?
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#AEAPI2329
begin
   apex_util.set_compatibility_mode(<application id>, '4.1');
   commit;
end; Just because the environment is Apex 4.1 does not mean you application runs in 4.1. mode.

Similar Messages

  • Problem With Saved IR's And CSV Downloads.

    Apex 3.2
    I have found a strange problem.
    I have an interactive report and 2 of the columns (msg and msg_1) are based on the same data.
    One column (msg) is to display in the report and the other (msg_1) for the download. I do this by
    putting conditions on the columns.
    :REQUEST IS NULL OR :REQUEST NOT IN ('CSV') - for report
    :REQUEST IN ('CSV') - for download
    This works well.
    If I take msg out of the report and then save as named report.
    When I export to excel, then msg_1 column no longer appears, which I think is wrong.
    If I put the msg column back into the report and save and export to excel, the msg_1
    is still not there.
    I have put an example of oracle.com
    Workspace: GUSCRIGHTON
    User: [email protected]
    Password: terminator
    Application: 29545 - Template
    Page 1
    Am I doing something wrong or is this a bug
    Gus

    Hi,
    I think it is not bug. You need first remove conditions from both columns and then select those to report.
    Then save default report layout and then set conditions.
    But if user change witch columns are displayed in report your msg_1 column will not be in download.
    Better way archive what you looking for is use CASE WHEN is select e.g.
    CASE WHEN :REQUEST IN ('CSV') THEN
    msg_1
    ELSE
    msg
    END AS msg
    I did add example to your sample in apex.oracle.com
    Regards,
    Jari

  • Getting no data found error while CSV download

    Hi,
    I have a report generated from the PL/SQL returning the query and I enabled the CSV Download option. But, when I try downloading the report contents using CSV download option, the excel sheet contains message "no data found". I enabled sorting and sum on few columns. Is it anywhere related to CSV download? Any solution would be really helpful..
    Thanks,
    Prabhakar

    Thanks for the help!! yep, it is indeed the wrong session state value. In the report, I was modifying the value to display the report, hence when CSV download is given, it was taking wrong session state value. So, giving "no data found" error. Probably, this may help some people.
    Regards,
    Prabhakar

  • Download CSV of Interactive Report

    Hi,
    I am using Apex 4.1 and Oracle 11g.
    Can anyone pls help me with this below issue.
    select a,b,c,'<font style="font-size:10px; background-color:#FF0000; color:black" nowrap>'|| d ||'</font>',e from table_name
    a,b,c,d are column names.
    I have used the above HTML code for giving background color for single column. But when I am downloading the Report in CSV format through Actions Menu on Interactive Report in the d column i am getting the HTML code also along with data in it which i dont want. I want only the data to come into CSV not the HTML code along with it.
    Regards,
    Shoaib
    Edited by: Shoaib581 on 04-Jun-2012 01:15

    mahmoudrabie wrote:
    Dear Shoaib,
    i am getting the HTML code also along with data in it which i dont want. I want only the data to come into CSV not the HTML code along with it. 1) Right click on the interactive report ---> edit report attributes
    2) Change the column (Display Text As) to *(Standard Report Column)* for column d
    This does not solve the problem because he is getting the html code in CSV and not in browser
    >
    <font style="font-size:10px; background-color:#FF0000; color:black"  nowrap>'|| d ||'</font>Stop using font tag because it is deprecated
    Please remove the html formatting from the sql query and use the Interactive report Actions Menu > Format > Hightligh option
    Login as developer Go to Actions Menu > Save > Save as default > primary report to save it as default for all users
    http://apex.oracle.com/pls/apex/f?p=46417:4
    Login test/test

  • Htmldb_application.g_excel_format for CSV download from Interactive Report

    I have an Interactive Report which I would like to modify so that it downloads to CSV different fields than it displays (some of the online displayed fields are hypertext links). In the past, dealing with "classic" APEX reports, I did this by defining 2 versions of the relevant fields, one for display and one for download. I then used a PLSQL condition checking htmldb_application.g_excel_format to determine which version of the field to use. I have tried this using the Interactive Report, and it does not work for me. I would greatly appreciate any help in resolving this issue. In both the online and downloaded version of the report, I am seeing the hypertext links.
    I am using APEX 3.1.1, running on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options.

    Your CSV-File use "comma" as separator. But Excel think, that CSV-File separator is "semicolon".
    Try to set "CSV Separator"=";" in section "Report Attributes" - "Download".

  • ORA-20876: Stop APEX Engine message in CSV download from Interactive Report

    Hi,
    1 particular Interactive Report in our application produces the following error message in the CSV file, if we attempt to download the report: -
    ORA-20876: Stop APEX Engine
    All other reports work OK, there is another thread here with the same issue, but no resolution was posted: APEX 4.1 ORA-20876: Stop APEX Engine
    Has anyone else come across this issue?
    Apex version is 4.1.0.00.32
    Thanks,
    Mike
    Edited by: Mike, UK on Mar 6, 2012 9:39 PM

    Hi,
    what happens if you take the query from IR report and create a new classic report?
    On this report enable csv export and then try the export.
    Maybe that (format) data are causing export to fail.
    Try to export just one row in your IR report (and classic report), so that you add where rownum < 2.
    Regards,
    Aljaz
    Edited by: Aljaz on 6.3.2012 23:11
    Edited by: Aljaz on 6.3.2012 23:29

  • Download to CSV problem in APEX report

    Greetings,
    I have a report that retrieves a lot of rows from the database, I have set the Mx Row Count to 25000. When the user tries to click on the download to csv link, it just works for a while and times out.
    The other problem in this is that the report itself is taking a long time to run.
    Any suggestions on improving the performance and solve the above mentioned problem will be greatly appreciated.
    Thanks
    Vatsa

    select b.KB_SUITE_NAME SUITE, a.KB_TEST_CASE_NAME TESTCASE, b.kb_test_phase PHASE, a.KB_TEST_CASE_DESCRIPTION, a.KB_TEST_CASE_AUTHOR AUTHOR,
    get_feature_from_ddts(b.KB_SUITE_FEATURE) FEATURE,
    c.REQ_NAME TAG, e.REQ_DESC
    from KB_TEST_CASE a, KB_SUITE b, KB_TC_REQ c, KB_TC_SUITE d, KB_REQUIREMENTS e
    where a.KB_TEST_CASE_ID = d.KB_TEST_CASE_ID and
    a.KB_TEST_CASE_ID = c.KB_TEST_CASE_ID and
    d.KB_SUITE_ID = b.KB_SUITE_ID and
    c.req_name = e.req_name and
    b.proj_id = :p3_proj
    It's a very simple query.. the same query runs in less than 2 seconds on SQL Navigator.. but when I run it from APEX it takes like 5 minutes.

  • Report format changed when download to csv

    hi ,
    i am creating intreractive report and applying control break on my report , but when i download report to csv .
    and open in excel then it doesn't shows me control break report in excel.
    what can i do..?

    Hello Matt,
    I recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Interactive Report - Download as csv

    Hi,
    I am using apex 4.0.2.00.07 on IE8 with theme Traditional Blue. I have a problem with the inbuild download functionality of an interactive report. One field is of type varchar2 and I allow line breaks in the underlying edit screen.
    I simply do not find a way to handle this formatting in the export to csv. The data is always completely shredded. An example:
    Input form:
    Name (text field):
    Bob
    Address (text area):
    Street(<linebreak>)
    City
    IReport SQL: select NAME, ADDRESS from USERS
    In the IR form it will show as
    Name || Address
    Bob || Street City
    An export to csv will make this to
    Name,"Address"
    Bob,"Street
    City"
    I have tried all settings of the report attribute 'Display Type' for field Address, but it will always be the same in the IR and always the same in the export. How do I ensure that the whole content of a table field is displayed as one value in the csv, with no regards to potentially present field formatting, e.g. in my case:
    Name,"Address"
    Bob,"Street City"
    And if we are already at it: I have seen that some plugins for an export to excel exist. Would that recognise the formatted text and place it in one cell or would I face the same issue here, i.e. the field value being split over several cells?
    Thanks a lot,
    Martin

    Well, found some answers after some more trial and error.
    1.) Country settings messed up my csv format. After changing the default column separator in the report attributes, things now look as expected.
    2.) One can rather easily suppress the format signs by using the sql replace functionality, e.g.
    SELECT REPLACE (my_column, CHR(10),' ') FROM my_table
    And it is actually quite a difference if you use text area or rich text fields when it comes to the usage of the breaks.
    Cheers,
    Martin

  • Need the selected filters in the Interactive Report CSV download

    A CSV download from the IR shows the table data.
    I need a mechanism to insert the Filter criteria selected by the user within the CSV download.
    Basically I have a search screen which brings the user to the interactive report and I would like to capture the search criteria the user entered in the CSV download.
    Thank
    Sumit

    Hi,
    This might help
    http://simonhunt.blogspot.com/2009/02/auditing-downloads-from-interactive.html
    Br,Jari

  • Interactive Report Download to csv problem

    Hi,
    I have 2 applications. Both in the same workspace, same APEX version. Within those applications I have Interactive Reports.
    When I use the download to CSV (IR) in the first application I get all the available data in my CSV. It ignores the filters that are applied!
    The second application does not have this problem. If I have an IR with 10000 rows and I apply a filter to select only a 100 rows and I download, I get my 100 rows in csv.
    It's suppose to work as I describe for the second application. I want to download the rows with the filter applied. What could cause this??

    I had an similar issue.  Found out submitting the CSV action was nulling out my filter as viewed in session state.  the page item I was using needed to have the SOURCE changed from "Always replace..." to "Only when NULL..."  This fixed the Download issue.

  • Downloading to .csv from BIEE produces wrong data

    Hello all! :)
    I'm sorry if this has been discussed before, please do direct me to the thread if this has been resolved.
    Anyway, I did a simple report to simulate one that is being requested by the user. One particular field displays a number with two decimal places. I find no issues with the display, up to the point when I download the report as data (.csv). Viewing the data (in Excel - by default) also do not present any problems until I select the specific cell with the value.
    The data which should read out 11.87, for instance, has been converted to 11.8699999656. I checked if the data may have been changed through retrieval, but this was a simple select case and the data in the Oracle table also contained 11.87.
    Please do reply if you have any ideas how I could investigate this further.
    Thank you!
    Cheers,
    Cha

    Hi all,
    as this is unfortunately a normal excel behavior we did a workaround and put an << ' >> ahead of the output so that CSV interrprets the date as text, that solved our problem.

  • Header and footer on a csv download

    Hi
    Is there an easy way to add an extra header and footer to a csv download ?
    What the user wants is a csv of the format
    New heading --- the additional heading
    col name, col name ..... -- the existing column names
    value, value ..... -- the existing values
    New footer -- some new text footer
    I have tried break formatting but have had no success. The csv produces perfectly but I can't get the additional lines added !
    Ta
    Bob

    No unfortunately I have not found the time to do a blog yet.
    Create a blank page and create an AFTER HEADER pl/sql process.
    Then add code like the following, changing query as needed
    declare
       cursor result_cur is
          select empno, ename, job
            from emp;
    begin
       htp.init; -- Wipe out the buffer
       owa_util.mime_header ('application/excel',false);
       htp.p('Content-Disposition: attachment; filename="FormResults.csv"');
       owa_util.http_header_close;
       -- write your header
       htp.p('This is my header');
       htp.p(' ');
       -- write out the column names
       htp.print ( 'Emp Num, Employee Name, Job' );
       --write out each row
       for it in result_cur loop
          htp.print ( '"'||it.empno||'","'||it.ename||'","'||it.job||'"' );
       end loop;
       -- write out footer
       htp.p(' ');
       htp.p('This is my footer');
       -- Send an error code so that the
       -- rest of the HTML does not render
       htmldb__application.g_unrecoverable_error := true;
    end;you can call this by making it the redirect target of a button or by adding something like the following in the footer section of your report region assuming the page you created the above process on was page 9
    <a href="f?p=APP_ID.:9:&SESSION.">Click here to download CSV</a>sorry the code above shows a # and does not show the f p syntax url which should be f followed by a ?p=&AMP;APP_ID.:9&AMP;:SESSION.
    Edited by: Larry Linnemeyer on May 20, 2009 8:08 AM

  • Download to excel from web report generated through ITS

    We were on SAP 4.6B. We have several abap reports for which we have a web interface using ITS. On the broweser output we have provided a URL which reads 'Download to CSV file' . This has been achieved by modifying the function www_get_report. The mod first generates a unique filename and exports the name to the memory and generates the hyperlink. The abap report program ftp'ies a the csv file to the ITS server path as in the URL.
    Now we have upgraded to ECC 5.0 and we want to achieve the download to CSV option without the modification. What would be the best way to achieve this in the netweaver platform.

    Sofia,
    The same report query runs for downloading the data into excel, I don't think you can limit the number of records in download.
    You can achieve it using custom code, like on click of download excel redirect to another page and then restrict the data as per your need, or you can use the custom procedure to download the limited data.
    Denes' utility to download into excel.
    http://htmldb.oracle.com/pls/otn/f?p=31517:108:1476564836494581:::RP,::
    Regards,
    Manish

  • Time Out during Download of CSV file

    Hello everybody,
    I need some hints regarding CSV Downloads.
    In some cases I am getting just blank pages after starting a CSV Download.
    It seems to be related to the a,ount of data.
    At about 5000 rows the download works fine, but with about 10.000 rows I am getting blank page.
    It does not matter wether the download is started from an interactive report vie the menue or from a static report via the link.
    I know that the query is running at about 20 seconds for the 5.000 rows.
    A look into the Enterprise Manager tells me that the following function is using nearly all the CPU time during this session.
    declare
    rc__ number;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    begin
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 63;
    null;
    null;
    simple_list__(1) := 'sys.%';
    simple_list__(2) := 'dbms\_%';
    simple_list__(3) := 'utl\_%';
    simple_list__(4) := 'owa\_%';
    simple_list__(5) := 'owa.%';
    simple_list__(6) := 'htp.%';
    simple_list__(7) := 'htf.%';
    if ((owa_match.match_pattern('f', simple_list__, complex_list__, true))) then
    rc__ := 2;
    else
    null;
    null;
    f(p=>:p);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    end if;
    :rc__ := rc__;
    end;
    My ApEx-Version is 3.1.2.
    Anybody any idea what might cause this problem?
    Regards, Tine.

    Hi,
    if your APEX applications are accessed from Oracle HTTP Server (OHS) you can increase the 'TimeOut' directive in the OHS configuration.
    The default value for this directive is 300 seconds.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14190/netconf.htm#sthref267
    Kind regards,
    Iloon

Maybe you are looking for