Download CSV/XLS/PDF Error

Hi Folks,
When I go to download a report in xls or pdf format, I get an error. I am told firstly, in the PDF case:
Adobe Reader could not open 'customers.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).
and in the XLS case
The file you are trying to open, 'customers2s.xls', is in a different format than specified by the file extention. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
In the PDF case, I open the file and see nothing. In the XLS case, I open the file and see
"ORA-06502: PL/SQL: numeric or value error: character string buffer too small
and a line of links from the footer, including 'Home" "Application 1----", "Edit Page 1", "Create" "Session" "Activity" "Debug" "Hide edit links" etc.
However, on some other pages I do print out the reports (which have fewer columns) and I get nice reports in the xls case, but weird results in the pdf case (oddly shaped short and wide pages that are all blank - with a 1:8 ratio in the number of pages:number of records in teh original report).
Does anyone know what might be causing my problem(s)? Throughout all my reports, both the fully problematic and less problematic ones, I have 850 records.
Edited by: user10225290 on Jan 29, 2009 2:31 PM

If you don't install either FOP or BI Publisher (or add-on libraries PL/PDF), than you {color:#ff0000}CAN NOT{color} print PDF style files with APEX..
(Check out this link to see how to accomplish setting up BI Publisher and/or FOP and the integration with APEX)
Thank you,
Tony Miller
Webster, TX
"Understanding is a three edged sword. Your side, their side, and the truth" - Kosh Naranek

Similar Messages

  • Need procedure -Load txt,csv,xls pdf file to db

    Could you please share me the procedure for loading the csv,xls,txt,pdf files into oracle database

    1008783 wrote:
    Could you please share me the procedure for loading the csv,xls,txt,pdf files into oracle databaseThere isn't any one particular procedure for doing it.
    The FAQ has some links to information relating to Excel files and CSV files (See: {message:id=9360007})
    As for TXT files, that depends what the contents are and what you are intending to do with them, though if you need some general access to a text file (that isn't structured like CSV) then you'd probably use the UTL_FILE package "line by line" or "chunk by chunk" or read the text file directly into a CLOB and process it there.
    As for PDF files, these are considered binary files, so you would typically store them in the database as a BLOB datatype and load them in a similar way to CLOB's using the BFILE method.
    But before we give you any specific answers, it's better if you explain exactly what it is you are trying to achieve.
    And read the FAQ on asking questions: {message:id=9360002}

  • Download csv and pdf in interactive report

    Hi,
    I'm getting below error while opening a PDF file downloaded from an interactive report (APEX).
    Adobe reader cound not open "TEST.pdf"because it is either not supportd file or because the file has been damaged. Also when i download in csv format the report does not strip html tag from the data in the report. Interactive report does not seem to have the html strip option unlike in classic reports.
    Thanks & Regards,
    Nisha

    Hi,
    did you read the pdf inside an text editor. If you do, you'll surely notice an sql error or a java error.
    I discovered for myself that the PDF reports aren't working anymore if I have 19 or over columns. The text buffer used by APEX went overflow.
    Im seraching for a solution, but I haven't found one yet, except then reducing the number columns.

  • Servlet Download File (XLS, PDF, DOC)

    When the user clicks the link to download a file, the Open/Save/Cancel dialog box pops up twice.
    Here are the headers I am setting:
    response.setContentType(getContentType(sFiletype));
    response.setContentLength((int) file.length());
    response.setHeader ("Content-Disposition", "attachment; filename=\"" + sFilename + "\"");
    response.setHeader ("Pragma", "public");
    Note: getContentType(sFiletype)returns the appropriate MIME type for the file extension provided.

    Your code is unreadable and like garbage. In the future please post well formed code in code blocks.
    At least you can give the following FileServlet example a try: http://balusc.blogspot.com/2007/07/fileservlet.html

  • When I attempt to download a Adobe PDF document I get a plackard saying "There was an error processing a page. There was a problem reading this document (109)." I don't have the problem using Windows Explorer. Can you help?

    I don't have any details other than what I have explained in the question. Have always been able to download Adobe files in the past. Tried Windows Explorer and it worked. Don't like Windows Explorer.

    Using FF 5.0.
    I've encountered this opening the following file:
    * http://download.esha.com/fandc/error/sqlfc.pdf
    The error occurred the first time I tried to open, but subsequent times it has opened fine. A co-worker gets the error everytime when trying to view in his FF 5.0. It has always opened fine in IE for both of us (like the OP meant, I think -- I don't like IE. Not even a little bit!).
    Downloading the file seems fine (opening in Acrobat Reader itself).

  • %pdf error in downloading pdf from Function module

    Hi,
    I am trying to download pdf from a LinkToaction UI element.
    I recieve %pdf" error when trying to download using below code. from backend perspective ABAPer said they are able to download PDF from ABAP program. Lokks like I am doing some mistake somewhere in below code.
    From the backend, pdf is coming in  a table in the form of SOLI-Text Line (TLine - SO_TEXT255)
    In webdynpro I am tried to take each line from that table and attched to a IWDResource as below.
    Please correct me if anything wrong here to get out of %pdf" error.
    IModel_Pdf_FileNode Model = wdContext.nodeModel_Pdf_File();
    IPDFElement pdf = wdContext.nodePDF().currentPDFElement();
    if (Model != null && Model.size() > 0)
    ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
    try {
       for (int i = 0; i < Model.size(); i++){
          IModel_Pdf_FileElement Element =
                                                 Model.getModel_Pdf_FileElementAt(i);
         baos.write(Element.getLine().getBytes());
        IWDResource resource =WDResourceFactory.createCachedResource(
              baos.toByteArray(),
              "Test",
              WDWebResourceType.PDF);
        pdf.setBinaryResource(resource);
    Thanks
    Praveen

    Thanks for the sample. I use version NWDS7.0 and I don't find IContent type in my NWDS after re-organizing import statements.
    currently I use below code to get the PDF on click of LinkToaction UI element (After I set the pdf from backend above part of the code).
    {code
    IWDResource pdfResource = wdContext.nodePDF().currentPDFElement().getBinaryResource();
                   String pdfURL = pdfResource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
              IWDWindow window =
              wdComponentAPI.getWindowManager()
              .createNonModalExternalWindow(pdfURL , "Test");
              window.show();
    {code}
    Currently above code giving %pdf" error when clicking LTU UI elemnt.
    Please suggest How I need to adjust your sample in my case.
    Thanks
    Praveen

  • I received a pdf from someone with an updated reader.  I am not able to open the file or download the update.  ERROR 1932  ????

    I received a pdf from someone with an updated reader.  I am not able to open the file or download the update.  ERROR 1932  ????

    ERROR 1935 SORRY PLEASE HELP I CANNOT OPEN ANY PDF'S ON MY COMPUTER NOW????????????????

  • FLOW_EXCEL_OUTPUT_R error in the downloaded csv file

    Hello,
    I'm trying to use the functionality of the FLOW_EXCEL_OUTPUT_R as follows:
    href="f?p=&APP_ID.:14:&SESSION.:FLOW_EXCEL_OUTPUT_R&P_REGION_ID._en"
    Where the computation for P_REGION_ID is:
    SELECT region_id  FROM apex_application_page_regions
    WHERE        application_id = :app_id
    AND page_id = :app_page_id
    AND region_name = 'CSV export'
    In the downloaded CSV file i get the following:
    - the first row: +<||div id="report_33994800669487811_catch">+
    - the last 2 row: +<||pre>report error:+
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error<||/pre>
    (|| - sign is so I can show the tags in the post)
    The rest of the data is downloaded ok.
    But still how can i get rid of these errors?
    Thanks,
    Adela

    It seems that the problem was caused by the "_en" termination (FLOW_EXCEL_OUTPUT_R&P_REGION_ID.*_en*).
    But is there any way to get rid of the <||div id="report_33994800669487811_catch"> <||/div> tags from the begining, respective the end of the CSV file ?
    Thanks,
    Adela

  • CSV files at the KM are downloaded as xls by default instead of csv

    Hello,
    I have created a Filesystem Repository manager to point to a folder on the server.
    This folder contains csv files and I can see these files through the KM and in the access link of the document's properties as csv's.
    The problem is that when I click to download any csv file, the file name in the "File Download" window defaults to xls. I than need to add the csv extension manually or else it will save it as xls.
    I have already created a csv mime type.
    It might be a browser/client/excel related issue but on the other hand it is behaving OK when I download csv files from web sites over the internet and it happens to all clients so I really can't think of something in the client/browser/excel direction...
    Any ideas...?

    Hello,
    This is maybe because of the file association between excel and cvs files, but this is not because of the portal, but because of Windows settings. IE get his settings from windows, and Firefox doesn't that is probably why it's working with FF but not IE.
    Open any explorer window in Windows, and select : Tools > Folder options... > Files types, and try to remove the file association between Excel and .csv
    I am not sure this is the cause of your problem, but it could be.
    Hope this helps.
    Best regards,
    Julien.

  • Interactive Report - Download as xls giving empty report

    Hi,
    I have an interactive report where i have enabled all the available download formats from report attributes. Now, when I go to Actions -> Download  and select format as .csv, html, email, then it works fine. But when I select download format as XLS/PDF then the downloaded file is an empty file (size 0 Bytes). This issue is coming with/without applying filters.
    Any idea how to resolve it?
    PS: I am using APEX version 4.2

    Do you have a print in place?  Fop/BI Publisher are required to create other report type downloads (csv comes standard with APEX)..
    The APEX Listener will replace FOP in producing PDF output..
    Marc Sewtz: PDF Printing with Oracle Application Express 4.2.2
    Thank you,
    Tony Miller
    SmartDog Services
    Austin, Texas

  • Download Formats: XLS Not Available

    I am trying to find out why download to XLS would not be available on my APEX instance for IRs. There's CSV, HTML, Email and PDF, but no XLS. I did not find the answer in the guides... Please help. Thanks.

    Hi,
    You need have advanced print server.
    And in instance settings set attribute Printer Server to Advanced (requires Oracle BI Publisher)
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21678/adm_mg_service_set.htm#sthref273
    >
    Advanced (requires Oracle BI Publisher) - This option requires a valid license of Oracle BI Publisher (also known as Oracle XML Publisher). Advanced Support provides you with all the capabilities of the Standard setting plus the ability to define RTF-based report layouts developed using the BI Publisher Word Template Builder.
    >
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • No data found in report csv or pdf output on first page load

    No data found in report csv output on first page load. Report shows up on page, but no data found in csv or pdf output. I always need to submit the page and then it shows data in downloads. The page contains a form (read-only) with a report that references 4 page items by using something like the following:
    and b.employee_no = v('P5_EMPLOYEE_NO')
    and c.fisc_year_pk = v('P5_FISC_YEAR_PK')
    and b.job_class = v('P5_JOB_CLASS')
    and b.organization = v('P5_ORGANIZATION')
    Again, report in the page shows up except there is no data in downloads. Can anyone help me solve this problem? I'm running Oracle APEX 4.2.1 in Oracle database 11gR2.
    Thanks.

    Sounds like a classic session state issue.
    You need to populate you page items using page rendering computations to ensure they're set to session state.
    Or if the download is triggered from a button press, you need to ensure those page items are submitted to session state, perhaps via a PL/SQL action.
    Scott

  • Interactive Report Download CSV file Issue (output includes separator BR)

    Hi,
    I have a Interactive Report and displaying the column values (multiple values in same ROW) as mentioned below.
    SQL Query
      select deptno,
           function1(empno) empno
      from emp
    IR Output
    Dept       Employee No
    10         AAA,BBB,CCC, ...    // -  Row 1
    20         XXX,YYY,ZZZ, ...    // -  Row 2 Now I want to display each employee in a new Line, so modified the SQL Query
    Modified SQL Query
      select deptno,
           REPLACE(function1(empno),',','<br>') empno
      from emp
    New IR Output
    Dept       Employee No
    10         AAA
               BBB
               CCC
               ...    // -  Row 1
    20         XXX
               YYY
               ZZZ
                ...    // -  Row 2 SO, Interactive Report Out put looks fine and that's the way we want.
    But the problem is when I download the Report in CSV or in PDF using the Action Menu -> Download..
    I am getting break line B R in the output, and also I have two different output in CSV for two different column. [Logic is same for both the columns.]
    CSV output1
    Employee No
      AAA<br>BBB<br>CCC
      XXX<br>YYY<br>ZZZI have other columns also with multiple values...for that column, I am getting the following CSV output
    CSV output2
    City List
      1111<br>
      2222<br>
      3333<br>So, in CSV for one column, I am getting all the values in same line with the seperator B R (Output1)
    for other column, I am getting values in new line with the separator B R. (Output2)
    Is there a way to FIX this CSV or PDF output for Interactive Report.
    I DON'T WANT THE SEPARATOR BR in CSV and also the values should always be in New Line.
    I want to have the following Output in CSV
    Employee No
      AAA
      BBB
      CCCThanks,
    Deepak
    Edited by: Deepak_J on Feb 24, 2010 11:45 AM
    Edited by: Deepak_J on Feb 24, 2010 11:46 AM
    Edited by: Deepak_J on Feb 24, 2010 11:48 AM

    Thanks.. Jari.. for the quick response.
    I updated my SQL query with Chr(10) and added the code in Page HTML header.
    Now the CSV & PDF output are fine..getting each individual value in seperate line (no BR tag)
    BUT in the Interactive Report Output, I am now getting first 2 values in 1 line, then next value in next line, and so on..
    IR Output
    Employee
      AAA BBB
      CCCCCCC
      DDDDDI have few more issues with CSV & PDF output
    1. In PDF is there a way to increase the column width, as for some of the columns, the values are getting truncated.
    2. For some of the columns in IR Report, I have user BR tag in Column Heading and this also come in CSV output (column heading with BR tag), is there a way to fix this. In PDF Column headings are fine (no BR tag)
    and by the way..what exactly this does.
    <style type="text/css">
    .apexir_WORKSHEET_DATA td{white-space:pre;word-wrap: break-word}
    </style>Thanks,
    Deepak
    Edited by: Deepak_J on Feb 24, 2010 12:20 PM
    Edited by: Deepak_J on Feb 24, 2010 12:21 PM

  • Why won't Adobe reader no longer let me view previously download (from Safari) pdf's? I am running OSX 10.8.5 and have uninstalled and reinstalled latest version of Reader?

    Why won't Adobe reader no longer let me view previously download (from Safari) pdf's? I am running OSX 10.8.5 and have uninstalled and reinstalled latest version of Reader. I get this error message "Adobe Reader could not open 'OD Test Bed Proposals_0.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)."  I have tried changing the 'open with' options too. Thanks

    Try this:
    Go to: Mac HD/Library/Internet Plug-ins
    Trash the AdobePDFViewer.plugin and AdobePDFViewerNPAPI.plugin files
    Empty the trash
    Relaunch Safari. You can now download undamaged PDFs.

  • Downloading and Opening pdf documents

    I cannot either download or open pdf documents.
    I am receiving this error message: instruction at 0x6c61e referenced memory at oxoooooooo.  the memory could not be read.
    This is causing google.com to not respond.

    Hi Jerseyjoe1933,
    This seems to be an error with the OS.
    Please refer : http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/the-instruction-at- 0x01764b69-referenced-memory-at/e2df405a-a3e5-4bfc-8721-5aa7929cc5c7
    When was the las time it worked fine.
    What is the Acrobat / Reader version you are using and on which OS?

Maybe you are looking for