CSV Export Problems

Hi All
An end user of my application has had problems exporting reports in csv format.
She gets the error Cannot copy file: Cannot read from the source file or disk
I have not been able to replicate this issue as I have no problems outputting the data.
Does anyone have any ideas about what could cause this issue?
Thx
Kezie

I've been able to establish that there is no CSV export issue when using MOZILLA.
I tested with Internet Explorer and get the exact error "Cannot copy file: Cannot read from the source file or disk"
Any comments please?
Thx
Kezie

Similar Messages

  • Custom Report .csv export problem

    I have set up a custom report so I can download a csv file with all orders starting 4/1/2014. It is working well except for one small hiccup. Whatever is in the very first position in the first row (the first column header) has a few weird control characters in it that hang things up when importing the file elsewhere. When I download the csv I have to open the csv, fix the first header by retyping it, and resave the file before I can import it into another application.
    For example, if the first header is Company Type, the csv includes it as
    "Company Type"
    If the first header is Name, it is in the CSV as
    "Name"
    Any idea why this is happening?

    additional details: I can only see the control characters if I open the file in Excel. If I open the csv in a text editor they do not show. However, even though not visible in a text editor, unless I retype "Name" for example, the file fails to import into another application, in this case ShipStation.com. I've also found that, strangely, I can only seem to fix the problem in Excel - trying to fix the file in a text editor by deleting "Name" and retyping it doesn't work.
    Also, I am on a Mac if that makes a difference.

  • CSV export problem with multiple pages

    I have a simple report with pagination and export to excel enabled. If I paginate from page 1, without exporting to excel, to any other page, then export to Excel, I get "No data found." in the CSV output file.
    If I export from Page 1 first, then the export works great -- from page 1 or any other page I paginate to subsequently.
    Does anyone know what's going on here?
    Thanks y'all.

    1. Usually, I make a static computation and make it conditional - if item is NULL.
    2. You got to make sure this is not the only item you need to compute.
    3. I never use default values, so check there is nothing entered there - default values are not transparent and they may cause unexpected behaviour if something else entered there.
    4. The best would be, while you are waiting ;), to create an example for debugging.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • CSV Export in HTMLDB -Report

    From Regions > Report Attributes I set the Enable CSV option to yes - Link Label (i.e export), but the link does not appear. Any hints/appreciated.
    thanks for youe help.

    Hi,
    See if this Denes blog post help
    http://deneskubicek.blogspot.com/2007/03/csv-export-problem.html
    Regards,
    Jari

  • Ssrs 2012 export to comma delimited (csv) file problem

    In an ssrs 2012 report, I want to be able to export all the data to a csv (comma delimited) file that only contains the detailed row information. I do not want to export any rows that contain header data information.
    Right now the export contains header row information and detail row information. The header row information exists for the PDF exports.
    To have the header row not exist on CSV exports, I have tried the following options on the tablix with the header row information with no success:
    1. = iif(Mid(Globals!RenderFormat.Name,1,5)<>"EXCEL",false,true),
    2. = iif(Mid(Globals!RenderFormat.Name,1,3)="PDF",false,true),
    3. The textboxes that contain the column headers, the dataelelementoutput=auto and
       the text boxes that contain the actual data, I set the dataelelementoutput=output.
    Basically I need the tablix that contains the header information not to appear when the export is for a csv file.
    However when the export is for the detail lines for the csv export, I need that tablix to show up.
    Thus can you tell me and/or show me code on how to solve this problem?

    Hi wendy,
    Based on my research, the expression posted by Ione used to hide items only work well when render format is RPL or MHTML. Because only the two render format’s RenderFormat.IsInteractive is true.
    In your scenario, you want to hide tablix header only when export the report to csv format. While CSV file uses the textbox name in detail section as the column name, not the table header when you view the table. So if we want to hide the header row of the
    tablix, please refer to the steps below to enable the “NoHeader” setting in the RSReportserver.config file:
    Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS1111.MSSQLSERVER\Reporting Services\ReportServer \RSReportserver.config.
    Backup the RSReportserver.config file before we modify it, open the RSReportserver.config file with Notepad format.
    In the <Render> section, add the new code for the CSV extension like this:
        < Extension Name="CSV"   Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
            <Configuration>
                <DeviceInfo>
                   <NoHeader>True</NoHeader>
                </DeviceInfo>
            </Configuration>
        < /Extension>
    Save the RSReportserver.config file.
    For more information about CSV Device Information Settings, please see:
    http://msdn.microsoft.com/en-us/library/ms155365(v=sql.110)
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • BI 7 Web Templates: Problems with csv-export

    Hi all,
    I am aware that a csv-export out of a web template is associated with excel, meaning that the export in csv opens in excel.
    Nevertheless my problem is, that in the course of the export process several blank columns are inserted.
    So when I afterwards open the file with the "windows editor" for example I have a result like
    PLZ;;;45133 where I expected
    PLZ;45133
    Has anyone an idea?
    Best regards
    Mark

    Hello,
    Is there a hierarchy involved?
    If yes, then the blank spaces are inserted due to the hierarchy. When the hierarchy is drilled down, the blank spaces are inserted to show the hierarchy structure. Unfortunately, this is standard and cannot be changed using standard BW functionality.
    Thanks,
    Michael

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

  • 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

  • German Umlaut in CSV export on mac os

    Hello,
    i have problems with the csv export when i use an apple mac. German Umlaute are not displayed correctly, neither when i open the .csv file with TextApp nor when i open it with Numbers from iWork.
    On a windows machine all is fine. Excel and every text editor i tried opens the file fine with the umlaute displaying correct.
    The application is set to automatically encode the csv and application language is set to german.
    Is there any other setting that i can change to get a correct csv export on an apple mac?
    Apex version is 4.0.2.00.07, Oracle version is 11.2.0.1.0.
    Thanks for help in advance,
    Dirk

    Hi Dirk,
    Most likely, the Automatic CSV encoding attribute is set to 'Yes' for your application. If you're running your application in German, then the CSV file will be encoded in WE8MSWIN1252.
    Can you try setting Automatic CSV Encoding to "No" (in the Globalization attributes of your application)? The CSV file will then be encoded in UTF-8 - which means that your Windows users may not open it directly but, instead, have to do a data import and specify utf-8 character set.
    Joel

  • BUG?? UTF-8 non-Latin database chars in IR csv export file not export right

    Hello,
    i have this issue: my database character set is UTF-8 (AL32UTF8) and contains data in a table used in IR that are Greek (non-Latin). While i can see them displayed correctly in IR and also via select / in Object Browser in SQL Workshop when i try to Download as csv the produced csv does not have the Greek characters exported correctly, while the Latin ones are ok.
    This problem is the same if i try IE or Firefox. Also the export in HTML works successfully and i see the Greek characters there correctly!
    Is there any issue with UTF-8 and non-Latin characters in export to csv from IRs ? Can someone confirm this, or has a similar export problem with UTF-8 DB and non-Latin characters ?
    How could i solve this issue ?
    TIA

    Hello Joel,
    thanks for taking the time to answer to my Issue. Well this does not work for my case as the source of data (Database character set) is UTF-8. The Data inside the database that are shown in the IR on the Screen is UTF-8 and this is done correctly. You can see this in my example. The actual Data in the Database are from multiple languages, English, Greek, German, Bulgarian etc that's why i selected the UTF-8 character set when implementing the Database and this requirement was for all character data. Also the suggested character set from Oracle is Unicode when you create a Database and you have to support data from multiple languages.
    What is the requirement, is that what i see in the IR (i mean in Display) i need to export in CSV file correctly and this is what i expect from the Download as CSV feature to achieve. I understand that you had in mind Excel when implementing this feature but a CSV is just an easy way to export the Data - a Comma Separated Values file, not necessarily to open them directly in Excel. Also i want to add here that in Excel you can import the Data in UTF-8 encoding when importing from CSV, which is fine for my customer. Also Excel 2008 and later understands a UTF-8 CSV file if you have placed the UTF-8 BOM character at the start of the file (well, it drops you to the wizzard, but it's almost the same as importing).
    Since the feature you describe and if i understood correctly is creating always an ANSI encoded file in every case, even when the Database character set is UTF-8, it is impossible to export correctly if i have data that are neither in Latin, not in the other 128 country specific characters i choose in Globalization attributes and these data is that i see in Display and need to export to CSV. I believe that this feature in case the Database character set is UTF-8 should create a CSV file that is UTF-8 encoded and export correctly what i see i the screen and i suspect that others would also expect this behaviour. Or at least you can allow/implement(?) this behaviour when Automatic CSV encoding is set to No. But i stongly believe - and especially from the eyes of a user - to have different things in screen and in the depicted CSV file is a bug, not a feature.
    I would like to have comments on this from other people here too.
    Dionyssis

  • BUG: SQL Developer 1.5.3 CSV export column order broken

    There's a bug in the 1.5.3 release of SQL Developer regarding data export. This bug re-orders the column order in the data export to be alphabetically sorted. This produces mangled CSV files if used on a table or a view.
    This is a critical bug to me since I need to produce lots of ad-hoc data CSV export files. I'm staying with SQL Developer 1.5.0.53 (53.38) for now as it doesn't have this problem.
    This is the same bug as present in Jdeveloper 11.1 as described in my post here: BUG: Jdev 11.1.1.0.0 -- DB table data export column order is not preserved
    Quoted from that post:
    When I connect to Oracle database, get the table list, right click on the table and select 'Export Data'->csv. The dialog box opens with three tabs: Format, Columns, Where. The column order displayed in both tabs Columns and Where is alphabetic. Because alphabetic ordering re-arranges columns from their initial ordering in the table, this screws up CSV export because columns are not in their intended order. This same problem occurs when I try to export data from views to generate a CSV file with a particular column order.
    Please open/check bug report if it's already open.
    Thanks!

    This happens with all of the export options for tables or views if you right click from the connections tab table list. If I pull it up in the main window and go to the data tab, I can then right click and it will keep the column id order for some of the views and tables. But not all.
    I am running 1.5.3 Build Main 5783 on a Windows XP Professional Service Pack 3 platform

  • Applying Authorization on Standard CSV Export

    Is there a way to apply an authorization scheme to the standard csv export? Maybe I am
    just not able to find a way to do it. I would know how to do that using custom export but
    this is not the way to go since too many reports need to have that option turned on.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    Hello Marc,
    Thanks for your answer. Maybe I explain what the problem is:
    1. one of my customers (with many users) has an apex application with many reports showing customer data coming from SAP,
    2. the number of rows you can query is limited to a certain number they can adjust,
    3. the number of records per page is also limited,
    4. they want to explicitly allow or dissalow the export of the results
    5. users are allowed to view the data but may not be allowed to export it
    Their request makes sense.
    I solved the problem using id's for the span tags containing the link substitute and
    hiding or showing the span tag with javascript, depending on the authorization. However, like all the
    proposed workarrounds here, this is not realy secure.
    I hope in one of the next releases, you will find a solution.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • APEX 4 Bug: IR's csv export includes extra div

    Hi
    In IR export, csv files includes a pair of extras /div at final end.
    Clasic Reports has no problems with csv export
    Tested in apex.oracle.com
    Oscar

    To provide a bit more information it's not just some extra div tags. Any extra HTML that appears after the #BODY# variable in a Region Template is included in the csv export.
    Martin
    Martin
    http://www.talkapex.com

  • High performance CSV export

    Hi,
    I have been looking for a way to export huge datasets to CSV format for import with MySql.
    As sqlplus SPOOL turned out to be slow and difficult to use, I ended up coding my own importer using the OCCI library.
    I successfully compiled my code under Red Hat Enterprise Linux 6, 64 bit, and Oracle Instant Client 12.1. But as it only uses C++ STL and OCCI, it should as well build under other environments (e.g. Windows).
    Here's the code:
    * ociexport.cpp - High performance ORACLE to CSV export (using OCCI and STL)
    * This program takes the ORACLE connection information from the following
    * environment variables:
    * ORACLE_USER, ORACLE_PASS, ORACLE_CONN
    * Fields are exported in a CSV with delimiter ';'. Semicola within the fields
    * are escaped with '\;'. Newlines and tabs in the fields are replaced by blanks.
    * Empty fields and NULL values are exported as '\N' for easy MySQL import.
    * CLOBS are exported as well. BLOBS and BFILES are not supported atm.
    * Don't forget to set the LD_LIBRARY_PATH to your Oracle Client libs when
    * building and running this program.
    * @param $1 Select-Statement
    * @param $2 Output file (optional - if empty, output goes to stdout)
    * @author Bert Klauninger
    * @version 0.1.0
    * @changelog
    *    2013-12-13 - Created
    *    2013-12-16 - Added CLOB streaming support
    #include <cstdlib>
    #include <cstring>
    #include <fstream>
    #include <iostream>
    #include <string>
    #include <vector>
    #include "occi.h"
    using namespace oracle::occi;
    using namespace std;
    #define BUFFER_SIZE        1024                        // Maximal characters of a LOB to be exported
    * Escape all occurrences of ';' and convert newlines and tabs to blanks
    string csv_escape(string src) {
        string result;
        const int imax = src.length();
        for (int i = 0; i < imax; ++i) {
            switch (src[i]) {
                case '\n':
                case '\r':
                case '\t':
                    result += ' ';
                    break;
                case ';':
                    result += '\\';
                    result += ';';
                    break;
                default:
                    result += src[i];
        return result;
    * Execute a query and write CSV to the given file.
    *    NB: Empty fields are exported as NULL values!
    void select_into(Connection *con, string sql, string file) {
        if (! con) {
            return;
        bool fo = ! file.empty();
        ofstream o;
        if (fo) o.open(file.c_str(), ofstream::out);
        Statement *s = con->createStatement(sql);
        ResultSet *r = s->executeQuery();
        vector<MetaData> m = r->getColumnListMetaData();
        const int cols = m.size();
        if (fo) cout << "Result has " << cols << " cols" << endl;
        int cnt = 0;
        while (r->next()) {
            string line;
            ++cnt;
            /* Stupid ORACLE starts numbering at 1, not 0 */
            for (int i = 1; i <= cols; ++i) {
                string col;
                /* ...but: Metadata vector starts at 0 */
                int t = m[i - 1].getInt(MetaData::ATTR_DATA_TYPE);
                if (t == OCCI_SQLT_CLOB) {
                    /* Get the CLOB object via stream */
                    Clob clob = r->getClob(i);
                    if (! clob.isNull()) {
                        clob.open(OCCI_LOB_READONLY);
                        int len = clob.length();
                        Stream *instream = clob.getStream();
                        char *buffer = new char[BUFFER_SIZE];
                        memset(buffer, 0, BUFFER_SIZE);
                        int r = 0;
                        do {
                            r = instream->readBuffer(buffer, len);
                            for (int i = 0; i < r; ++i) {
                                col += (char) buffer[i];
                        } while (r != -1);
                        delete[] buffer;
                        clob.closeStream(instream);
                        clob.close();
                } else if (! r->isNull(i)) {
                    /* Try to get field value as string */
                    col = r->getString(i);
                if (col.empty()) {
                    line += "\\N";
                } else {
                    line += csv_escape(col);
                if (i < cols) {
                    line += ';';
            if (fo) {
                o << line << endl;
            } else {
                cout << line << endl;
        s->closeResultSet(r);
        con->terminateStatement(s);
        if (fo) cout << cnt << " rows exported" << endl;
    /*** MAIN ***/
    int main (int argc, char* argv[]) {
        if (! (argc == 2 || argc == 3)) {
            cerr << "Usage: " << argv[0] << " sql-statement [output-file.csv]" << endl << endl;
            cerr << "Output file uses column separator ';'. Semicola are escaped using '\\;'." << endl;
            cerr << "NULL values and empty fields are exported as '\\N'." << endl;
            cerr << "If no output file is specified, quieted output is sent to stdout." << endl;
            cerr << "Login credentials can be set via the following environment variabes:" << endl;
            cerr << "ORACLE_USER, ORACLE_PASS, ORACLE_CONN" << endl << endl;
            return 1;
        const string user = getenv("ORACLE_USER");
        const string pass = getenv("ORACLE_PASS");
        const string osid = getenv("ORACLE_CONN");
        const string sql = argv[1];
        const string outfile = (argc == 3) ? argv[2] : "";
        bool fo = ! outfile.empty();
        Environment* env = Environment::createEnvironment(Environment::DEFAULT);
        int ret = 0;
        try {
            if (fo) cout << "Connecting as " << user << "@" << osid << endl;
            Connection* const con = env->createConnection(user, pass, osid);
            if (fo) {
                cout << "Executing query " << sql << endl;
                cout << "Writing results to " << outfile << endl;
            select_into(con, sql, outfile);
            if (fo) cout << "Closing connection" << endl;
            env->terminateConnection(con);
        } catch (SQLException ea) {
            cerr << "Error: " << ea.what();
            ret = 1;
        Environment::terminateEnvironment(env);
        return ret;
    My Makefile:
    ociexport: ociexport.cpp
            LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib \
                    gcc -Wall -g -I /usr/include/oracle/12.1/client64 \
                    -L /usr/lib/oracle/12.1/client64/lib \
                    -o bin/ociexport ociexport.cpp \
                    -lclntsh -lnnz12 -locci
    Program call:
    $ export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib
    $ export ORACLE_USER=your_user
    $ export ORACLE_PASS=your_pass
    $ export ORACLE_CONN=your_connection_string
    $ ./ociexport "SELECT * FROM applications" > export.csv
    Best regards
    Bert

    Hi
    Give a look to the following book. You'll find the answer for some questions...
    http://www.theserverside.com/books/masteringEJB/index.jsp
    Chris

  • Report + Jquery + CSV export = jquery result lost

    We have some IR reports with breaks. We put these next to eachother on specific headers with jquery code in the report. But when we do an export i want the same results as shown in the report. The changes made in Jquery get lost when i do a CSV export. Is there some way to get the same columns next to each other like in the report on the screen? or is there some other way to get the same result using something other than jquery? We are now want to making a function in DB using dynamic sql that returns a query to apex report but there should be some easier way in Apex than this no?
    Thanks in advance

    @ TexasApexDeveloper i asked this question on linkedin Apex group before. But not here. So there no way to show the breaks next to eachother in the CSV file? with or without use of Jquery?
    @ Tyson: no sample app.
    Standard behavier of IR report:
    department :1
    col1 col2 col3 col4
    BREAK
    col1 col2 col3 col4
    BREAK
    col1 col2 col3 col4
    BREAK
    col1 col2 col3 col4
    BREAK
    department :2
    col1 col2 col3 col4
    BREAK
    col1 col2 col3 col4
    BREAK
    With Jquery made it look like this
    department 1
    col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
    department 2
    col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
    i want the data like this in CSV, so that then user opens this in excel the data is presented horizontaly per department:
    department 1
    col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
    department 2
    col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK

Maybe you are looking for

  • Aging Time

    Hi, I would like to ask What is Aging Time and its purpose. Thanks, Dyep

  • Where do we configure Seeburger adapter in case of outbound?

    <b>Hello Freinds,                              Can you please help me out where do we configure the Seeburger adapter if the sender is EDI ANSIX12...I mean at what point of time we use this Seeburger adapter to convert to XI Specific XML format?</b>

  • Conversion from Blended codepage 6200 to MDMP in 4.6c

    Hi Experts,    If the existing system is on 4.6c, what are the complications as well as the effort required to convert the ambiguous code page to MDMP?    Thank you. regards, David

  • Error when registering service to ESB server

    Hello, I try to register a service on ESB from jDeveloper, but I get a "Error 500" message back. From the log on the ESB I see: <PAYLOAD> <MSG_TEXT>Exception occured while enqueuing control event</MSG_TEXT> <SUPPL_DETAIL><![CDATA[javax.jms.ResourceAl

  • Pathway problem when moving files in PSE

    I use PSE 6.0 and recently had to reload my operating system (OS).  After reloading my OS I reinstalled PSE 6.0 and restored my catalog to a new location on my hard drive.  I had my catalog backed up onto DVD's.  The restore worked and I went to link