No data found Trigger error (before or after)

Dear all,

We have the trigger in the database, whenever we try to insert the record in WIP_OPERATIONS, NO DATA FOUND exception was thrown, when debugging we, we have found no problem. The first select statement is getting has not, even if there is the value entered for: NEW.wip_entity_id and when we execute the query separately in the database with the: NEW. WIP_ENTITY_ID, its getting the value. What could be the reason? We cannot use statement SELECT AFTER or BEFORE INSERT trigger? No idea why its NO_DATA_FOUND Exception throw?

CREATE OR REPLACE TRIGGER sdm_brasil_wj_ops_iface_trg
BEFORE YOU INSERT OR REMOVE
ON WIP_OPERATIONS
SEO
AGAIN LIKE NEW
OLD OLD
FOR EACH LINE
DECLARE
ln_status NUMBER (10): = 0;
ln_item_id Number (20);
--
lc_txn_type VARCHAR2 (1);
v_interface_flag VARCHAR2 (1);
v_err_msg VARCHAR2 (2000): = NULL;
v_error VARCHAR2 (2000): = NULL;
--
lb_insert_iface BOOLEAN: = FALSE;
--
lr_discrete_job_ops wip_operations % ROWTYPE: = NULL;
--
BEGIN

lr_discrete_job_ops.wip_entity_id: =: NEW.wip_entity_id;

BEGIN

INSERT INTO APPS. The VALUES of XX_TEMP (': NEW.wip_entity_id ' |: NEW.wip_entity_id);

SELECT status_type
IN ln_status
OF wip_discrete_jobs
WHERE wip_entity_id =: NEW.wip_entity_id;


INSERT INTO APPS. The XX_TEMP VALUES ('ln_status' | ln_status);

EXCEPTION
WHEN NO_DATA_FOUND THEN
ln_status: = 0;
v_error: = ' ERR001: NO DATA FOUND - primary item for WJ ID Id: ' | To_char (lr_discrete_job_ops.wip_entity_id): ' = > ' | SUBSTR (SQLERRM, 1, 500);
dbg_pk.appmsg (1, vn | v_error);
WHEN TOO_MANY_ROWS THEN
ln_status: = 1;
v_error: = ' ERR001: TOO Manu Rows: primary item for WJ ID Id: ' | To_char (lr_discrete_job_ops.wip_entity_id): ' = > ' | SUBSTR (SQLERRM, 1, 500);
dbg_pk.appmsg (1, vn | v_error);
WHILE OTHERS THEN
ln_status: = 2;
v_error: = ' ERR001: other - of the primary item for WJ ID Id: ' | To_char (lr_discrete_job_ops.wip_entity_id): ' = > ' | SUBSTR (SQLERRM, 1, 500);
dbg_pk.appmsg (1, vn | v_error);
END;

932450 wrote:
Hi Blushadow,

Thanks for the reply, even I thought that the select statement is get executed before recording is committed to the database.

How we can know, determine if the data enters the wip_discrete_jobs table?

He didn't necessarily need to be committed, but it must have been inserted in the same session.
The NO_DATA_FOUND error would seem to indicate that the trigger on the table wip_operations is put to fire until the data is inserted at wip_discrete_jobs. We have all your code, we are unable to identify the exact location of the error.

Tags: Database

Similar Questions

  • OCI error ORA-01403: no data found in oracle goldengate replication after tts instaniation

    I recently migrated our central system of tg (11.1.0.7) solaris from Sun to linux (11.2.0.3) environment using goldengate (tablespace transportable method used for instantiation).

    Initial replication has worked with HANDLECOLLISIONS and after I took over LAG, I took off Handlecollisions and noticed updated report discarded with OIC error ORA-01403: no data available in two repetitions.


    I followed all the steps in the migration tts steps provided by oracle best practices.


    Can anyone provide any clue how to fix this?


    Thank you in advance.

    For that error, the common problem is missing data, GoldenGate cannot find it because there is no key (search KEYCOLS in the installation guide), or a null is present (trying to update a record and a constraint is not null).

  • ORA-01403 no data found cursor error - please help.

    DECLARE
    Name1 talent.candidate_name%TYPE; -Declaring variables
    long name2; -Declaring variables
    emp_id talent_id.emplid%TYPE.
    EXCEPTION NO_DATA_FOUND.

    CURSOR c1 IS
    Select candidate_name,('''||) Trim (Upper (candidate_name)) | "') as tst of talent;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO name1, name2;
    OUTPUT WHEN c1% NOTFOUND; -TRUE when FETCH can't find none online

    Select distinct emplid
    IN emp_id
    a names
    where a.name_type = 'PRI '.
    and upper (a.last_name) | ',' | Upper (a.first_name) = name2;


    INSERT INTO talent_id VALUES (emp_id, Name1);

    END LOOP;

    CLOSE c1;
    COMMIT;





    Question: Above queries ask me the msg of error ora-01403 no data available for emplid. I try but fail to solve. Please help me. Thank you

    Published by: user12051088 on March 4, 2010 01:38

    Published by: user12051088 on March 4, 2010 01:40

    This unique INSERT could possibly end up with all of your pl/sql code!

    insert into Talent_ID (Emp_ID
                          ,Name1)
                    (select distinct
                            a.Emp_ID
                           ,t.Candidate_Name
                     from   names a
                           ,Talent t
                     where  a.Name_Type = 'PRI'
                     and    upper(a.Last_Name || ', '|| a.First_Name) = trim(upper(t.Candidate_Name))
                    )
    /
    

    Keep in mind, there is no way for me to test it! Furthermore, TALENT_ID is a strange name for a table. Probably typo but simply change the INSERT statement accordingly!

    P;

  • No data found message

    Hi all
    I have a cursor and when there is no data found an error message must meet. Can someone help me to do this

    cursor c_user (p_username in VARCHAR2
    ) is
    SELECT *.
    OF qhr_employee emp
    Upper WHERE (emp. USER name) = upper (p_username)
    AND to_date(sysdate,'dd-mm-yyyy') > = to_date (emp. Start_date, 'dd-mm-yyyy');

    I can hardly believe that the procedure that you have published is in fact to launch a mistake any except 20001 or 20002. You have a when other hider of exception that don't re - not raise the error, so you shouldn't see any other errors. A procedure like yours will never throw this error 6503. There is clearly something that don't show us you.

    (If one) you correctly report the error and b) are actually something run with a vague resemblance with the code you posted, then saw the error ORA-06503, I think that one of the gen_functions. DATEDIFF or qhr_gen_functions.f_get_sys_param causes the error because you call it incorrectly, or because it is poorly written.

    Remove the when appropriate other hider error in your procedure in order to get a stack of error. It should tell you that the function returns the error.

    John

  • The execution of the trigger, 01403 error. 00000 - "no data found".

    Hi guys, Pl/Sql

    When we try to run after initiation, as 01403 error. 00000 - "no data found".

    Trigger is

    CREATE OR REPLACE TRIGGER SYNC_OUGR_USER_ADDRESS

    AFTER INSERT ON OUGR_USER_ADDRESS FOR EACH LINE

    DECLARE

    P_CD_ADDR_TYPE OUGR_USER_ADDRESS. TYPE % CD_ADDR_TYPE;

    P_AD_CITY OUGR_USER_ADDRESS. TYPE % AD_CITY;

    CITY OF P_NM_NAME. TYPE % NM_NAME;

    P_FL_OVERSEAS OUGR_USER_ADDRESS. TYPE % FL_OVERSEAS;

    P_AD_COUNTRY OUGR_USER_ADDRESS. TYPE % AD_COUNTRY;

    P_TEMP_CITY VARCHAR2 (10);

    P_CD_CODE REF_COUNTRY_CODE. TYPE % CD_CODE;

    BEGIN

    P_CD_ADDR_TYPE: =: NEW. CD_ADDR_TYPE;

    P_FL_OVERSEAS: =: NEW. FL_OVERSEAS;

    P_AD_CITY: =: NEW. AD_CITY;

    P_AD_COUNTRY: =: NEW. AD_COUNTRY;

    SELECT LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' '))) IN THE DOUBLE P_TEMP_CITY; -to check if the value is numeric

    SELECT NM_NAME IN THE P_NM_NAME OF THE CITY WHERE ID_TOWN = P_AD_CITY;

    SELECT CD_CODE INTO P_CD_CODE FROM REF_COUNTRY_CODE WHERE CD_CODE = P_AD_COUNTRY;

    IF P_CD_ADDR_TYPE ('ma', 'PA') THEN

    IF P_TEMP_CITY IS NULL THEN

    P_AD_CITY: = P_NM_NAME;

    ON THE OTHER

    P_AD_CITY: = P_AD_CITY;

    END IF;

    ON THE OTHER

    P_AD_CITY: = P_NM_NAME;

    END IF;

    IF P_FL_OVERSEAS = "Y" THEN

    P_AD_COUNTRY: = P_CD_CODE;

    ON THE OTHER

    P_AD_COUNTRY: = P_AD_COUNTRY;

    END IF;

    INSERT INTO OUGR_USER_ADDRESS@TO_GVRS

    (ID_ADDRESS,

    CD_ADDR_TYPE,

    AD_UNIT,

    AD_NUM,

    AD_STR1,

    AD_STR2,

    AD_CITY,

    AD_COUNTY,

    AD_ST,

    AD_COUNTRY,

    AD_ZIP5,

    AD_ZIP4,

    FL_AD_RURAL,

    FL_OVERSEAS,

    TM_STAMP

    )

    VALUES (: NEW.ID_ADDRESS,)

    : NEW. CD_ADDR_TYPE,

    : NEW. AD_UNIT,

    : NEW. AD_NUM,

    : NEW. AD_STR1,

    : NEW. AD_STR2,

    P_AD_CITY,

    : NEW. AD_COUNTY,

    : NEW. AD_ST,

    P_AD_COUNTRY,

    : NEW. AD_ZIP5,

    : NEW. AD_ZIP4,

    : NEW. FL_AD_RURAL,

    : NEW. FL_OVERSEAS,

    : NEW. TM_STAMP

    );

    END SYNC_OUGR_USER_ADDRESS;

    /

    Greatly appreciate your help in this regard.

    Thanks in advance.

    Kind regards

    REDA

    Hi, Raj,

    Instead of

    SELECT LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' '))) IN THE DOUBLE P_TEMP_CITY; -to check if the value is numeric

    SELECT NM_NAME IN THE P_NM_NAME OF THE CITY WHERE ID_TOWN = P_AD_CITY;

    SELECT CD_CODE INTO P_CD_CODE FROM REF_COUNTRY_CODE WHERE CD_CODE = P_AD_COUNTRY;

    You can say:

    P_TEMP_CITY: = LENGTH (TRIM (TRANSLATE (P_AD_CITY, ' + -. 0123456789', ' ')));

    SELECT MIN (NM_NAME)

    IN P_NM_NAME

    OF THE CITY

    WHERE ID_TOWN = P_AD_CITY;

    SELECT MIN (CD_CODE)

    IN P_CD_CODE

    OF REF_COUNTRY_CODE

    WHERE CD_CODE = P_AD_COUNTRY;

    You don't need the double table much in PL/SQL.

    When you use an aggregate function (MIN, as above) without a clause GROUP BY, the result set is guaranteed to have exactly 1 row.  This also avoids the error (ORA-01422) TOO_MANY_ROWS, which is probably impossible in this example.

  • cannot start a campaign bed error no data found for 03/01/1943

    HAVE RECENTLY REINSTALLED CFS3, BUT CAN'T START A CAMPAIGN MESSAGE IS DISPLAYS NO DATA FOUND FOR ALLIANCE FOR MARCH 1

    1943

    Hello

    Thanks for posting the request in the Microsoft community forums.
    I understand that you receive the error "no data available for the alliance for March 1 appears" when you start Combat Flight Simulator 3.
    Please answer the following question:

    What version of the operating system is installed on the computer?

    Try to follow the suggestions and check if you can start Combat Flight Simulator 3.

    Method 1:
    The link below doesn't have any information on the compatibility of the game with Windows 7.
    http://www.microsoft.com/en-us/windows/compatibility/win7/CompatCenter/ProductViewerWithDefaultFilters?TempOsid=win7&Locale=en-us&TextSearch=Combat%2BFlight%2BSimulator%2B3&Type=Both&CurrentPage=0&TotalPages=1&ShowCriteria=0&SortCriteria=Relevance&Compatibility=Unknown&LastRequested=14

    If the game is not compatible with Windows 7, then you try to install the game in compatibility mode and check:
    Make older programs in this version of Windows
    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Method 2:
    If the problem persists you can then put the computer to boot and try to install the game and check if that helps.

    To do this, follow the steps in this link:

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

    Note: After the adventures of shooting set the computer to start as usual by performing step 3 above to the Knowledge Base article.

    Hope the information is useful. If you need help with Combat Flight Simulator 3, feel free to post you question in the forum. We will be happy to help you.

  • Trigger start and stop after desired number of pulses - random errors in my implementation

    Dear all,

    I used an example comes from here: http://zone.ni.com/devzone/cda/epd/p/id/5028

    My code works, but sometimes it gives me this error:

    Error -200279 occurred at Barkhausen_DAQ_raw.vi
    
    Possible reason(s):
    
    Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
    
    Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.
    
    Property: RelativeTo
    Corresponding Value: Current Read Position
    Property: Offset
    Corresponding Value: 0
    
    Task Name: _unnamedTask<37>
    

    Does someone could give me a clue why we get this undesirable behaviour? I make my code I've seen in the official example, only I have a little higher sampling frequency...

    Please find my screws attached.

    Thank you!

    Best regards

    The example looks like it's based on this one--both have the same flaws as someone of NOR should probably correct (or simply move the example of developer to the Community area and then we users can fix it for you instead ).  The issue that you are experiencing just how DAQmx uses the default settings to configure the buffer and the number of samples to read:

    (1) for a finite task, DAQmx chooses a default buffer size of the ownership of samples per channel (the entrance to DAQmx Timing.vi - in your case, 20000 samples).

    (2) for a task finished, by specifying - 1 for entry of number of samples per channel DAQmx Read.vi results in rereading the number of samples specified for the finished task (20000 same samples mentioned in #1).

    So, you can see the problem.  You constantly fill the buffer, but only to remove samples of the buffer into pieces which are the size of the buffer itself.  If something happens in the software a little delaying playback of samples from the buffer, you will end up overwriting data.  The buffer must be larger to compensate for (Alternatively, you can specify a number of samples to the call of DAQmx Read less than your number of configured samples for the finished task, but this seems like it would dimly to go about this).

    Another major problem with the example (it would lead to a different error) is the use of the task request made to decide or not to read all of the samples.  What happens if the task ends after the control has already been done and the reading is still waiting for all of the samples to be filled?  You will block during the full of reading call time-out and will get a time-out error, then don't read the remaining samples in the end due to the error of chaining (or in fact I think that samples would be available on the terminal data instead - but this inconsistency seems undesirable - I don't really like blocking for 10 seconds for pending data in all cases).

    There are also some minor problems with the example:

    • Why should I use so many samples after triggering when this will just make your acquisition performance more than necessary?
    • The "other samples" indicator only is not updated if there is any remaining samples, should we not update us so that it is empty rather than persist in any value has been on the indicator of the last execution of the VI?

    Well, now I've got off on a tangent.  The point is, in the example, there are a few flaws.  I think it of a great use case for DAQmx events and would have probably done something more like this (warning, the extract is not tested - it doesn't have the makings of additional counter your example is to divide the trig source ref):

    The solution to your specific problem is to configure the buffer (DAQmx Configure entry Buffer.vi).  Here, I'm gone with 2 x the number of samples read by iteration of loop (should probably be enough, maybe brought to come up with an algorithm based on the sampling rate however).

    Other patches are post trigger samples are now the 2 minimum (for a stop faster), DAQmx event is now used to determine the time to read all the data (to avoid the reading timeout after stopping), and the remaining data marker is always updated (to avoid stale data is displayed on the indicator in the case that there is no remaining data).

    If all goes well, Miss me not else...

    Best regards

  • DAC 11.1.1.6.4 fails with the error cannot get columns: ORA-01403: no data found

    Hello

    We strive to run a full charge in DAC, but it is a failure.

    The S_ASSET table is empty and therefore, we get the error

    Could not get column: ORA-01403: no data found

    We were not facing this error in DAC 10 g but after upgrade to DCA 11 g, this task has no place if the array is empty. How remove this restriction and DAC will work perfectly even if the tables are empty to full charge?

    CAD DETAILS

    Console Administration Oracle BI DW

    CAD build a 11.1.1.6.4.20121119.2022 Build date: November 19, 2012

    Management Console to install, configure, and administer the Warehouse Analytics of Oracle Business

    Schema version - 47, Index version - 36, repository version - 6, data version Seed - 16

    INFORMATICA - VERSION9.0.1 HF2


    Here's the log of IMG_BUILD - S_ASSET when this task was running in DAC 10 g. The task facing any problem when S_ASSET table was empty.

    [code]

    2013-12-23 15:34:29.644 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET began.

    the number of days of prunes: 4

    After change data capture: 2013-12-19 12:23:19.332 in full Mode.

    2013-12-23 15:34:29.69 - execution:

    TRUNCATE TABLE S_ETL_I_IMG_6

    2013-12-23 15:34:29.89 - executed successfully.

    2013-12-23 15:34:29.9 - execution:

    TRUNCATE TABLE S_ETL_R_IMG_6

    2013-12-23 15:34:30.145 - executed successfully.

    2013-12-23 15:34:30.16 - execution:

    TRUNCATE TABLE S_ETL_D_IMG_6

    2013-12-23 15:34:30.198 - executed successfully.

    2013-12-23 15:34:30.236 - execution:

    INSERT / * + APPEND * / INTO S_ETL_R_IMG_6

    (ROW_ID, MODIFICATION_NUM, LAST_UPD)

    SELECT

    ROW_ID

    MODIFICATION_NUM

    LAST_UPD

    Of

    S_ASSET

    WHERE

    LAST_UPD > TO_DATE ('2013-12-19 12:23:19 ',' ' YYYY-MM-DD HH24:MI:SS)

    2013-12-23 15:34:30.968 - executed successfully.

    2013 12-23 15:34:30.989 - execution of deleting duplicates rowid.

    2013-12-23 15:34:31.01 - successfully deleting duplicates rowid.

    2013-12-23 15:34:31.27 - execution:

    DROP VIEW V_ASSET

    2013-12-23 15:34:31.566 - executed successfully.

    2013-12-23 15:34:31.569 - execution:

    CREATE VIEW V_ASSET AS

    SELECT

    *

    Of

    S_ASSET

    2013-12-23 15:34:31.743 - executed successfully.

    2013-12-23 15:34:31.78 - execution:

    SELECT COUNT (*) IN S_ASSET

    The County is: 0

    Executed successfully: CHANGE CAPTURE: IMG_BUILD - internal S_ASSET

    (Number of attempts: 1).

    Executed orders:

    IMG_BUILD - internal

    2013-12-23 15:34:31.851 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET has finished running with the completed state.

    The same task, IMG_BUILD - S_ASSET fails when it is running in DAC 11 g, because the table is empty. Here is the log for the failure of the task to 11g.

    [code]

    2013-12-27 21:21:47.497 acquisition of resources

    2013-12-27 21:22:20.33 acquired resources

    2013-12-27 21:22:20.787 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET began.

    the number of days of plum: 5760

    After change data capture: 2013-12-23 21:19:19.233 in full Mode.

    21:22:21.211 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_I_IMG_6

    2013-12-27 21:22:22.384 - executed successfully.

    21:22:22.389 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_R_IMG_6

    2013-12-27 21:22:22.532 - executed successfully.

    21:22:22.534 2013-12-27 - execution:

    TRUNCATE TABLE S_ETL_D_IMG_6

    2013-12-27 21:22:22.546 - executed successfully.

    21:22:22.55 2013-12-27 - execution:

    INSERT / * + APPEND * / INTO S_ETL_R_IMG_6

    (ROW_ID, MODIFICATION_NUM, LAST_UPD)

    SELECT

    ROW_ID

    MODIFICATION_NUM

    LAST_UPD

    Of

    S_ASSET

    WHERE

    LAST_UPD > TO_DATE ('2013-12-23 21:19:19 ',' ' YYYY-MM-DD HH24:MI:SS)

    2013-12-27 21:22:22.614 - executed successfully.

    2013 12-27 21:22:22.616 - execution of deleting duplicates rowid.

    2013-12-27 21:22:24.72 - successfully deleting duplicates rowid.

    Could not get column: ORA-01403: no data found

    FAULT INFO: Error executing: CHANGE CAPTURE: IMG_BUILD - internal S_ASSET

    MESSAGE: com. Siebel.Analytics.etl.Execution.exceptions.ChangeCaptureTaskFailedException: Change Capture failed.

    EXCEPTION CLASS: java.lang.RuntimeException

    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:536)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:372)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:253)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:655)

    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    java.lang.Thread.run(Thread.java:619)

    : CAUSE:

    MESSAGE: change Capture failed.

    EXCEPTION CLASS: com.siebel.analytics.etl.execution.exceptions.ChangeCaptureTaskFailedException

    com.siebel.analytics.etl.etltask.ChangeCaptureTask.executeChangeCapture(ChangeCaptureTask.java:93)

    com.siebel.analytics.etl.etltask.ChangeCaptureTask.doExecute(ChangeCaptureTask.java:46)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.doExecuteWithRetries(GenericTaskImpl.java:477)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:372)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.execute(GenericTaskImpl.java:253)

    com.siebel.analytics.etl.etltask.GenericTaskImpl.run(GenericTaskImpl.java:655)

    com.siebel.analytics.etl.taskmanager.XCallable.call(XCallable.java:63)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:441)

    java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)

    java.util.concurrent.FutureTask.run(FutureTask.java:138)

    java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    java.lang.Thread.run(Thread.java:619)

    (Number of attempts: 1).

    IMG_BUILD - internal

    2013-12-27 21:22:31.526 CHANGE CAPTURE: IMG_BUILD - internal S_ASSET has finished running with the Failed state.

    [[code


    The CREATE VIEW privilege was missing from the CAD database user, therefore, was not to create the step. I have granted CREATE VIEW and all is well.

  • Process page not throwing no data found error when you remove the item in a table

    Hi guys,.

    I'm trying to run a process page just before the process of MRU in tabular form and it is throwing an error no data found . 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;
    F01 here is the checkbox column and the if statement is the cause of 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 the Remove button what fires off times this process and then the MRU, I get the error not found data .

    Would appreciate it if someone could shed some light on this. Thank you very much.

    Published by: taepodong on July 1, 2012 07:54

    Hello

    >
    I'm trying to run a process page just before the process of MRU in tabular form and he throws no data were 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 column of the box 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 click on Remove button that triggers both this process and then MRU, I get the no found error of data.
    >

    You iterate over the f02 and seeking f01 not null. It's the misuse of the checkbox element. Please see these links. in particular the examples of process OnSubmit.
    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

    Kind regards

    PS: That's what you need to understand
    >
    Note that the boxes displayed by using APEX_ITEM. CHECK box will only contain values in the APEX_APPLICATION tables for those lines that are checked. Unlike other elements (TEXT, TEXTAREA, and DATE_POPUP) that can contain an entry in the corresponding table of APEX_APPLICATION for all submitted ranks, a checkbox will be an entry in the APEX_APPLICATION table if this option is selected.
    >

    Published by: Dominique July 2, 2012 09:44

  • No data found in the select statement error

    Hi all

    Find my sample table and data structure:
    SQL> desc states;
     Name                                                  Null?    Type
     ----------------------------------------------------- -------- ------------------------------------
     SNO                                                            NUMBER
     SNAME                                                          VARCHAR2(10)
    
    SQL> select*from states;
    
           SNO SNAME
    ---------- ----------
             1 kerala
             2 Tamil nadu
             3 AP
             4 MP
             5 jammu
    Now, I create a block like:
    declare
    v_state varchar2(20):=' AP';
    v_no number;
    begin
    select sno into v_no from states where sname=v_state;
    dbms_output.put_line(v_no);
    end;
    /
    After excecuting this block no data found error takes place.
    Coz in where defective condition. "AP"="AP."

    What oracle function I should use to eliminate this error.

    I tried something like
    where trunc(sname)=trunc(v_state);
    But it defective. Please help me

    / * Don't know what is your exact question, but: * /.

    use the TOPPING instead of TRUNC

    Published by: hoek on November 26, 2011 10:00

  • After the insert trigger error

    Hello

    I created a trigger after insert according to for me, it's OK, but it show me error can not insert Null in code.
     
    
    
    CREATE OR REPLACE TRIGGER  "AFT_INS_CRM_CUSTOMER_CONTACTS" 
      AFTER INSERT ON FH_TAPROD.CRM_SALES_CUSTOMER_CONTACTS 
    FOR EACH ROW
    DECLARE
    custo_id NUMBER;
    var_code varchar2(8);
    cont_code varchar2(5);
    BEGIN
    
    SELECT CUSTOMER_ID INTO custo_id FROM CRM_SALES_CUSTOMER_CONTACTS WHERE ID =:NEW.ID;
    
      select CODE into var_code from VENDOR_CUSTOMER_MAS where CRM_CUST_ID=custo_id ;
    
      SELECT LPAD ( NVL(MAX(CONTACT_CODE), 0)+ 1, 5, '0') into cont_code FROM vendor_customer_contact
      
      insert into VENDOR_CUSTOMER_CONTACT(SBU_CODE ,CODE,CONTACT_CODE, CONTACT_NAME ,PHONE_NO1 ,MOBILE_NO ,EMAIL, ADDRESS1,CUST_ID,UPLOAD_CRM) 
       values('0002',var_code,cont_code,:NEW.CONTACT_NAME,:NEW.CONTACT_PHONE,:NEW.CONTACT_CELL,:NEW.CONTACT_EMAIL,:NEW.CONTACT_ADDRESS,custo_id,'CRM');
    
    
    END; 
    CREATE TABLE  "CRM_SALES_CUSTOMER_CONTACTS" 
       (     "ID" NUMBER, 
         "CUSTOMER_ID" NUMBER, 
         "CONTACT_NAME" VARCHAR2(255), 
         "CONTACT_EMAIL" VARCHAR2(255), 
         "CONTACT_PHONE" VARCHAR2(255), 
         "CONTACT_CELL" VARCHAR2(255), 
         "CONTACT_ADDRESS" VARCHAR2(4000), 
          PRIMARY KEY ("ID") ENABLE
       )
    /
    INSERT INTO CRM_SALES_CUSTOMER_CONTACTS VALUES (204414862717175278810736770347803084847, 204232590877603599356756434170666837075, 'SANJAY',    '[email protected]', 1246456, 57152357,'Near Post Office');
    CREATE OR REPLACE TRIGGER  "BIU_CRM_SALES_CUST_CONTACTS" 
    BEFORE INSERT OR UPDATE ON CRM_SALES_CUSTOMER_CONTACTS
        FOR EACH ROW
    begin
        if inserting and :new.id is null then
            select to_number(sys_guid(),'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') into :new.id from dual;
        end if;
        if inserting then
            :new.created_by := nvl(v('APP_USER'),USER);
            :new.created_on := sysdate;
        end if;
        if updating then
            :new.updated_by := nvl(v('APP_USER'),USER);
            :new.updated_on := sysdate;
        end if;
    end;
    My after insert a table
    CREATE TABLE  "VENDOR_CUSTOMER_CONTACT" 
       (     "SBU_CODE" VARCHAR2(4) NOT NULL ENABLE, 
         "CODE" VARCHAR2(8) NOT NULL ENABLE, 
         "CONTACT_CODE" VARCHAR2(5) NOT NULL ENABLE, 
         "CONTACT_NAME" VARCHAR2(1000) NOT NULL ENABLE, 
         "PHONE_NO1" VARCHAR2(100), 
         "MOBILE_NO" VARCHAR2(25), 
         "EMAIL" VARCHAR2(1000), 
         "ADDRESS1" VARCHAR2(4000), 
         "CUST_ID" NUMBER, 
         "UPLOAD_CRM" VARCHAR2(10), 
          CONSTRAINT "VCV_PK" PRIMARY KEY ("SBU_CODE", "CODE", "CONTACT_CODE") ENABLE
       )
    ORA-01400: cannot insert NULL into ("FH_TAPROD"."VENDOR_CUSTOMER_CONTACT"."CODE") ORA-06512: at "FH_TAPROD.AFT_INS_CRM_CUSTOMER_CONTACTS", line 30 ORA-04088: error during execution of trigger 'FH_TAPROD.AFT_INS_CRM_CUSTOMER_CONTACTS'
    How to solve it.

    Thank you

    Published by: 805629 on January 14, 2011 01:26

    This is the error...

    SELECT CUSTOMER_ID INTO custo_id FROM CRM_SALES_CUSTOMER_CONTACTS WHERE ID =: NEW.ID;

    Is there a reason why not to use: NEW. CUSTOMER_ID rather the query?

  • insertion error - date format picture ends before the conversion while

    My system: I use of Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product with SQL * more: Release 10.2.0.1.0 and the first thing I've done in this project is a user account configuration especially for her through Application Express 2.1.0.00.39 with all permissions and then connected with SQL * more and seized command and run scripts on it since.

    I got the following error was in a previous project, but I don't have the result of it so I don't know how much he touched me. We can not always distribute perfect projects so I could live with that. It is that this new project is the first that start from a previous one have of course, I still have the error so I think they'll be less forgiving of mistakes that I had more time to work on it. However, after hours of research & debugging tests I still cannot do things.

    I read on sites in development more than a couple that we should not rely simply on inputs of channel inserts on dates where there is incompatibilities with nls_date_format and based instead on TO_DATE. This seems logical and I have no problem of implementation, but there is a problem running it. :|

    The following is an excerpt from my project bringing the error that I need to move.
    Thank you so much for your help
    DynV

    H2.
    code

    ALTER SESSION SET nls_date_format = "DD/MM/YYYY";
    DROP TABLE EMP;

    CREATE TABLE EMP
    (
    NOEMP INTEGER NOT NULL PRIMARY KEY,
    NAME VARCHAR (15) NOT NULL,
    FIRST NAME VARCHAR (15) NOT NULL,
    NOFONCTION INTEGER NOT NULL,
    DATEEMBAUCHE DATE,
    SALARY INTEGER NOT NULL,
    NODEPT INTEGER NOT NULL-,
    -FUNCTION REFERENCES FOREIGN KEY (NOFONCTION),
    -FOREIGN KEY (NODEPT) REFERENCES DEPT
    );

    -NoEmp, name, NoFonction, DateEmbauche, NoDept, salary
    INSERT INTO VALUES EMP (1230, "DAHER", "ERIC", 1, TO_DATE (DECEMBER 17, 1997 ',' DD/MM/YYYY ""), 40, 20000);
    INSERT INTO VALUES EMP (3235, "LEMAY", "PATRICK", 3, TO_DATE (FEBRUARY 20, 1982 ',' DD/MM/YYYY '), 20, 3500);

    H2.
    result

    Modified session.

    Table created.

    INSERT INTO VALUES EMP (1230, "DAHER", "ERIC", 1, TO_DATE (DECEMBER 17, 1997 ',' DD/MM/A))
    YY'), 40, 20000)
    *
    ERROR on line 1:
    ORA-01830: date format picture ends before converting all of the input string

    INSERT INTO VALUES EMP (3235, "LEMAY", "PATRICK", 3, TO_DATE (FEBRUARY 20, 1982 ',' DD/M))
    M/YYY'), 20, 3500)
    *
    ERROR on line 1:
    ORA-01830: date format picture ends before converting all of the input string

    H1.
    solution

    The Xgc of channel for the IRC server freenode user [#sql | irc://freenode/%23sql] had me I was using 3 characters for my picture/mask/filter /... instead of the 4 that taking data. then they became "JJ/M".
    M/YYYY "."

    How small error but with such devastating consequences.

    Published by: user13420426 on December 6, 2010 01:39

    You're 1 shy O.

    TUBBY_TUBBZ?select TO_DATE('17/12/1997', 'DD/MM/YYY') from dual;
    select TO_DATE('17/12/1997', 'DD/MM/YYY') from dual
                   *
    ERROR at line 1:
    ORA-01830: date format picture ends before converting entire input string
    
    TUBBY_TUBBZ?select TO_DATE('17/12/1997', 'DD/MM/YYYY') from dual;
    
    TO_DATE('17/12/1997'
    --------------------
    17-DEC-1997 12 00:00
    
    1 row selected.
    
    TUBBY_TUBBZ?
    

    Notice how I YYYY where you YYY.

  • When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    You use listener EA3 ADR?

  • No data found error in the loop of the nested table

    Hi team,

    I'm working on the example to get data in a nested loop using table, but didn't get the no data below found error

    DECLARE
    Is of TYPE numlist array of integer;
    list1 numlist: = numlist (11,22,33,44);
    BEGIN
    List1.Delete (2);
    DBMS_OUTPUT. Put_line ("is the last element" |) List1.last | | "total elementis' | List1.Count);
    List1.extend (4.3);


    BECAUSE me in list1.first... List1.last loop - get ANY DATA FOUND error in this line
    DBMS_OUTPUT. Put_line ('Values' | list1 (i));
    end loop;
    END;

    Could you please help me where I am wrong.

    Thank you very much.

    You get this error because the element 2 has been removed and in the loop, you are iterating over all the elements from 1 to 3.

    To avoid this, use the type of loop below:

    l_index: = names_in. FIRST;

    While (l_index IS NOT NULL)

    LOOP

    DBMS_OUTPUT. PUT_LINE

    (names_in (l_index));

    l_index: = names_in. NEXT

    (l_index);

    END LOOP;

    PL/SQL practices: Loop, first and last

  • 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

Maybe you are looking for

  • How can I install Windows install to download ITunes

    When I try to install I-tunes, this message appears. [The Windows Installer service could not be accessed This can occur if you are running windows in safe mode or if Windows install is not properly installed Contact your suport assistance service] C

  • Abounds with Frustration of blackBerry Smartphones

    Hi guys.  It has been awhile.  Bought Anita a Droid X (to replace its obsolete LG Dare) and a week later Verizon let us know that he went to BOGO so... I must admit that I like REALLY the Droid X.  It has some outstanding features and capabilities. 

  • EBS R12.2 customer sales proposal

    Hi Bashar and all,We have a customer prospect who wanted e EBS.Are the following server care enough?ConfidentialThanks a lot for your continued support.JC

  • Problem downloading 8 Captivate

    I just bought 8 Captivate and when I click on download I get an error "Header is too Long" and it won't let me download it. Is there another way to download?

  • How profile, follow the execution of a method?

    HelloThe question is this: I have a Weblogic cluster with a set of deployed applications. At some point one of these applications is changing a property of system (Transformers/xml parsers) which is screwing up my servers. I would like to know which