Download of CSV using Browse point (don't get no data found error)

Hello

I use procedure below to download CSV in my table.

CSV is to have null values in some places ex: 1,.
2,0.999
3,
4,0.696

below the procedure works fine when I am downloading as CSV: 1.0
2,0.999
3.0
4,0.696.

My table is seen as two columns, and I get no data found error when downloading a CSV of null values.

I went through import data in Excel to the database table but no use...

Please help me on this.

Procedure
===========
DECLARE
v_blob_data       BLOB;
v_blob_len        NUMBER;
v_position        NUMBER;
v_raw_chunk       RAW(10000);
v_char   CHAR(1);
c_chunk_len  number := 1;
v_line  VARCHAR2 (32767) := NULL;
v_data_array  wwv_flow_global.vc_arr2;

BEGIN

-- Read data from wwv_flow_files
select blob_content into v_blob_data  from wwv_flow_files
 where UPDATED_BY = (select max(UPDATED_BY) from wwv_flow_files where UPDATED_BY = :APP_USER)
AND id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);

v_blob_len := dbms_lob.getlength(v_blob_data);
v_position := 1;
 
-- Read and convert binary to char
WHILE ( v_position <= v_blob_len ) LOOP
 v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
 v_char :=  chr(hex_to_decimal(rawtohex(v_raw_chunk)));
 v_line := v_line || v_char;
 v_position := v_position + c_chunk_len;
-- When a whole line is retrieved
 IF v_char = CHR(10) THEN
-- Convert comma to : to use wwv_flow_utilities
  v_line := substr(v_line, 1, length(v_line)-2);
   v_line := REPLACE (v_line, ',', ':');
-- Convert each column separated by : into array of data
   v_data_array := wwv_flow_utilities.STRING_to_table (v_line);
-- Insert data into target table
   EXECUTE IMMEDIATE 'insert into table_name@Schema1 (col1,col2)
    values (:1,:2)'
    USING
      v_data_array(1),
      v_data_array(2);
      
      -- Clear out
   v_line := NULL;
  END IF;
 END LOOP;

END;
concerning
Chauvet

Published by: Chaumont on 26 September 2012 10:52

Published by: Chaumont Sep 26, 2012 22:25

Published by: Chaumont on 27 September 2012 01:58

Chambers,

You can use wwv_flow_utilities.array_element to avoid any no_data_found. The function does not raise any errors. For example, for the line which only have a value of table when you wait 2, it can be useful.

EXECUTE IMMEDIATE 'insert into table_name@Schema1 (col1,col2)
    values (:1,:2)'
    USING
      wwv_flow_utilities.array_element(v_data_array,1),
      wwv_flow_utilities.array_element(v_data_array,2);

Kind regards
Christina

Tags: Database

Similar Questions

  • Hide the download link of file browse point

    Hello.

    How can I hide the download link of file browse point, we show that when the article is not empty?

    Question for apex 3.2.

    Hello

    APEX 3.2 there is no declarative switch to do so. You should use JavaScript to remove the download link.

    APEX 4.0, the item type of "Browse file" has a new attribute 'Display Download Link' in which you can define if you want to view the download link.

    Concerning
    Patrick

  • When you send an e-mail using Outlook Express, I immediately get this message; "Some errors occurred while processing the requested tasks. Please see the list of errors below for more details"

    When you send an e-mail using Outlook Express, I immediately get this message; "Some errors occurred while processing the requested tasks. Please see the list of errors below for more details". Unfortunately, there are no errors listed below and the green bar is frozen on the screen. The message remains in my Outbox and repeated again and again sending. There is absolutely no record and file sent in my sent box. TIA - Ernie

    You have apparent dbx file corruption. A common problem.
     
    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.
     
    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.
     
    After you're done, followed by compacting your folders manually while working * off * and do it often.
     
    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.
     
    General precautions for Outlook Express:
     
    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.
     
    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095
     
    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3 
     
    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm
     
    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.
     
    Compact often as specified above.
     
    And backup often.
     
    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx 
  • Windows don't get actualiza y appears error code 80070005 cuando trato search plots

    Windows don't get actualiza y appears error code 80070005 cuando trato search plots

    Hello

    See this page to select your language:

    http://support.Microsoft.com/common/international.aspx

    ====================================

    Or sorry that it is area English.

    Left click at the bottom of the Microsoft Community page

    English and set your language.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • EPG does not download properly don't get "no data available" on different channels?

    Original title: EPG DOWNLOADED DO not CORRECTLY GET "NO DATA AVAILABLE" on DIFFERENT CHANNELS?

    I am in the United Kingdom and using MEDIA CENTER on windows vista x 64 and I find that I have big problems getting data from TV stations. There are downloading, then others like bbc and itv that simply say "NO DATA".

    I tried to download the data multiple times and still the same result...

    ID: 5

    VERSION: 2869752824

    TNT - CRYSTAL PALACE

    ID:120020

    TV SIGNAL: DVB - T

    SCHEMA VERSION: 5

    LANGUAGE: ENGLISH

    START DATE 01/01/01 12:00:00 AM

    DATE OF 08/06/2014 END, 19:00

    Show only THE FOLLOWING STRINGS: "No. DATA AVAILABLE.

    BBC ONE

    ITV

    CHANNEL 5

    LIVE LONDON

    DRAMA

    MOVIE MIX

    ITV + 1

    QVC BEAUTY

    CREATE AND CRAFT

    ROCKS AND CO

    FOOD NETWORK

    TRAVEL CHANNEL

    GEMS TV

    CHANNEL 5 + 1

    FILM 4 + 1

    CHALLENGE

    MOVIES4MEN

    JEWELRY CHAIN

    CHANNEL 5 + 24

    QUEST + 1

    TRUE ENTERTAINMENT

    CBS REALITY

    SEE THE MAP

    POP

    BBC R1X AND OTHER VARIOUS RADIO STATIONS...

    ANY HELP WOULD BE GREAT ROGER...

    You should contact your local tv cable company reagarding this problem.

  • Get "no data found" when I download the report

    Hai...

    In my application, I created a region of reports where the data are displayed... I gave 'Download' format csv... when I try to download, I could not the data in the spreadsheet "excel" his coming as no data found...


    What could be the problem...

    Please help me...


    David

    Hi David,

    I've always found preferable to set the value of the element on a page using a calculation when I want him to have a starting value that does not rely on a database column.

    On your two fields, set the static allocation Type of Source and remove source.

    Now, on your page, click on the button create (icon +) in the section of the Page rendering calculations. Then enter the following settings:

    Geographical area: item on this page
    Point calculation: select your P1_STARTDATE
    Calculation Point: Before header
    Calculation type: SQL query
    Calculation: Select TO_CHAR(SYSDATE-1,'MM/DD/YYYY') from Dual
    Condition Type: Article 1 of the Expression value is NULL
    Expression 1: P1_STARTDATE

    Repeat this for your usng P1_ENDDATE Select TO_CHAR(SYSDATE,'MM/DD/YYYY') from Dual to the query

    Now, when the page is loaded first, the calculation conditions are checked. As the two fields are empty, the calculations are made and items get their start values. Your application should then work ok for export.

    Andy

  • When you try to use the current content, I get the message "network error."

    My photos open in a mixture, but when I try to use the content aware filter, I get the message "network error."

    Can you please try this: logout and log back? Please let us know if the operation is back to normal. We will fix a bug in this area in a future release.

  • Can't find downloads in the file browser, how do I get it back?

    Original title: help

    Dear Sir while clicking on computer on the left side there are favorite computer downloads recent place in some computers I can't find the download icon how can bring this icon please help

    If I've understood correctly, try the following:

    1. use Windows Explorer to access your download folder (probably in C:\Users\ ). The download folder is displayed there?  If this is the case, make a shortcut and drag it to the folder .

    or

    2 right click on , and then click

    I hope that one or the other will do.

  • When the company's clients try to download Creative Cloud using a paid only license get trial versions

    We have an enterprise Cloud creative license.  When some of our users to our Adobe Enterprise Portal and their company ID login allows you to download the product, they get only trial versions offered.  We had manually uninstall them other former Adobe products first, we confirmed that the correct E-mail is used, and we tried to create a new Adobe ID.  We are unable to install the full product even if our licenses are paid.  Any ideas why this happens?

    Screen Shot 2015-12-08 at 10.27.47 AM.png

    Please refer to: FAQ: what should I do if I have a subscription, but my application acts as if I had a trial?

  • I've accidentally got rid of the box where you type web addresses - when I right click at the top of my browser, I don't get the opportunity to come back - how I get it back?

    I tried to maximize space for the display of the web page. I have a click right on the two albums and uncontrolled options. One of these options has been the region where I get the addresses of Web sites. When I right click in an attempt to restore the original configuration, the options to check do not exist. I stopped and restarted the browser, but lack still the area I get the Web site addresses and the other line I unchecked.

    Press the Alt key to display the Menu bar, then open view > toolbars and select menu bar and the bar of Navigation, so that they have a check mark.

    https://support.Mozilla.com/en-us/KB/menu%20bar%20is%20missing

  • Which adapter to use on hard drive to get the data and images turned off before replacing the motherboard?

    I have a HP G61-429WM, product WA961UA #ABA number. Windows7 operating system. It was abandoned and cracked the screen. I replaced the screen, it then booted up once or twice, and then began to not initialize. During this period, I noticed a crack in the lower shell into the Jack of the battery. Do you have a fairly long conversation with the support, the end result = send to paid the replacement of the main card or buy the same Board and fix it myself. He said that all the data on the disk wouldn't be there when I returned. It was also mentioned that the reader could be removed and a usb adapter could be used on the disk to retrieve data before the reader gets erased due to the relocation of the card.

    Everyone would like to recommend a usb adapter to do? I will buy one, I want to just make sure it is right for the type of drive in this unit.

    Thanks in advance,

    Sylvia

    DavidD56.

    I've used this for any type of reader:http://www.newegg.com/Product/Product.aspx?Item=N82E16812232002

    But, you can perform a single completed unit:

    http://www.Newegg.com/product/product.aspx?item=N82E16812123312

  • Application not found error-choose the program you want to use to open this file

    Soon all the world.

    I really hope that someone will post a reply to my question as soon as possible. I will try to be as descriptive as I could possibly, in order to solve my problems.

    The main problem is that I can't open some, if all the program files, applications on my windows 7, 32-bit laptop. I'm constantnly get application not found error, showing in a small window address, I was trying to do. Whenever I want to open a program, like the Adobe reader, word of microsoft, excel, mozilla firefox, google chrome - basically everthing, a window opens and is telling me this: choose the program you want to use to open this file: file: acad.exe... and recommend me acrobat from adobe program, any program I was trying to enter (in this case autoCAD).

    Cannot open cmd, when I go to system recovery, it says: System Restore could not start. I normally post records in: C and: D sheet music, play music, watch videos and see photos. I found a "hole" not being able to go to the internet via a browser. I discovered it when I went to an online help in some of the trobleshoots. It would open tab in google chrome by itself and then on it, I can browse the internet normally, but only through the said track.

    Currently, the microsoft security essentials performs a custom analysis (: C and: D), because I suspect it is a malware, or some kind of virus. It happened when I tried to download a program from CAD Solidworks 2012 via a site that I'm not sure I'm allowed to mention, that I don't want. Unless it's okay with you :) It begins with a letter t. By the way, I noticed that my: partition D has accumulated 10 GB + more in the space of a few days, because I remember two weeks ago I had close to 70 GB of free space, now it's about 56.3 GB. Curious, because I know that I did nothing so great in this period. Maybe I need to tell you that I get this window, from time to time, when I browse the internet (I never visit suspicious sites, or at least I don't me remember more I visited one in a very long time, like 4-5 months):

    [url=http://canadaalltax.com/z/?f=pjrKrjr7vTw8qi5FrTxXrjr4qdgHqjrHqE%3D%3D&eid=727&hid=15769845847361013151&pid=0&ch=666&rf=http%3A%2F%2Fwww.boldride.com%2Fbrand%2Fwilliams-racing&s=px.pluginh&r=0.13960388134319002]http://canadaalltax.com/z/?f=pjrKrjr7vTw8qi5FrTxXrjr4qdgHqjrHqE%3D%3D&eid=727&hid=15769845847361013151&pid=0&ch=666&rf=http%3A%2F%2Fwww.boldride.com%2Fbrand%2Fwilliams-racing&s=px.pluginh&r=0.13960388134319002[/url]

    I found this in my story, be very careful what you do with this link, I don't want that take you anything ;)

    That's on my side, please ask anything and everything, I'll visit this page when I can.

    Good bye!

    P.S. forgot to mention that when I download a program (mozilla Firefox), I can not run it due to: Application not found. I hope I found the right place for it.

    Original title: Windows 7 - Application not found. A big problem or easy-peasy?

    Hello

    Thanks for posting your query in Microsoft Community.

    1. What is the complete error message you get when opening a file?
    2. What happens when you try to open the command prompt?
    3. What happens when you try to access the internet by using Internet Explorer?
    4. You did changes to the computer before the show?

    According to the description of problem errors you get "application not found error" and "choose the program you want to use to open this file" and not being is not able to do system restore, it seems that some windows file is corrupted. I also suggest you to post back the results of analysis.

    I would suggest trying the following methods and check if this is useful:

    Method 1:  Run SFC scan and check for corrupted Windows files and violations of integrity.

    Use the System File Checker tool to repair missing or corrupted system files

    http://support.Microsoft.com/kb/929833

    Method 2:

    For any question, where his prompting you to select the default program
    Try to set the default values for the program
    Change the programs that Windows uses by default

    For any question, where you are not able to download and install firefox, download the file and save it and then try to install firefox.

    I hope this helps. Please let us know the results. Feel free to write us again for any help.

  • Please help to download a CSV file on APEX by browsing file

    Hi all

    I need to download a csv file in the table through browse file button. To do this, I created the process and function below. This method works perfectly fine when the file size is small. But I need to download the file size of 16 MB and when I try to download this file it give error wwv_flow.accept. Any expert from the TOP please help me about this error. As I am very new to the APEX, and I need to achieve this as soon as possible. Please provide any solution, I will be really grateful to the person.


    _ Function

    create or replace function hex_to_decimal
    -This function is based on one by Connor McDonald
    -http://www.jlcomp.demon.co.uk/faq/base_convert.html
    (P_hex_str in varchar2) return number
    is
    number of v_dec;
    v_hex varchar2 (16): = '0123456789ABCDEF ';
    Start
    v_dec: = 0;
    for indx in 1... Length (p_hex_str)
    loop
    v_dec: = v_dec * 16 + instr (v_hex, upper (substr(p_hex_str,indx,1)))-1;
    end loop;
    Return v_dec;
    end hex_to_decimal;


    _ Process

    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    V_POSITION NUMBER;
    v_clob_data CLOB: = 'nothing. '
    dest_offset NUMBER: = 1;
    offset NUMBER: = 1;
    blob_csid NUMBER: = dbms_lob.default_csid;
    lang_ctx INTEGER: = dbms_lob.default_lang_ctx;
    caveat INTEGER;



    v_raw_chunk RAW (10000);
    v_char char (1);
    number of c_chunk_len: = 1;
    v_line VARCHAR2 (32767): = NULL;
    v_data_array wwv_flow_global.vc_arr2;
    number of v_rows;
    number of v_sr_no: = 1;

    BEGIN

    delete from scg_recievables2;

    -Read data from wwv_flow_files </span >
    Select blob_content from v_blob_data
    of wwv_flow_files
    where last_updated = (select max (last_updated) in the wwv_flow_files where UPDATED_BY =: APP_USER)
    and id = (select max (id) in the wwv_flow_files where updated_by =: APP_USER);


    v_blob_len: = dbms_lob.getlength (v_blob_data);
    V_POSITION: = 1;

    -Read and convert the binary for char </span >
    WHILE (v_position < = v_blob_len) LOOP
    DBMS_LOB.converttoclob (v_clob_data, v_blob_data, v_blob_len, dest_offset, offset, blob_csid, lang_ctx, warning);
    v_char: = dbms_lob.getlength (v_clob_data);

    v_line: = v_line | v_char;
    V_POSITION: = v_position + c_chunk_len;
    -When a whole line is retrieved < / span >
    IF v_char = Chr (10) THEN
    -Convert comma to: to use wwv_flow_utilities </span >
    v_line: = REPLACE (v_line, ';', ' :');)
    -Converting each column separated by: in the data table </span >
    v_data_array: = wwv_flow_utilities.string_to_table (v_line);
    If IsNumber (substr (v_data_array (9), 1, 1)) = 1 then
    v_data_array (9): = substr (v_data_array (9), 1, 11);
    on the other
    v_data_array (9): = January 1, 1900 ";
    end if;
    v_data_array (9): = NVL (v_data_array (9),'' 01-JAN-1900);
    -Insert data into the table target </span >
    EXECUTE IMMEDIATE ' insert into scg_recievables2 (Account_receivable_number, the_account_number, bill_history_tran, service_number, item_type, the_amount_billed, the_remaining_amount, source_of_payment)

    values (: 1,: 2:3:4: 5: 6: 7: 8,:' 9)
    USING
    v_data_array (1),
    v_data_array (2),
    v_data_array (3),
    v_data_array (4),
    v_data_array (5),
    v_data_array (6),
    v_data_array (7),
    v_data_array (8);
    -Remove
    v_line: = NULL;
    v_sr_no: = v_sr_no + 1;
    END IF;

    END LOOP;
    END;

    As mentioned, this disrupts the question, because a possible answer was published in the OTHER thread... Check your server logs, you probably delay... Preliminary discussions with a similar problem:

    Take a look at the httpd.conf file (or get your system administrator to look at it) and see what's on the value of TimeOut. You may need to increase in order to export large tables by APEX.

    http://www.apacheref.com/ref/http_core/timeout.html

    Thank you

    Tony Miller
    Webster, TX

    A lady came up to me on the street, pointed at my suede jacket and said: "do you not know that a cow was murdered for that jacket?
    ' I didn't know there are witnesses ', I replied: "now, I'll have to kill you too. '

  • When you browse my new windows 8.1 PC I get tabs opens asking me to download all sorts of things that don't look at how lagitemate-

    I just got my new windows 8.1 PC and downloaded firefox 30 on it. When I get the net surfingf - new tabs to open of their own accord. These pages tabs of areweb recommend downloads of various programs or deliver a virus or a warning maleware and recommending that I call a phone number to get technical support for problems he reports. I know theses are scams, but I can't figure out how to stop this action in the firefox browser. I have other PC with the same version of Firefox on them and I put matching all the parameters that I can find. Can someone help me with this problem please? I'm pulling my hair out - and there is not a lot of hair left. Thank you

    Make a check of malware with several malware scanning of programs on the Windows computer.
    Please scan with all programs, because each program detects a different malicious program.
    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • I use Firefox version 3.0.19 and I have Windows 7. When I use Firefox as a browser, I can't print my emails. I get an error message: «not available pcfax» If I use IE I don't have no problems printing emails.

    I use Firefox version 3.0.19 and I have Windows 7, which came with a new computer. When I use Firefox as a browser, I can't print my emails. I get an error message: «not available pcfax» If I use IE I don't have no problems printing emails.

    This has happened

    Each time Firefox opened

    == 1 day with the new computer about two weeks ago.

    Looks like you got the wrong printer selected.

    When you get the print window, choose another printer in your printer dropdown. You seem to have a fax printer selected instead of a physical printer.

Maybe you are looking for