ORA-20876 in csv export from interactive report = Possibly a bug?

Hi Apex team,
yesterday i tried to download data to csv from an interactive report. The resulting csv file contained a "ORA-20876: Stop APEX Engine" only and no other data. I played around with other reports in my application and had no problems with exports.
After some investigation i found out that the buggy report contains a column of display type "Display as text (based on a LOV, escape special characters)". When I changed this column type to "Standard Report Column" for example, the error didn't appear anymore and the csv export contained complete data.
Maybe this is a bug? The environment is Apex 4.1.1.00.23 on 11g (UTF-8). Is there a workaround available?
Regards,
Jens
Edited by: j.gauger on 06.02.2013 14:10
Additional Information
The problem seems to occur only if a Shared Components LOV of type "Static" is referenced in the IR column.

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

Similar Messages

  • 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

  • Error in exporting from Interactive Report to PDF format

    Hello,
    i am using APEX and from an Interactive Report i am trying to export using Download | PDF format. The table and corresponding report has only text fields. Database character set is UTF-8. Up to now i haven't been able to get a PDF file that can be open from Adobe Acrobat Reader. Every file fails opening with message like "Adobe Reader could not open filename.pdf, because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). This happens for every report i have tried up to now. If i export report in CSV format all are ok.
    Is there a known bug with PDF download of APEX?
    TIA

    See this link: http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    FOP & Cocoon are free (just need to install the software and configure) Bi Publisher I believe works only for Standard Reports and no Interactive reports at this time.. If you have the $$ BI Publisher is worth the investment!!
    Also, it is rumored that APEX 4.0 will have the PDF generation built in as apposed to the current model where you need to bolt something on..
    Thank you,
    Tony Miller
    Webster, TX

  • Download CSV-File from Interactive Report

    Dear all,
    I want to download a CSV-File from a Interactive report.
    The content of the Rows in Excel:
    Erste,"B","C","D","E","F","G","H","I","J","K","L","M","N","O","P"
    IBC ->,"-","1","2","3","4","5","6","7","8","9","10","11","12","13","14" [...]
    How can I solve this problem?
    Thanks for help.

    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".

  • 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".

  • Download data from interactive report

    Hi all. I'm on apex 3.1.1.00.09.
    I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB.
    I would know if I must configure my apex in order to download correctly in pdf and if I must configure it in order to download in doc and xls format.
    Thanks all for collaboration,
    Fabrizio

    Thank you for your reply.
    I am able to download the csv file, but my problem is: I don't want the column headings to show.
    Is it possible to download only the data, not the column headings?

  • How to create .csv file from ABAP report

    Hi
    We have a requirement to generate .csv file from abap report.
    Currently user saves data from abap report to spreadsheet(.xls format) in desktop.  Then opens excel file and save as .csv format.  Need option to save directly in .csv format instead of .xls format.
    Please let me know, if there is any standard function module available to create .csv file.
    Regards
    Uma

    I tried with your code it's going to dump
    REPORT ZTEMP101 message-id 00.
    tables: lfa1.
    types: begin of t_lfa1,
          lifnr like lfa1-lifnr,
          name1 like lfa1-name1,
          end of t_lfa1.
    data: i_lfa1 type standard table of t_lfa1,
          wa_lfa1 type t_lfa1.
    types truxs_t_text_data(4096) type c occurs 0.
    data: csv_converted_table type table of TRUXS_T_TEXT_DATA.
    select-options: s_lifnr for lfa1-lifnr.
    select lifnr name1 from lfa1 into table i_lfa1
           where lifnr in s_lifnr.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = ';'
             I_LINE_HEADER              =
             I_FILENAME                 =
             I_APPL_KEEP                = ' '
      TABLES
        I_TAB_SAP_DATA             = I_LFA1
    CHANGING
       I_TAB_CONVERTED_DATA       = csv_converted_table
    EXCEPTIONS
       CONVERSION_FAILED          = 1
       OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
      BIN_FILESIZE                  = ' '
      CODEPAGE                      = ' '
       FILENAME                      =
       'C:\Documents and Settings\ps12\Desktop\Test folder\exl.cvs'
      FILETYPE                      = 'DAT'
      MODE                          = ' '
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        DATA_TAB                      = csv_converted_table
      FIELDNAMES                    =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_WRITE_ERROR              = 2
      INVALID_FILESIZE              = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      OTHERS                        = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    my version is 4.6c

  • Multiple CSV exports from the one button or pl/sql procedure?

    I need to have multiple csv exports from the one press of a button. The easiest way I found to do this is it to use javascript to popup three windows, each as a CSV link. This is a bit ugly though, and leaves the browser popup windows open when the file has been downloaded.
    I guess I could also make a solution based on branching, but I think that would be difficult to maintain and reeks of bad design (im not a fan of this spagetti GOTO style code!).
    I implemented Scott's custom CSV as found here: http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    However I would like to know if its possible to download more than one file using this method. I could not work out how to do this .
    Has anyone got any ideas? Simply repeating the code puts the second table into the original csv file. Is there a way to 'reset' the htp writer or smoething?
    Any help greatly appreciated,
    Alex

    Sorry for the confusion - I guess I mean its easy in .NET because you can simply compress files together and then send 1 zip file down as the response. See http://www.developer.com/net/net/article.php/11087_3510026_2 for details.
    I guess I could ask how to do this in APEX - but it seems to me that my original wording addresses the concept at a much more abstract level. I may not find the best solution for my problem if I just asked 'how can I dynamically zip together three tables as seperate files and send them to the client?'. I also suspect that this method is not possible in APEX without custom packages. Please prove me wrong!
    I guess even if I could find some kind of javascript that didnt open a new window, but was a direct download to the CSV, that would be a good compromise. At the moment when you click on the link, three windows come up and stay blank until the files are ready for downloading. Then after the files have been downloaded the windows must be shut manually. Yes, I could use javascript to make the windows 1x1 pixel perhaps, and then shut them after a predetermined timeframe - but this is hardly an elegant solution!
    Thanks for your responses.

  • How to enhance the Excel export from Crystal Reports

    Hello,
    I am new in Crystal Reports and I wonder if it is possible to enhance the Excel export from Crystal Reports with post-processing that would be applied to the Excel exported file.
    By example, is it possible to freeze the window panes, so rows and columns are frozen in place on the screen?
    Is there any possibility to obtain the file exported to excel to work with.
    Or maybe there is some ways to parametrize the Excel export from Crystal Reports?
    Any suggestions are welcomed.

    If you are using Crystal Reports 2008 you can use the Report Application SDK that is now available.
    It has a object called PrintOutputController that has an export method that allows you to get access to the exported file before you send it to the user.
    Check the Developer library and the samples for details.
    <a href="/blog/10">Rob&#39;s blog - http://diamond.businessobjects.com/robhorne</a>

  • Empty CSV exports of data from interactive reports.

    Currently using version 4.2.1.00.08 of APEX. My application has interactive reports; when I try to export data to CSV file, it is empty. Tried HTML, that just has the control widget for the report. I could swear this used to work. Thanks for any help.
    -jg-

    Hi!
    Check that the RFC is set as a trusted connection and it uses the current user for the connection.
    Check that you use the same user in RSCUSTV3 as in the source system you have set up in RSA1 for the REP and the BI client.
    Check that the user you use for this is configured as follow
    - On the tab Logon data select System as User Type, SUPER as User group and also enter an initial password; use password welcome.
    - On the tab Roles assign the roles SAP_BC_USR_CUA_CLIENT and SAP_BC_USR_CUA_SETUP_CLIENT (Valid From and Valid to should be left empty). In addition, assign the profiles S_BI-WHM_RFC and S_BI-WX_RFC on the tab Profiles.
    rollo

  • Exclude column from interactive report when exporting data

    Hello!
    Is it possible to exclude column from exporting (using bi publisher) in interactive report, but having in report. So in report it is, but in export result it isnt :). I know, that I can just not to select this column in "Action" menu before exporting, but then to select it to view in report. But is it possible not to export this column, but having it in report result?
    I Just have a checkbox in report, and I dont need to see it in export result.
    APEX 4.1.
    Thanks !
    Edited by: go0ze on Sep 28, 2012 1:40 AM

    Hi,
    Set condition type PL/SQL Expression to column and enter to Expression 1
    NVL(:REQUEST,'EMPTY') NOT IN('CSV', 'XLS', 'PDF', 'RTF', 'XML', 'HTMLD')Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Export XML from interactive report

    Hi all,
    is there a way to export the resulting output of an interactive report as XML (inline and/or attachment), like a normal report can do? (with FLOW_XMLP_OUTPUT_R<region_ID>)
    The download option for ir provide only CSV and PDF.
    Regards,
    Marco

    I explain my request.
    I have a very complex SQL query, which is (much) more than 4000 characters and it works well in the interactive report.
    As the interactive report is quite different from the normal report and the procudure FLOW_XMLP_OUTPUT_R<region_ID> doesn't seem to work, I'm obliged to create a report query in the shared components to get also the XML output, but shared report query accepts query less than 4000 characters long.
    Any idea?
    Marco

  • Blank csv from interactive report

    I have an interactive report that shows the data just fine. but when I choose download and csv, I get a blank file, zero lenght. there is data in the report, but the download shows nothing. has anyone see this before? its just a standard report, nothing real fancy. it should be able to download data right?

    it is apex is 4.0
    I'm not sure of the database, I believe it is 11g
    I have no clue as to the web server, I'd have to say whatever comes with 11g or apex. I don't have access rights to see that.
    browser is IE 7 and firefox 3. both have the same issue.
    I can't export it to a different instance at this time.. however, I created a new page, created a report in it and used a simple query, it allows me to download it. so something is odd about the actual report I have now. its a simple query, so I'm not sure what it wrong yet.
    something must be interfering with the process.

  • Download from Interactive Report to csv is not working

    Hi there,
    when I try to create a download form my interactive report I get an empty csv/pdf.
    I just checked with other report pages where the download functionality is working - but the settings seem the same.
    In the interactive report properties I've set the check boxes for csv and pdf and it is also displayed properly then on the report page. But when I click on the download (csv or pdf) just an empty document is opened.
    What settings can I check now - what might be the reason for the error?
    BR & thank you,
    Lena

    Keerti,
    You're using the "Display Condition" of the Interactive Report Region (IRR) to show the report or not.
    If you have multiple selects just use a PL/SQL expression as in:
    :P1_MULTI_1 IS NOT NULL
       AND :P1_MULTI_2 IS NOT NULLNow, if that works for you lets take things a little further... You don't need the second submit button all the time (I'd get rid of it entirely but you seem to really want to hide the region until a selection is made). I did the following:
    1. Updated the display condition of the report to use a PL/SQL expression.
    2. Set the display condition of the submit button to the opposite of the IRR.
    3. Added the item name of the select to the interactive report attributes > Advanced Attributes > Page Items to Submit.
    Now the go button can be used for everything.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur
    Edited by: Dan McGhan on May 14, 2009 12:28 PM
    Updated as only clicking "go" works with Page Items to Submit.

  • Error opening PDF downloaded from Interactive Report

    hi -- I'm getting an error opening a PDF file downloaded from an interactive report.
    I've seen on the forum that this could be related to the size of the file, but I've tried
    this out on 10-row results (1k files) and it's still an issue.
    I save the file to my file system. If I try to open it in Adobe Reader, I get:
    File does not begin with '%PDF-'
    and
    Adobe Reader could not open <filename>.pdf because it is either not a supported
    file type or because the file has been damaged (for example, it was sent as an email
    attachment and wasn't correctly decoded).
    If I try to open in Internet Explorer, I get:
    File does not begin with '%PDF-'
    Other users are having the same problem. Download to csv and open in Excel works fine.
    Do I need to have special print attributes for this? I didn't think so... I'm just using the defaults
    (response header = report settings, content disposition = attachment).
    Ideas?
    Thanks,
    Carol

    Hi,
    I'm having the same problem that was described above, and my site does have BI Publisher installed, and it does successfully produce readable pdfs for many reports.
    But there are other reports, even reports produced using the Apex Wizard and all defaults, that just keep producing the same Adobe Reader error reported above, ie
    "Adobe Reader could not open <filename>.pdf because it is either not a supported
    file type or because the file has been damaged (for example, it was sent as an email
    attachment and wasn't correctly decoded)."
    Any suggestions?
    Cheers,
    Peter

Maybe you are looking for