DAQmx Trigger: Error 2200077

Hello

I am trying to create a program to trigger a hammer signal, using a USB-6211 card and 4 analog inputs (via 1 DAQmx create channel HAVE voltage to the hammer and 3 others at the exit of the accelerometer). Having as a basis for some examples of LabView as "Acq Cont & voltage chart ' and 'Impact Test (DAQmx) [.vi SVXMPL_Impact Test (DAQmx)]', I built my program, but it does not work.

If I don't put the relaxation and the task to start, my programme without any problem (in this case I use 4 DAQmx create channel HAVE tension, a DAQ Timing, linked to the DAQmx Read located on the loop). But when I add the trigger (start analog Edge) out of the loop, so that between the time the DAQmx Read, error-200077 apears and DAQmx. This same error apears too when I try to run the sample of "Cont Acq & voltage graph" (even if I change the sample rate and the number of samples, the error is still the same). The error-200431 apears when I try to launch the second example ("Impact Test (DAQmx) [SVXMPL_Impact Test (DAQmx) .vi]), but in this case probably the DAQ card is not suitable to run this program.

When I add a task to start before the loop (where is located the DAQmx Read function) on my program without the shutter button, the error-200278 appears. And if I add the trigger and Start Task, just the apperas-200077 error function. However, the startup task is not bothering me as much as the trigger, because when I do not use the trigger on the example "Acq Cont & chart tension" and the task of beginning is always there, this program runs normally. In this case the problem is probably on my prgram and not on my data acquisition card.

I just want to know if my card cannot run this trigger function (early analog Edge) or if there is something else, because it's strange how a relatively simple example can be run using my data acquisition card.

Thank you

Hi, FCB,.

The USB-6211 can only be released digitally.

The attached document allows you to see the specifications of your card:

http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/203224

Tags: NI Hardware

Similar Questions

  • DAQmx trigger

    I'm relativley new to labview and I have a problem, try to configure the trigger with DAQmx

    Im am using NI 6210 to acquire data of probe of HAVE - what Im I'm wanting to do is aquire data whenever the proxistor is triggered since my digital input.

    So what I am asking is to capture 1 cycle of data and save data on each cycle to be used at a later date to remove some samples at a specified time.

    I installed a test (VI attached) that, for the moment, uses through Boolean to see when the proxistor goes high and start this accurs task and the data entered and the task is stopped when the proxistor is low. This seems to work ok from what I was told that is - this isn't a very good way of timing and I see that captured samples are not the same each cycle so I need to look at another way to capture 1 full cycle of dat using the DAQmx trigger for the aquistion. I have been thorugh the examples NOR but these cant find a way to implement the trigger for what I need. I also read that this series of card does not re - trigger that I need to implement?

    Any help/advice would be greatly appreciated.

    Hi David,

    Sorry for the late reply-

    Yes the VI you provided helped me a lot and is a good start for me to help me do what I have to do.

    Thanks for your help

    Lee.

  • FRM-40735: trigger ERROR raised unhandled exception ORA-06508

    I am having this error when executing my form this error before the page load screen I have not een know what trigger causes error

    FRM-40735: trigger ERROR raised unhandled exception ORA-06508'm in oracle 11 g 2 of the form how to find on which trigger causes error

    Hello

    Below is the cause of the error and for more information, see the link below.

    Question: An attempt was made to call a stored program that cannot be found.

    ORA-06508: PL/SQL: not found unit of programs called tips

    Oracle/PLSQL: ORA-06508

  • Reference with 6215 trigger: error 200452

    I am trying to create a trigger for reference to the analog inputs of sample. However, I get the following error:

    Error DAQmxBase-200452: specified property is not supported by the device or is not applicable to the task.

    And here is the code (which is actually from one of the sample codes)

    .

    Trip parameters
    Char [] triggerSource = ' / PFI0/Dev1;
    uInt32 triggerSlope = DAQmx_Val_RisingSlope;
    uInt32 triggerSamples = 100;
    .

    .

    .

    DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,chan,"",DAQmx_Val_Cfg_Default,min,max,DAQmx_Val_Volts,));
    DAQmxErrChk (DAQmxBaseCfgSampClkTiming (taskHandle, clockSource, sampleRate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, samplesPerChan));

    DAQmxErrChk (DAQmxBaseCfgDigEdgeRefTrig (triggerSource, triggerSlope, taskHandle, triggerSamples));

    DAQmxErrChk (DAQmxBaseStartTask (taskHandle));
    DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,data,bufferSize,&pointsRead,));

    printf ("%d samples\n achievements", pointsRead);

    Print only the first 10 points
    for (i = 0; i< 10;="">
    printf ("data [%d] = %f\n", i, data [i] ");

    Reference trigger not taken the 6215? I m using the following:

    OpenSuse 11.2

    MX NI DAQ base 3.4.0

    LabVIEW 10.0

    I m basically just make use of the C API in my own program and do not use other software to configure the DAQ.

    Unfortunately, reference trigger is only supported in DAQmx Base 3.4 for the PCI, PCIe, PXI M Series (see the DAQmx Base 3.4 readme file).

    A possible solution would be to sample lines HAVE continuously and implement the reference trigger yourself in the software.

    Best regards

  • DAQmx 201105 error using the cDAQ 9403 module

    I'm using the DAQmx C library of Borland Delphi programming.  My hardware configuration is a cDAQ-9174/9178 with a 9222, 9401 and 9403 module.  Here's where I manage problems at the moment:

    I want to run three different tasks on my 9403 module:

    Task1 is an output buffered with frame sample clock/cDAQ1/do/SampleClockTimebase to 100 kHz (channel 0-5)

    Task2 is a software-timed output (20-25 channels)

    Task3 is a timed software entry (channels 26-31)

    Task2 and Task3 me give 201105 errors when I try to use DAQmxWriteDigitalLines and DAQmxReadDigitalLines, respectively.  Create channels for these tasks works very well, however.  Apparently, there is some reason to believe that the 9403 won't perform Task1, except that it works without raising errors.  This work by accident and only because I am using channels 0-5?  That's why I'm getting errors when trying to use the tasks 2 and 3?

    Any thoughts are appreciated.

    Hi André,.

    This is expected behavior and is documented in the digital i/o considerations for devices of the series C using DAQmx.

    The 9403 is registered has a series module that has the following restrictions:

    • You may not use modules series and parallel together on the same task timed material.
    • You may not use modules series for the trigger.
    • You can do static and timed tasks at the same time on a single serial module.
    • You cannot material timing in one direction at a time on a module in the two-way series.

    You can do task 1, or you can do tasks 2 and 3.  You can not do the tasks 1, 2 and 3 together, as you saw.  You can do it with an additional 9403 if you move the software tasks timed to the other module.

    The 9401 is a parallel module that does not have these restrictions.  Snacking is configurable, however, which means that you must set the direction in groups of 4, but it seems that you are using too many lines for a single 9401.

  • DAQmx 50413 error problems &amp; meter

    Hello, we have recently set up our PCI-6229 map on a new computer running Windows 7 and have upgraded to LabView 2009 8.6. Our vi already functional to count the photons closed now returns a NaN value instead of the counts and, occasionally, displays an error message: "error-50413 occurred at DAQmx Read (minimum 1 D DBL 1Chan NSamp) .vi:1 ' which appears first of all inside the integrated_data_taker6229_v2.vi and spreads to the integrated_gate_mover6229_v2.vi.

    Others that the move to a new computer and updated the software, all remained unchanged (IE channel assignments). Everyone has experienced difficulties with their vi after a software upgrade or moving to new hardware.

    Any help would be greatly appreciated!

    Thank you

    bftm

    Hello

    From the looks of your error, there is a physical error that occur on the plateau that is separate from your software.  Looking for information on my side, there are a few things to try which have been known to solve the problem.

    You have another PCI-6229 map?  If you do, try to Exchange cards to see if there is a different result.  This error sometimes occurs when the PCI card is not sitting properly in place, try so take the card out and clean the contacts, then place the card back in the system in a different PCI slot.

    If you have another PC system, try installing the card and software in it and see if the error persists.  Most of the time, the question is specific PC, and the PC with another PC of switching problem solves the problem.  Because you have recently changed to PC, I'm inclined to say that there may be a problem with the PCI on this PC bus, or the way the card fits in that the bus is not quite correct.

    If all else fails, a return for repair can be done on the map.

  • DAQmx 50103 error, two tasks of MAX on the E-series

    A bit of a surprise here, even after reading all the posts on the infamous error of-50103.

    I'm debugging a data acquisition task, in LabWindows/CVI, for a PC with an E-series PCI card (PCI - 6032E, I think). There are two analog channels: one is a photoelectric sensor ("receiver") that is read in bursts, the other ('power') is an electricity meter that is read from time to time. I've set up two tasks, Max with the corresponding calendar and the trigger settings; Load them into my program using DAQmxLoadTask() and others, and we're off. Where I encountered problems, that's when I need to restart the task of 'Receiver' and re - allocate buffer according to certain parameters of execution. When I do that, the call to DAQmxStartTask() fails.

    If, as I understand it, the problem is that you cannot have two tasks simultaneously running on the same tray, so why don't I get the error-50103 when I first start both tasks?

    The basic sequence looks like this:

    Init() //called once at the beginning of the init program the two tasks

    DAQmxLoadTask (& Receiver_handle)

    DAQmxSetTrigAttribute (& Receiver_handle)

    AllocateBuffers()

    DAQmxLoadTask (& Power_handle)

    DAQmxSetTrigAttribute (& _handle Power)

    AllocateBuffers()

    InitTask(&handle) //called to stop and restart the task of the receiver with new buffer settings

    CloseTask(&handle)

    StopDAQ(&handle)

    DAQmxStopTask(&handle)

    DeallocateBuffers()

    DAQmxClearTask(&handle)

    DAQmxLoadTask(&handle)

    DAQmxCFGInputBuffer(&handle)

    DAQmxRegisterEveryNSamplesEvent(&handle) //register Manager of data (task receiver only)

    AllocateBuffers(&handle)

    StartDAQ(&handle) //called once for each task, called once again after the call to InitTask()

    DAQmxStartTask(&handle) [failure]

    The program successfully call StartDAQ twice at the beginning and starts each two tasks without error. I only get the - 50103 to the DAQmxStartTask () call the second time, I call StartDAQ() for the receiver, after the judgment task, reallocation of the buffers and reloading of the task (which happens without error). Any help much appreciated.

    Hello

    I hope that you had a wonderful holiday season, looking at your code, I think it will take to ensure that you have a task that is running, below I think would be the best way to initialize the task at hand and see if it works.

    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai1","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",10000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000));

    If this does not resolve your problems I check the example finder and see if any of this code is able to help you.

    Finally, I have two examples of data strings at the same pace and if you have too many samples on a single line you can throw most of these samples.

    I hope this helps,
    Daniel

  • Capture camera IMAQ via DAQmx trigger operation

    Hi all

    I thought I could re - this poster in this forum to see if I get more ideas!

    I work with a PCIe-1427 card connected by link to a camera (SUI Goodrich) and also using a card PCI-6731 to which I attached a connection block M SCC-68 series.

    I managed to write code to control the .avi capture the camera and write separate code to control the lighting of optical switch connected to the SCC-68.

    The two lines of the optical switch Relay different info and I will in turn present this information to the camera for analysis.  Ideally, I'd like to trigger the acquisition of the capture of the camera with the optical switching so that each image contains information of a single channel only, but I still fell in the integration of the operation of DAQmx meter with IMAQ camera code.

    Is this possible?  I see 1 previous post by using a RTSI cable can I connect the two devices together (or alternatively use the DAQmx to produce a trigger on the digital).  Can someone offer information or an example on how to route signals via the RTSI to IMAQ DAQmx?  Also do I tuned regarding the generation of pulses to the switch that allows signals to pass through RTSI?

    I find it by running my camera and counter code in vi even both will work (not in sync)-if I connect the RTSI and select the camera settings to accept the RTSI triggers, if it was a simple solution?

    I would greatly appreciate any ideas you may have. my time runs out very quickly and is really distressing.

    Sincere greetings and thanks,

    Miika

    Miika salvation,

    If I understand what you try to do in VI you attached, you want the output of the counter of the task DAQ to serve the trig by buffer task it IMAQ via RTSI.

    To do this, use the property node of channel DAQmx to configure the output terminal of the impulse to be RTSI 0:

    Select property > counter output > Pulse > output terminal

    B. change the node property to write.

    C. create a constant and select/Dev1/RTSI0

    On your IMAQ configure Trigger VI, RTSI value as type, set to 0 the number of line, set the action to trigger each buffer and set the polarity to rising edge.

    Oh yes, make sure to connect the RTSI cable for two cards.  I forgot that before and felt really stupid later.

    -Jeff

  • DAQmx Setup error

    I have a brand new with Windows7 - 64 bit.  I installed LV 2010 RT, FPGA and all drivers. No problem.  I then installed LV 2012 with RT, FPGA, a few tools and drivers.  I got an error when installing on DAQmx.  I told him to continue.  Then, I got an error at the end saying that something was not installed correctly.  The two messages are attached below.  I have uninstalled all NOR associated and repeated.  Same result.  I can open and run LabVIEW 2010 and 2012.  I can open MAX.  However, when I attach a USB-6008 to the computer, it is said that the driver is not loaded.  MAX can't see the 6008.  Which, of course, corresponds to the Setup error.  Any ideas how can I fix?

    Thank you

    DaveT

    Hi Dave,.

    This problem is often related to anti-virus software. You have any antivirus running on your new computer software? If you do, please try to uninstall DAQmx, disable the active virus scan utility and install the drivers as administrator.

    I hope this helps! Thank you

  • Trigger error

    I have create this trigger:

    CREATE OR REPLACE TRIGGER old_date

    BEFORE coupons INSERT, DELETE or UPDATE ON

    FOR EACH LINE

    BEGIN

    Remove COUPON

    WHERE correspondents < sysdate;

    END;

    so, I want to insert a new row in the table "coupons":

    INSERT IN COUPONS (KUP_ID, UZS_ID, KLUBO_ID, KAINA, KREIPINYS, PALINKEJIMAS, expiration_date )

    VALUES (18, 1, 1, 50, "Trigeri", 'Gero trigerio!', ' 2016-01-01');

    and I get this...

    Error starting 1 001 from command line:

    INSERT COUPONS (KUP_ID, UZS_ID, KLUBO_ID, KAINA, KREIPINYS, PALINKEJIMAS, CORRESPONDENTS)

    VALUES (18, 1, 1, 50, "Trigeri", 'Gero trigerio!', '' 2016-01-01)

    Error report:

    SQL error: ORA-04091: ANONYMOUS array. Vouchers is changing, function of triggering/can not see

    ORA-06512: at "ANONYMOUS. OLD_DATE', line 2

    ORA-04088: error during execution of trigger ' ANONYMOUS. OLD_DATE'

    ORA-06512: at "ANONYMOUS. OLD_DATE', line 2

    ORA-04088: error during execution of trigger ' ANONYMOUS. OLD_DATE'

    04091 00000 - "table %s.%s is changing, function of triggering/can not see.

    * Cause: A trigger (or plsql user-defined function that is referenced in)

    This statement) attempted to watch (or modify) a table that has been

    in the Middle being modified by the statement that shot.

    * Action: Rewrite the trigger (or function) so it does not read this table.

    The transfer of error, do not try to update at the same table for a trigger on which it is defined.

    But if you really want to do this, try to create an immediate part time job of a trigger as

    CREATE OR REPLACE TRIGGER old_date

    BEFORE coupons INSERT, DELETE or UPDATE ON

    FOR EACH LINE

    BEGIN

    dbms_job. Submit

    (

    work-online l_jobid,

    What => ' remove COUPONS WHERE correspondents<>

    next_date-online sysdate,

    interval-online null

    );

    END;

  • instead of trigger error

    Hi all

    I use

    Connected to Oracle Database 11g Express Edition Release 11.2.0.2.0

    I use the Oracle HR schema

    CREATE TABLE EMPLOYEES_COPY2 AS

    SELECT *.

    EMPLOYEES

    CREATE TABLE DEPARTMENTS_COPY2

    AS

    SELECT * FROM DEPARTMENTS

    CREATE TYPE employee_type AS OBJECT)

    VARCHAR2 (25) LAST_NAME,.

    E-MAIL VARCHAR2 (25).

    DATE OF HIRE_DAE,

    JOB_ID VARCHAR2 (10))

    CREATE THE EMPLOYEES_LIST TYPE

    AS THE employee_type TABLE

    CREATE VIEW DEPT_EMP_VIEW

    AS

    SELECT D.DEPARTMENT_ID,

    D.DEPARTMENT_NAME,

    CAST (MULTISET (SELECT SELECT,)

    E.EMAIL,

    E.HIRE_DATE,

    E.JOB_ID

    OF EMPLOYEES_COPY2 E

    WHERE E.DEPARTMENT_ID = D.DEPARTMENT_ID)

    AS EMPLOYEES_LIST) PGE

    OF DEPARTMENTS_COPY2 D

    SQL > CREATE OR REPLACE TRIGGER IO_BIFER_DEPT_EMP_VIEW

    2. INSTEAD OF

    3. INSERT ON DEPT_EMP_VIEW FOR EACH LINE

    4 BEGIN

    5 INSERT INTO DEPARTMENTS_COPY2 (DEPARTMENT_ID, DEPARTMENT_NAME)

    6 VALUES (: NEW.) DEPARTMENT_ID,: NEW. DEPARTMENT_NAME);

    7

    8. FOR i IN 1.. : NEW. PGE. COUNTY

    9 LOOP

    10 INSERT INTO EMPLOYEES_COPY2 (LAST_NAME, DEPARTMENT_ID, EMAIL, HIRE_DATE, JOB_ID)

    11 VALUES (: NEW.) (I) TIME. LAST_NAME,: NEW. (I) TIME. E-MAIL: NEW. (I) TIME. HIRE_DATE,: NEW. (I) TIME. JOB_ID,

    12: NEW. (I) TIME. DEPARTMENT_ID);

    13 END OF LOOP;

    14 END;

    15.

    WARNING: Trigger created with compilation errors

    SQL > show err

    Errors for the HR of the TRIGGER. IO_BIFER_DEPT_EMP_VIEW:

    LINE/COL ERROR

    -------- -------------------------------------------------

    8/71 PLS-00302: component 'HIRE_DATE' must be declared

    8/70 PL/SQL: ORA-00904: invalid identifier

    7/8 PL/SQL: statement ignored

    What is the error here, I'm not bale to understand.

    Help, please

    Thank you

    You have a typo in the definition of the type:

    CREATE TYPE employee_type AS OBJECT)

    VARCHAR2 (25) LAST_NAME,.

    E-MAIL VARCHAR2 (25).

    HIRE_DAE DATE,

    JOB_ID VARCHAR2 (10))

    Then correct the type definition or use: NEW. (I) TIME. HIRE_DAE in relaxation.

    SY.

  • Compilation of trigger error

    Hello

    I'm new with Oracle technology and I do not understand this error:

    Compilation failure, line 0 (18:19:09) line numbers associated with compilation errors are relative to the first BEGIN statement. This affects only the compilation of database triggers.

    PLS-00801: internal error [ph2csql_strdef_to_diana:bind] Compilation failed, line 12 (18:19:09) line numbers associated with compilation errors are relative to the first BEGIN statement. This affects only the compilation of database triggers.

    PL/SQL: ORA-06544: PL/SQL: internal error, arguments: [ph2csql_strdef_to_diana:bind] [] [] [], [], [], [], [] Compilation failed, line 10 (18:19:09) line numbers associated with compilation errors are relative to the first BEGIN statement. This affects only the compilation of database triggers.

    PL/SQL: SQL statement ignored


    This is the code:

    create or replace TRIGGER "BI_TBL_GAC_DEMANDES_AMEL"

    front Insert on 'TBL_GAC_DEMANDES_AMEL'

      for each row

    DECLARE

    v_users users% rowtype

    BEGIN

      if : NEW . "PK_ID_GAC_DEMANDE_AMEL" is null then

    -New PK

    Select 'TBL_GAC_DEMANDES_AMEL_SEQ'.nextval

          into : NEW . "PK_ID_GAC_DEMANDE_AMEL"

          from SYS . DUAL;

    -Find the recipient

        Select *

          into v_users

          from users

            where user_name = : v ('APP_USER') ;

    -Send msg responsible plan of action

    Insert into TBL_MESSAGES ( )

             DAT_MESSAGE ,

             TXT_TITRE ,

    FK_ID_EXPEDITEUR

    FK_ID_DESTINATAIRE

    FK_TXT_PROCEDURE

    FK_TXT_STATUT_MSG

             TXT_MESSAGE )

        values (

             SYSDATE ,

    ' New request improvement of,

            v_users . FK_ID_EMPLOYE,

            -- v_users . FK_ID_EMPLOYE,

    111,

            'GAC' ,

            'NEW' ,

    ' A new improvement request has been created and your intervention is requested '()

      end if ;

    END ;

    Thanks for help.

    > where user_name =: v ('APP_USER');

    incorrect syntax above

    What are you trying to do here?

    How can I ask a question in the forums?

    https://forums.Oracle.com/forums/thread.jspa?threadID=2174552#9360002

  • Trigger error - Table or view does not exist

    Hello

    I imported a dump of the database of Oracle 9i to Oracle 11 GR 2. Everything works fine, but I'm unable to compile the two triggers. Relaxation is provided in:

    {code}

    create or replace trigger tm_daily_activity_t_bf_update before update on tm_daily_activity_t start_t

    for each line

    Declare

    Time_now DATE;

    Varchar2 (40) Terminal.

    name VARCHAR2 (255);

    v_program VARCHAR2 (255);

    Start

    Time_now: = SYSDATE;

    Terminal: = USERENV ('TERMINAL');

    Select e-mail in the name of tm_employee_t where COID_ID0 =: OLD. EMPLOYEE_OBJ_ID0;

    Select the program from v_program v$ session;

    insert into tm_daily_activity_t_log values (: OLD.) START_T,: OLD. EMPLOYEE_OBJ_ID0,: OLD. ROWID,: OLD. CREATED_T, SYSDATE, TERMINAL, NAME, v_program);

    end;

    {/ code}

    {code}

    create or replace trigger tm_daily_activity_t_af_update after update on tm_daily_activity_t start_t

    for each line

    Declare

    v_program VARCHAR2 (255);

    Start

    Select the program in session v_program $ v where sid = (select distinct sid of sys.v$ mystat);

    If upper (v_program) = "TOAD. EXE' or upper (v_program) = ' SQLPLUSW. EXE' or upper (v_program) = ' SQLPLUS. EXE' or upper (v_program) = ' SQLPLUS @ "then

    raise_application_error (-20001, 'validation of completed trigger', true);

    end if;

    end;

    {/ code}

    Both triggers gave error ora-00942 table v$ session, but if I execute a select statement outside triggers it works fine.

    Any ideas what the permission is required?

    Privileges through roles do not apply to procedures, functions, or triggers. Try to connect SYS and giving a direct grant to select users for example

    Grant select on v_$ user session;

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

  • Application packed - Expertise Tracker Trigger error

    Good people good day:

    I recently installed a packaged application titled "Expertise Tracker" {Application Express 4.2.1.00.08}. It is an EXCELLENT application that I would use. However, one of the triggers seems to have an error. The trigger in question is:

    BIU_EBA_SME_CONTACTS and is composed as follows:

    create or replace
    biu_eba_sme_contacts relaxation
    before insert or update on EBA_SME_CONTACTS
    for each line
    declare
    OV varchar2 (4000);
    NV varchar2 (4000);
    Start
    If the insertion
    If: NEW.ID is null
    then select to_number (sys_guid (), 'FBI')
    in: NEW.ID
    Double;
    end if;
    : NEW. CREATED: = LOCALTIMESTAMP;
    : NEW. CREATED_BY: = nvl (v ('APP_USER'), USER);
    *: New.row_key: = eba_sme_fw.compress_int (eba_sme_rowkey_seq.nextval); *
    end if;

    If the insert or update can
    : NEW. SETTING A DAY: = LOCALTIMESTAMP;
    : NEW. UPDATED_BY: = nvl (v ('APP_USER'), USER);
    end if;
    -Photo postings
    -Size (limit of 200 KB)
    If the update and: NEW. PHOTO_NAME is not null and (dbms_lob.getlength(:NEW.) nvl (PHOTO_BLOB), 0) > 204800 then
    raise_application_error (-20000, ' the size of the uploaded photo has over 200 KB.) Thanks to upload a smaller image. ") ;
    end if;
    -Mimetype (must be the picture)
    If (insert or update) and: new.photo_name is not null and not
    (
    NVL (:New.photo_mimetype, 'NULL') like '% of the image.
    or
    : new.photo_name as '%.jpg '.
    or
    : new.photo_name as '%.jpeg '.
    or
    : new.photo_name as '%.png '.
    or
    : new.photo_name as '%.gif '.
    or
    : new.photo_name as '%.bmp '.
    or
    : new.photo_name as '%.tif '.
    or
    : new.photo_name as '%.tiff '.
    ) then
    raise_application_error (-20000, ' the uploaded file was not an image.) Thank you to upload an image file. ") ;
    end if;
    end;

    Oracle triggers an error ' •trigger ' SCHEME. " ' BIU_EBA_SME_CONTACTS' is not valid and does not re-validation ". After looking into the trigger and you try to run the script, I get the following error * "Error (13.69): PLS-00357: Table, view or sequence reference ' EBA_SME_ROWKEY_SEQ.» ' NEXTVAL' not allowed in this context. *
    It seems as if line 17 is written by mistake. How can I fix?

    Thank you for your help.

    Published by: AquaNX4 on March 16, 2013 05:30

    The pleasures of learning PL/SQL-understand-you what the question was?

    Initially, this syntax is allowed in 11g

    my_variable := my_sequence.nextval;
    

    I was trying to describe some simple pseudocode for you, that you have tried incorporating - but it is essentially the code that was added.

    declare
      l_key number;
    begin
      select my_sequence.nextval
      into l_key
      from dual;
      my_variable := l_key;
    end;
    

    As described here (but this does not improve performance)
    http://docs.Oracle.com/CD/B28359_01/server.111/B28279/Chapter1.htm#autoId77

    Scott

Maybe you are looking for