Page process throwing No data found error when deleting tabular form item

Hi guys,
I am trying to run a page process just before the Tabular form's MRU process and it's throwing a no data found error. Here is my code:
BEGIN
     for i in 1..apex_application.g_f02.count LOOP     
          IF apex_application.g_f01(i) is not null THEN
               UPDATE STOCK
                    SET PRODUCT_QUANTITY = PRODUCT_QUANTITY+apex_application.g_f08(i)
               WHERE site_id = :P21_SITE_ID and product_id = apex_application.g_f02(i);
               COMMIT;
          END IF;
     END LOOP;
END;Here f01 is the checkbox column and the if-statement is causing the problem because if I get rid of the update statement (leaving just the commit) then it still throws the error.
When I click on a checkbox and hit delete button which fires off both this process and then MRU I get the no data found error.
Would be grateful if someone could shed some light on this. Many thanks.
Edited by: taepodong on Jul 1, 2012 7:54 AM

Hi,
>
I am trying to run a page process just before the Tabular form's MRU process and it's throwing a no data found error. Here is my code:
BEGIN
     for i in 1..apex_application.g_f02.count LOOP     
          IF apex_application.g_f01(i) is not null THEN
               UPDATE STOCK
                    SET PRODUCT_QUANTITY = PRODUCT_QUANTITY+apex_application.g_f08(i)
               WHERE site_id = :P21_SITE_ID and product_id = apex_application.g_f02(i);
               COMMIT;
          END IF;
     END LOOP;
END;Here f01 is the checkbox column and the if-statement is causing the problem because if I get rid of the update statement (leaving just the commit) then it still throws the error.
When I click on a checkbox and hit delete button which fires off both this process and then MRU I get the no data found error.
>
You are iterating on the f02 and checking for f01 not null. That is wrong usage of the the checkbox item. Please see these links . especially the OnSubmit Process examples.
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDDCHAF
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_app.htm#AEAPI215
Regards,
PS : This is what you need to understand
>
<b>Note that check boxes displayed using APEX_ITEM.CHECKBOX will only contain values in the APEX_APPLICATION arrays for those rows which are checked. Unlike other items (TEXT, TEXTAREA, and DATE_POPUP) which can contain an entry in the corresponding APEX_APPLICATION array for every row submitted, a check box will only have an entry in the APEX_APPLICATION array if it is selected.</b>
>
Edited by: Prabodh on Jul 2, 2012 9:44 AM

Similar Messages

  • "Page cannot be found" error when submitting tabular form

    One of our developers has used a wizard to create a tabular form with the intent or providing an interface for updating one of our tables. The page runs correctly up until the point when the user clicks the Submit button. The user is then re-directed to a "page cannot be found" error page. I checked the apache error log and I'm seeing this error (ip addresses hidden):
    [Wed Oct 13 06:37:59 2004] [error] [client x.xxx.xxx.xxx] [ecid: 1097674679:x.xx.xxx.xx:7286:0:23738,0] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-400 Too many arguments passed in. Got 2009 parameters. Upper limit is 2000
    We have pages in other applications that were built the same way, and can't figure out why we are seeing these errors.
    Any ideas?
    Thanks.
    Matt

    Sorry I didn't want to take the time to import the application, create the data structure and populate it, when the page is now working. However it seems like you should be able to easily re-create the situation. All I did was go through the wizard for a tabular form. It was based on a view and displayed all the columns, most of them updatable. It seems like what makes it fail (error when either CANCEL or SUBMIT is clicked) is just having a lot of fields on one screen. I base this conclusion on the error message from the Apache error log (mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-400 Too many arguments passed in. Got 2134 parameters. Upper limit is 2000) and on the fix of reducing the number of rows on one screen, using pagination.

  • APEX bug:9879227 (ORA-01403: no data found error when using validations)

    Hi,
    We are getting the
    ORA-01403: no data found error
    when the APEX page has validations AND a tabular form is also present on the page.
    I did see a couple of other forum links discussing the issue (bug id: 9879227 ?? ).
    But what i want to get a confirmation on is, in which release was this bug really fixed ?
    i see the release notes of 4.0.1.00.03 claiming that it is fixed
    in the release.
    we are on 4.0.1.00.03. is this bug really solved in release 4.0.1.00.03?
    are there any known work-arounds ? i tried re-creating the report multiple times, but that did not help.
    Any suggestions or work-arounds will greatly help us.
    Regards,
    Ramakrishnan

    Ramakrishnan,
    If you are talking about getting no data found when trying to save the report then take a look at the last message in this thread:
    {message:id=9971445}
    Cheers,
    Tyson Jouglet

  • Getting 'No Data found' Error when clicking the edit link to edit a record.

    Application Express 4.2.0
    Database: oracle 11g
    Hi Guys
    I am getting an error whenever i try to edit some of my entries by clicking the edit link, i have a composite Primary key attributes of three columns ( Budget Year ('YYYY'), Training Name('VARCHAR') and Emp Code ('VARCHAR')
    Some records will load when i click Edit but some wont and return 'ORA-01403: no data found' error.
    Any help will be appriciated.
    Thanx
    MATT

    Hi,
    Please create example about problem to apex.oracle.com and share developer login details to workspace.
    Regards,
    Jari

  • "No Data Found" Error when uploading a CSV

    Hi All,
    I am using htmldb_tools to upload a csv file into a collection and then to a table. The upload works perfectly if the last column of the csv has data present
    (ex. ...,,a) however when the value is null (ex. ..,a,) then the upload fails with the Oracle error: ORA-01403: no data found. If anyone has encountered this issue and knows how to resolve that would be GREATLY appreciated.
    After much debugging I found out that this section of the parse_file function was what was causing the error. When I commented out the section the upload worked perfectly, so I am wondering what this section does, and if it is necessary.
    BEGIN
    -- Get datatypes
    FOR i IN 1..l_record.count
    LOOP
    l_ddl := l_ddl||','||l_record(i)||' '||l_datatypes(i);
    END LOOP;
    l_ddl := '('||ltrim(l_ddl,',')||')';
    htmldb_util.set_session_state(p_ddl_item,l_ddl);
    EXCEPTION WHEN NO_DATA_FOUND THEN
    raise_application_error(-20000, 'after getting datatypes');
    END;
    Thanks
    Paul
    Edited by: user9508468 on Sep 12, 2008 1:50 PM

    950001 wrote:
    Hi,
    Thanks, but i want to remove only space character after the work that is at the end of word.then add $ symbol.
    see the eg:-
    SELECT Length(STR) Orginal_length,Length(regexp_replace(str,'\s+$',NULL)) Space_removed_length,
    regexp_replace(str,'\s+$',NULL) str_space_removed,str FROM (SELECT 'Welcome hai ' str FROM dual);
    ORGINAL_LENGTH  SPACE_REMOVED_LENGTH          STR_SPACE_REMOVED            STR
    12                          11                           Welcome hai     Welcome hai

  • Page not found error when deleting row in multirow form

    I have a tabular form and when I try to delete one or more rows from the tabular section, I get the confirmation box pop-up window and then this error:
    "The requested URL /apex/wwv_flow.accept was not found on this server"
    I checked other postings and found instructions to generate a trace so here is what I think shows the error :
    wwv_flow.accept(P_FLOW_ID=>:P_FLOW_ID,P_FLOW_STEP_ID=>:P_FLOW_STEP_ID,P_INSTANCE=>:P_INSTANCE,P_PAGE_SUBMISSION_ID=>:P_PAGE_SUBMISSION_ID,P_REQUEST=>:P_REQUEST,P_ARG_NAMES=>:P_ARG_NAMES,P_T01=>:P_T01,P_T02=>:P_T02,P_T03=>:P_T03,P_T05=>:P_T05,P_T06=>:P_T06,P_T07=>:P_T07,P_T08=>:P_T08,P_T09=>:P_T09,F04=>:F04,F05=>:F05,F08=>F08,F06=>:F06,F07=>:F07,F02=>:F02,F03=>:F03,FCS=>:FCS,F01=>:F01,P_MD5_CHECKSUM=>:P_MD5_CHECKSUM);
    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__;
    :db_proc_time__ := dbms_utility.get_time - start_time__;
    end;
    Embedded PL/SQL Gateway: /apex/wwv_flow.accept HTTP-404 ORA-06550: line 6, column 44:
    PLS-00103: Encountered the symbol "WITH" when expecting one of the following:
    := . ( @ % ; not null range default character
    Embedded PL/SQL Gateway: (wpu.c,626) longjumping back to the beginning
    Embedded PL/SQL Gateway: (wpu.c,488) cleaning up before longjmp
    Embedded PL/SQL Gateway: (wpu.c,492) doing a rollback
    Embedded PL/SQL Gateway: (wpcs.c, 76) Executed 'rollback' (rc=0)
    Any ideas why this is happening?
    Thanks

    I kept looking into the trace file and a before the text in the initial posting I found this:
    Embedded PL/SQL Gateway: (wppr.c,1021) lcase(procname): wwv_flow.accept
    Embedded PL/SQL Gateway: (wppr.c,1302) The CALL block: len=2881, bind_count=37
    declare
    rc__ number;
    start_time__ binary_integer;
    simple_list__ owa_util.vc_arr;
    complex_list__ owa_util.vc_arr;
    F08 FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2t with the difference of 11 months apart.^M
    2 For some of them calculate the AWT that includeFLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2tas setup.^M
    For some of them include the AWt monotribuista code to be calculated.^M
    3. Some oFLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2led.^M
    The error says "ORA-06550: line 6, column 44: PLS-00103: Encountered the symbol "WITH" "
    so it points to the following line in the code:
    "F08 FLOWS_030000.WWV_FLOW_GLOBAL.VC_ARR2t with the difference of 11 months apart.^M"
    So... can anyone give me a clue why the code is built this way (looks like the variable definition is truncated)
    Thanks in advance for your help!

  • Error when modifying tabular form

    Hi
    In Apex 3, I created a tabular form based on the query below:
    select user_id /* PK */, name, dob
    from users
    It works perfectly well; I am able to update the name and dob fields.
    Then I changed the query to:
    select user_id /* PK */, name, null dob
    from users
    ...(i.e. not interested in the dob column anymore but want to keep the report column) and cleared the properties reference table owner/name/column name of the dob report column.
    However, when I try to update the name of a user, I get the error:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1,
    ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process.
    current checksum = "7C3CD9C5DA0B5AF45AE616959020A0AA",
    item checksum = "6910D5C7015D84773A9E8F65299991F6".,
    update "SCHEMA"."USERS" set "USER_ID" = :b1, "NAME" = :b2, "DOB" = :b3Why is dob still being included in the update statement?
    Did I miss something?
    Thanks,
    Luis

    Since the DOB was one of the columns specified when you created the tabular form, the internal PL/SQL process that it uses for making updates is still trying to update that column. As you have now modified the underlying query for the form and are passing a NULL for your DOB, you will find that any update made using this form would set the DOB to NULL, so beware!
    Unfortunately, once you have created a tabular form, you cannot make changes to the process that it uses for manipulating data. Another drawback of the tabular form is that it uses the primary key of the table as a way of knowing which record it is updating when it processes the changes. As a result, you cannot modify the primary key value itself - and that is why you are getting the error.
    Generally speaking it is not a good idea to edit primary key values. If this piece of information does require editing, I would suggest you find another candidate for the primary key - perhaps a standard sequence-populated column that could act as a surrogate key?
    Cheers,
    Colin

  • Error when creating tabular form with wizard Apex 4.01

    Hi,
    I just created a tabular form using the page creation wizard on a table and am showing 50 rows at a time and am getting error:
    mod_plsql: /pls/apex/wwv_flow.accept HTTP-400 Too many arguments passed in. Got 2225 parameters. Upper limit is 2000
    It doesn't matter how much data I put in --even just a couple rows updated.  I also reduced rows to 20 and still get same message.
    Anyone else seen this error?
    Pat

    Hi Jari,
    It returns about 1100 records which i think is not much.
    But even when i narrow the amount of records the problem is not solved.
    it this a bug?
    Best
    Hugo

  • ORA-20001 error when creating Tabular Form or Form and Report

    Whenever I try and add a Tabular Form or Form and Report to my application i am getting the following error at the end of the Wizard.
    ORA-20001: Unable to create updateable report. ORA-20001: Error creating shortcut id="" ORA-00001: unique constraint (APEX_030200.WWV_FLOW_SHORTCUT_IDX1) violatedIt's not a problem I have seen when building other apps and clearly I have managed to corrupt this application somehow.
    I have loaded the problem onto apex.oracle.com for those that have access. The application number is 20325.
    Any help would be very much appreciated.
    Cheers Shunt

    Thanks! Never thought of that.
    --Andy                                                                                                                                                                                                                       

  • Scheduled job throws Class Not Found error when executing Java class

    Hi,
    I have written a java class to carry out a file upload to an external site and put the class on our server.
    I also wrote a script to call this java class, passing inthe relevant parameters.
    If i call the script using the ./ syntax from SSH it runs file logged in as Root and Oracle.
    I the setup a scheduled job to call this script but the job fails with the error...
    STANDARD_ERROR="Exception in thread "main" java.lang.NoClassDefFoundError: HttpsFileUpload Caused by: java.lang.ClassNotFoundException: HttpsFileUpload at java.net.URLClassLoader$1.run(URLClassLoader.java:"I cannot understand why it is raising the error if it runs from SSH.
    O/S = Red Hat Enterprise Linux ES, oracle version = 10.2.0.1.0
    Any help or guidance would be appreciated
    Thank you in advance
    Graham.
    Edited by: gpc on Feb 4, 2009 12:46 PM

    Hi,
    See this link for some tips if you haven't yet :
    Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files
    I can think of two things. Your script may not be able to run as the nobody user (by default external jobs run as the nobody user). Or your script might require that some environment variable be set (by default environment variables are not set in external jobs).
    Maybe you need to set the CLASSPATH variable in your script before calling java ?
    Hope this helps,
    Ravi.

  • Tabular Form and Link to document and No Data Found error

    I have used this numerous times in an INTERACTIVE REPORT to link records out from the report to a document in a folder on our server and it works beautifully thanks to one of you guys who helped me a couple of years ago. In the column for which I want to use as a link I do the following:
    LINK TEST #ISO_NUMBER#
    LINK ATTRIBUTES a href=#DOC_LINK#; TARGET="_BLANK"
    URL #DOC_LINK#
    I've been banging my head against the wall trying to figure out why I keep getting a 'No data found' error in my TABULAR FORM. The good news is I figured out why it's happening. The bad news is I do need to link out to the documents listed in my tabular form that are saved on the server.
    Is there any other way to do this?
    Application Express 4.0.0.00.46
    TIA,
    Alexandra

    Finally back...
    I have a tabular form that lists documents stored on one of our servers. In an interactive report I can set up a link to those docs using the document number column in the IR. I can't get it to work in the same way on the tabular form. Hopefully the steps of the catalog process will shed light on what may be the problem:
    Step One
    1. User1 catalogs doument using standard form (page 3) on DOC_INFO table.
    2. Button on form redirects to Approval Tabular Form (for this example, page 100). This tabular form displays DOCUMENT_NUMBER (display as text saves state), APPROVER (select list), APPROVED(select list), RELEASED (select list) fields among others from DOC_APPRV_DOC table
    3. Add Row adds fields in #2 above and other fields
    4. User1 selects APPROVER in select list and Adds Row for all additional APPROVERS required
    5. User1 hits SUBMIT button
    Step Two
    1. User2 opens different page but Approval Tabular Form (for this example, page 200) on same DOC_APPRV_DOC table, restricted to :P101_USERNAME
    2. User2 uses APPROVED select list to approve or reject
    3. User2 hits SUBMIT button
    Step Three
    1. User1 opens Approval Tabular Form (page 100) with User2 (and all other documents requiring approval) results
    2. If rejected User1 uses Reset Approval checkbox and select list on User2's tabular form is reset
    3. If approved User1 uses Released submit list and and record is deleted from User2's tabular form
    The Problem
    User2 ought to be able to review each of these documents on the server. In other parts of my application, an interactive report is used, I've got a case statement in the report creating the link, and have the column itself setup up so that User2 merely clicks on the DOCUMENT_NUMBER on the report and he's redirected to the document itself.
    This works fine when set up the same way on the tabular form ONLY THE FIRST TIME a row is added. If I ADD ROW for any additional documents the DOCUMENT_NUMBER field on the tabular form does not populate on User1's form.
    The entire process works beautifully if the link is not set up.
    Note that from the standard form, the DOCUMENT_NUMBER is sent to a hidden item (default = :P3_DOCUMENT_NUMBER) in a region above the tabular form (page 100). This is then used to populate the DOCUMENT_NUMBER on the tabular form as the default value (:P200_DOCUMENT_NUMBER).
    Your thoughts? Thanks in advance!
    Alexandra

  • No data found error on Form on a Table with report

    Hi Everyone, I'm using Application Express 4.1.0.00.32 on Windows 7. I built a Form on a table with report. Earlier I was using rowid as a passing parameter but then I had to change it to primary key column from report to form.
    So in the "Fetch row process" I changed the "Items containing primary key value" and "Primary Key column" to P1004_PERSON_ID and PERSON_ID respectively. Which is my primary key.
    My Form is working exactly fine but at on point it throws "no data found error".
    I have a required date field in the form. So if the user doesn't fill in the date field and try to save the form, it throws the "Feild required error" and then when user enters date and try to save then it throws the error "No data found.". here is the snapshot... snapshot
    How can I fix this error.I'm really stuck.
    I checked debubber..it is as follows... in debughger it's still showing rowid. I don't know why. How can I fix that.
    Execution
    Message
    Level
    Graph
    0.00233
    0.00932
    S H O W: application="101" page="1004" workspace="" request="" session="123235901404364"
    4
    0.01161
    0.00102
    Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    4
    0.01261
    0.00046
    alter session set nls_language="AMERICAN"
    4
    0.01307
    0.00042
    alter session set nls_territory="AMERICA"
    4
    0.01348
    0.00053
    NLS: CSV charset=WE8MSWIN1252
    4
    0.01401
    0.00042
    ...NLS: Set Decimal separator="."
    4
    0.01443
    0.00053
    ...NLS: Set NLS Group separator=","
    4
    0.01495
    0.00050
    ...NLS: Set g_nls_date_format="DD-MON-RR"
    4
    0.01545
    0.00051
    ...NLS: Set g_nls_timestamp_format="DD-MON-RR HH.MI.SSXFF AM"
    4
    0.01597
    0.00050
    ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
    4
    0.01647
    0.00079
    ...Setting session time_zone to -05:00
    4
    0.01726
    0.00046
    Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
    4
    0.01772
    0.00060
    Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
    4
    0.01832
    0.00092
    ...NLS: Set g_nls_date_format="DD-MON-YYYY"
    4
    0.01924
    0.00049
    ...NLS: Set g_nls_timestamp_format="DD-MON-YYYY HH24.MI.SSXFF"
    4
    0.01973
    0.00083
    ...NLS: Set g_nls_timestamp_tz_format="DD-MON-RR HH.MI.SSXFF AM TZR"
    4
    0.02056
    0.00099
    NLS: Language=en-us
    4
    0.02154
    0.00157
    Application 101, Authentication: PLUGIN, Page Template: 5091946581246503
    4
    0.02312
    0.00065
    ...fetch session state from database
    4
    0.02377
    0.00106
    fetch items
    4
    0.02483
    0.00065
    ...fetched 103 session state items
    4
    0.02548
    0.00194
    Authentication check: NTLM (NATIVE_CUSTOM)
    4
    0.02742
    0.00188
    ...Execute Statement: begin declare begin wwv_flow.g_boolean := f_ntlm_page_sentry_parm; end; end;
    4
    0.02930
    0.00050
    ... sentry+verification success
    4
    0.02980
    0.00042
    ...Session ID 123235901404364 can be used
    4
    0.03021
    0.00114
    ...Application session: 123235901404364, user=VARMAN01
    4
    0.03135
    0.00162
    ...Check for session expiration:
    4
    0.03297
    0.00075
    Session: Fetch session header information
    4
    0.03372
    0.00113
    ...Setting session time_zone to -5:00
    4
    0.03485
    0.00080
    Branch point: Before Header
    4
    0.03565
    0.00598
    Fetch application meta data
    4
    0.04165
    0.00081
    ...metadata, fetch computations
    4
    0.04245
    0.00076
    ...metadata, fetch buttons
    4
    0.04321
    0.00086
    Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY
    4
    0.04406
    0.00058
    Setting NLS_TIMESTAMP_FORMAT to application timestamp format: DD-MON-YYYY HH24.MI.SSXFF
    4
    0.04464
    0.00049

    Just an observance... SQL is still showing the rowid instead of the P1004_PERSON_ID ??
    where "PERSON_ID" = :p_rowid;
    should it not be :
    where "PERSON_ID" = :P1004_PERSON_ID:
    thx, Bill

  • Misterious "ORA-01403: no data found" error

    Hi,
    I've been searching through the forum and the Internet with no results, so I'm posting here hoping you can help me.
    Here is the situation: I had a page 30 with a tree branching to a form on a view.This worked fine until one day that suddenly, we got the "ORA-01403: no data found" error when loading the page. I guess that's normal, since the form shows the data filtered in the tree (in the tree we click on an element and pass its ROWID to the form), and when we load the page no ROWID is selected. So, the first question would be, how can I manage this situation? My first option was to have a condition in the Automatic Fetch for the Form, so that it's executed only when the ROWID item is not null. It worked a couple of times. After a while, it crashed again.
    Tired of trying things, we decided to copy this page 30 to another page (page #80). Surprisingly, page #80 worked meanwhile #30 crashed. And they are completely the same, the data has not changed either.
    Could it be that page #30 somehow is corrupted? It's really strange that the same exact copy of the page works with one ID but not with another one.
    Has someone experienced this situation? it makes me feel like the app is unsecure and unstable. Any ideas, please?
    Apex version: 4.1.1 on APEX listener.
    Thanks,
    Elena.

    fac586 wrote:
    Elena.mtc wrote:
    Thanks for your response. The form is a single row (a form on a table or view). Here is what I've found out thanks to your tips:
    It affects to all the three users that I have access with.Try it with a new user that has never accessed the page before.
    I used the debug mode (new to me, so I'm kind of slow on this, still) and wrote an exception message on the Automatic Fetch Row and I managed to know the ROWID that the fetch process is using in the where clause. Of course this ROWID does not exist in the table, so the first question that comes to my mind is "how come and from where is the page getting this ROWID?". I don't know and can't comment because I can't see the app. ;-)
    If the ROWID is stored in an item, check the Maintain session state property isn't set to Per User.I changed this and seemed to work. But it crashed later. I made a computation process to set to null the rowid's when loading the page. After reset, I deleted the computations (due to application functionality) and it worked. However, I do not trust this page anymore. So we created a new fresh app and copied this page. Luckily we are on development environment :)
    >
    So, I made a computation to initialize to null the item that saves the ROWID, and now it worked.
    This page that I'm testing on is #30, but the valid page is #80 (it has changes made on the look and feel of the page). So, I deleted page #30, and copied page #80 (which works perfectly) into #30. And it crashes again (obvius, since it doesn't have the computation that gives null to the rowid item). What's "interesting" is that I still see the exception message I wrote in the older version of page #30. So, it seems that some values need to be purged and that the delete is not clean, but how? I'm not entirely clear on what you've been doing there, but it does indeed all sound rather odd.
    I suspect that you wouldn't be able to reproduce this problem on apex.oracle.com. However, it would probably be helpful if you could upload the app and provide developer credentials to the workspace so we could see how it works and if there's anything obvious (or not) that might cause this problem.Unluckily I cannot do this. Thank you anyway for the help, it's hard to explain when something so weird happens.
    Thanks!
    Elena.

  • No data found Error

    Hi all ,
    Following code throwing no data found error.
    It is working properly for IF x <> 0 condition but when count(*) is 0 then it's thrrowing error.
    earlier same code working properly as our client is using this application.
    code on when_button_pressed trigger:
    DECLARE
    user1 VARCHAR2(20);
    x NUMBER(4);
    BEGIN
    FOR c1 IN( SELECT COUNT(*) x
    FROM vinay.file_proc
    WHERE sector = :sector
    and block = :block1
    and plot_no= :plotno
    and plot_size = :plotsize)
    LOOP
    x := c1.x;
    END LOOP;
    IF x <> 0 THEN
    MESSAGE('Record Exists');
    MESSAGE(' ');
    RAISE FORM_TRIGGER_FAILURE;
    END IF;
    MESSAGE(' after if');
    MESSAGE(' after if');
    win_api_utility.copy_file(ltrim(rtrim(:ADRIVE1)),ltrim(rtrim(:DESTINATION)),TRUE,TRUE);
    MESSAGE(' copy file');
    MESSAGE(' ');
    SELECT user INTO user1 FROM DUAL;
    INSERT INTO vinay.file_proc values(:sector,:block1,:plotno,:plotsize,user1,sysdate);
    COMMIT;
    MESSAGE(' ');
    CLEAR_BLOCK(NO_VALIDATE);
    END;
    :block2.path1:=:global.drive1;
    GO_ITEM('BLOCK2.ADRIVE');

    Hi,
    I think there is a problem with WIN_API_UTILITY.copy_file can anybody tell me if there is any restriction with this package.

  • Uploading CSV using browse item ( getting no data found error )

    Hi,
    i am using below procedure to upload CSV into my table.
    CSV is having null values in some places ex: 1,
    2,0.999
    3,
    4,0.696
    below procedure working fine when i am uploading CSV like : 1,0
    2,0.999
    3,0
    4,0.696.
    My table is having only two columns, and i am getting no data found error when uploading null values CSV file.
    I went through Import data in excel to 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;regards
    Chandran
    Edited by: Chandran on Sep 26, 2012 10:52 AM
    Edited by: Chandran on Sep 26, 2012 10:25 PM
    Edited by: Chandran on Sep 27, 2012 1:58 AM

    Chandran,
    You can use wwv_flow_utilities.array_element to avoid no_data_found error. The function does not raise errors. So, for the line which only have one array value when you expect 2, it may 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);Regards,
    Christina

Maybe you are looking for

  • How do i sync purchased audiobooks from itunes to my ipod classic 80gb?

    I can see the purchased audiobooks in my itunes library, i have checked sync those audiobooks to my ipod, clicked apply, clicked sync and they are still not on my ipod

  • How to tell the difference in contact phone numbers

    I am sure I am just missing some exciting visual aid presented in the ui but for the life of me I can't tell which number I am calling in the "Recents" section of Contacts. This may be a bad habit but I always use my call list to redial people. Unfor

  • Adding new switch in my network including Cisco Prime Infrastructure

    hi all, if I connect new switch to my network, can I let Cisco PI to apply a specific template of configuration to this switch automatically? how can I do that ? thanks in advance

  • How to update password with out of use email address

    I have adobe digital editions on my desktop computer - it is authorized to an old out of use email. I can read books on the desktop. On my Note3 phone, I can log into adobe using my new current email but I can't open eBooks. I can't use the old email

  • Connexion réseau expirée

    Bonjour, Lorsque je tente de restaurer mon iphone 3Gs, à la fin du téléchargement de la mise à jour, au moment du traitement du fichier, j'ai un message d'erreur : "un problème est survenu lors du téléchargement du logiciel de l'iphone. La connexion