DAQmxGetWriteTotalSampPerChanGenerated returns an incorrect number of scans generated after 25 minutes

Hello

When you use DAQmxGetWriteTotalSampPerChanGenerated, I noticed that I get a wrong number of generated scans when running analog output continuous for more than 25 minutes. After some debugging I realized that the generated value returned by DAQmxGetWriteTotalSampPerChanGenerated scans wraps around 2 ^ 32 despite the uInt64 data type. I checked that the data using NOR-DAQmx C reference type indicates indeed uint64 and not such a limitation is documented, so I just wanted to check if it was a normal behavior or a bug.

I see this behavior with the NI USB-6255 housing, operating at the maximum sampling rate for about 25 minutes.

I use a machine Win64 with NIDAQmx driver version 9.3.0f2.

TaskHandle taskHandle = 0;

uInt64 data = 0;

...

DAQmxGetWriteTotalSampPerChanGenerated (taskHandle & data)

Attached is a Trace of e/s OR illustrating this issue.

Thank you

Bruno w,

The MathWorks

This behavior has been reported on X as a Corrective Action Request (CAR) 353282 series.  I will update the CAR in order to take into account that it is a problem for the M series as well.

In the short term, you can work around this problem by adding n * 2 ^ 32 (where n = number of rolls above) to the value returned by TotalSampPerChannelGenerated case where you would see that "TotalSampPerChannelGenerated" has declined.

Dan

Tags: NI Hardware

Similar Questions

  • getData returns an incorrect number of bytes for the .png icon

    BB Storm JDE 4.7.0

    I'm creating a module of code in a .cod file. I get application descriptor and the first descriptor I getEncodedIcon() and the returned EncodedImage I call getData. The result is a byte array that has 2 additional bytes to the beginning 0x00DD (it's a .png file).

    OK, first of all, why is it? The first 2 bytes tells me it's a file .png or something?

    Second, can someone tell me a quick way to convert it to an array, starting with the 2 byte (the 3rd byte).

    I watched ByteVector but it allows me to copy but not for copy in.

    I don't want to do byte-by-byte as it is slow.

    I want just to get an arrangement [] starting with byte 2 bytes or to first get the .png file returned with the correct byte.

    Note that I confirmed that what I say is true by setting the two breakpoints in the debugger and by writing out a file again... he got 2 extra bytes at the beginning of the different file than that was the original .png file.

    Any ideas greatly appreciated.

    Thank you

    -Donald

    You could do a System.arraycopy () with size origArray.length - 2 I guess. But you have to double the space...

    What you're trying to do with it? Many features of rop and others allow you to specify an offset in the table to avoid copies.

  • Return with incorrect serial number facility

    Try installing Acrobat X Pro to a new computer with window 8.1.

    With serial number of my products. Always returns with incorrect serial number.

    You probably may need to contact the Support from Adobe.  Sounds like a problem with the license, then you can try this KB: error of incorrect serial number

  • ORA-01789: query block has an incorrect number of columns of results

    Hi guys,.

    I do the query like this:

    Select

    SPH. PERIOD,

    SPL. PERIODE_DETAIL,

    SUM (case when spl.) SUB_KRITERIA = "KEHADIRAN" then spl. NILAI

    end) AKTIFITAS_KEHADIRAN

    SUM (case when spl.) SUB_KRITERIA = "KONSISTENSI" then spl. NILAI

    end) AKTIFITAS_KONSISTENSI

    SUM (case when spl.) SUB_KRITERIA = "KERJASAMA" then spl. NILAI

    end) KOMUNIKASI_KERJASAMA

    SUM (case when spl.) SUB_KRITERIA = "KOORDINASI" then spl. NILAI

    end) KOMUNIKASI_KOORDINASI

    SUM (case when spl.) SUB_KRITERIA = "INTEGRITAS" then spl. NILAI

    end) LOYALITAS_INTEGRITAS

    SUM (case when spl.) SUB_KRITERIA = "KEJUJURAN" then spl. NILAI

    end) LOYALITAS_KEJUJURAN

    SUM (case when spl.) SUB_KRITERIA = "KEPATUHAN" then spl. NILAI

    end) LOYALITAS_KEPATUHAN

    of sci_pk2m_line@sucodev spl, sci_pk2m_header@sucodev sph

    where spl.ID_PK2M_HEADER = sph.ID_PK2M_HEADER

    and sph. UNIT_KERJA =: P314_ID_UNIT_KERJA

    and sph. = PERIOD: P314_PERIODE

    and sph. PERSON_ID =: P314_NPP

    Group

    SPH. PERIOD,

    SPL. PERIODE_DETAIL

    UNION ALL

    Select

    LON

    KETERANGAN,

    UNIT_KERJA,

    PERIOD,

    PERSON_ID,

    AKTIFITAS_KEHADIRAN,

    AKTIFITAS_KONSISTENSI,

    KOMUNIKASI_KERJASAMA,

    KOMUNIKASI_KOORDINASI,

    LOYALITAS_INTEGRITAS,

    LOYALITAS_KEJUJURAN,

    LOYALITAS_KEPATUHAN

    Of

    SCI_TOTAL_PK2M_V

    where = PERIOD: P314_PERIODE

    and PERSON_ID =: P314_NPP;

    When I compile and run the program there show the error like this "ORA-01789: block has an incorrect number of columns in query results.

    I don't know what does mean,.

    could you help me with my problem?

    Thank you

    Best regards

    Jeff

    Hi Linda

    You made the UNION between a statement select 9 columns to return with a second return 12 columns. Please unify the number of columns selected at a time.

    I hope that solves your problem

    Concerning

    Mahmoud

  • OfficeJet 4620: No number of scan

    My office is upgraded to this printer. My boss has the same printer. Its numbers of its analyses, one in our office does not work. Scans of numbering is what makes us buy this model.  Can I change the settings to automatically number the scans?

    Yes,

    The HP Officejet 4620 software press on scan a document or photo.

    Select the required analysis shortcut and click Advanced settings.

    Open the Destination folder, select the target folder and clear the check box to display the dialog box save as, then click OK and Scan.

    Later analysis is saved in the folder configured with automatic numbering.

    Kind regards

    Shlomi

  • Apple Mail displays an incorrect number of unread messages

    Hello

    Apple Mail on my iPad is connected to my account Hotmail from Microsoft. "I have e-mail boxes a decade in my Hotmail account (in addition to the standard"Inbox) "and Hotmail will sort my emails in each box, rules-based, I created.

    Several months ago, Apple mail started to display correctly the number of emails unread in one of my mailboxes. Recently, he began showing the number of emails unread in a second box incorrectly. In one, Apple mail displays 4 emails unread, even if this one is almost always empty. In the other, who always has a certain E-mail read in it, Apple mail displays 6 emails no more read than exist. In other words, if there are 2 unread emails, Apple mail says I have 8.

    • I checked the mail boxes in my account Hotmail by going there in my browser to see if it is has more emails unread only download of Apple mail. There is not.
    • I downloaded the Microsoft Outlook application to check and it shows the number of emails unread for each box.

    Is there a way to get Apple mail to correctly display the number of unread emails?

    Thank you.

    Ray

    Hello there Ray_ES,

    Looks like it's just your Apple's Mail application that shows the incorrect number of e-mails on your iPad. I would like to start by leaving the Mail app and the settings app:

    Force an app to close the iOS

    1. press the Home button twice quickly. You will see small glimpses of your applications recently used.
    2. slide to the left to find the application you want to close.
    3. push upward on the overview of the application to close.

    When you have done that reboot the device and test again the question:

    iOS: switch off and on (restart) and reset

    If the problem persists then I would remove the account from the application settings, restart the iPad and try again:

    1. Delete the email account assigned from your device with these steps:
      1. Tap Settings > Mail, Contacts, calendars.
      2. Press the email account.
      3. Press to delete the account.
      4. Add your account again.

    From: get help with Mail on iPhone, iPad and iPod touch

    Thank you for using communities of Apple Support.

  • CVI2010-operator sizeof returns an incorrect size of a struct

    Hello

    in CVI2010 the sizeof operator returns an incorrect struct size if it contains 4 bytes and other spaces. I guess that the addresses in the struct are also not as c-programmer thinks. First a minimalist code example:

    typedef struct
    {
    oneByte tank;
    long fourByte;
    } TestStruct;

    main void)
    {
    int size;
    TestStruct tmpVar;
    size = sizeof (TestStruct);
    Here are the dimensions = 8 instead of 5

    }

    Over the past years and last cvi-versions I had never compiled with the compiler Borland, which returns the correct size. Because the Borland compiler is not included in CVI 2010, I am using the compiler to build-in the standard. In my opinion, the compiler looks to optimize the code somehow, my project cannot work with.

    Because I read the direct struct of binary files I'm looking for a to code based, solution.

    Is it possible to disable the relevant optimization?

    Thanks for your help and your response.

    Markus

    The compiler may have different alignments for the fields of the struct: a usual behavior is to them be aligned on a 4 byte boundary, that is each field starts on a multiple of 4 bytes from the beginning of the structure in memory. This seems to be the behavior of the compiler that you are using currently, who returns as the size of the structure 8 after aligning the fields.

    Alignment of the structure can be modified with a #pragma appropriate preprocessor directive: adding #pragma pack (1); in your code tells the compiler to pack the structure without filler fields; After that this statement sizeof returns the size 5-bytes are waiting for you.

  • ORA-01422: exact fetch returns more than number of lines

    Hello world

    I want to create a procedure only allows me to perform selection et Update in my database, I have already create the procedure and compiled without problems but when I want to run this procedure, I have this error

    ORA-01422: exact fetch returns more than number of lines

    This syntax of my procedure

    create or replace procedure app is

    i nombre := 100 ;

    o_username employees.first_name% TYPE ;

    o_lastn employees. Last_name %TYPE

    o_sal. employees % of SALARY TYPE ;

    Start

    loop

    / * display * /.

    Select first_name, LAST_NAME, SALARY

    in o_username, o_lastn, o_sal

    of admin.employees where employee_id = i;

    DBMS_OUTPUT. Put_line (' name: ' | o_username);

    DBMS_OUTPUT. Put_line (' first name: ' | o_lastn);

    DBMS_OUTPUT. Put_line (' salary: ' | o_sal)

    / * put a days * /.

    Update employees

    put salary = salary + salary *0.25 where employee_id = i;

    commit;

    / * dbms_put.put_line (' new salary is: ' | ') sell2_tab (i)); * /

    i := i + 1 ;

    / * list the data * /

    / * dbms_put.put_line (' new salary is: ' ") ;*/

    output when i = 200;

    end loop;

    end app;

    thnx

    create or replace procedure APP is

    Constant START_ID EMPLOYEES. EMPLOYEE_ID % TYPE: = 100;

    Constant END_ID EMPLOYEES. EMPLOYEE_ID % TYPE: = 200;

    O_USERNAME EMPLOYEES. Type % name;

    O_LASTN EMPLOYEES. Last_name type %;

    O_SAL EMPLOYEES. Kind of % of SALARY;

    Start

    for rec (select FIRST_NAME, LAST_NAME, salary

    the admin. EMPLOYEES

    where EMPLOYEE_ID between START_ID and END_ID)

    loop

    DBMS_OUTPUT. Put_line (' name: ' | rec. NAME);

    DBMS_OUTPUT. Put_line ("first name:" | ") Rec. LAST_NAME);

    DBMS_OUTPUT. Put_line (' salary: ' | rec. SALARY) / * setting days * /.

    end loop;

    Update EMPLOYEES

    Set SALARY = SALARY + SALARY * 0.25

    where EMPLOYEE_ID between START_ID and END_ID;

    commit;

    end app;

  • Is it possible to analyze infrastructure were returned by the device of scanning the hard drive size/capacity

    Is it possible to analyze infrastructure were returned by the device of scanning the hard drive size/capacity

    Well, Foglight can certainly, as indicated above, Robert fired in a mode without agent disc information.

  • PDEElementGetBBox returns an incorrect value

    Hello

    I have developed a plugin that remove the object such as text, image, and path with respect to the coordinates of user input. In some cases, the value obtained by PDEElementGetBBox return the false value.

    Code I used

    If (PDEObjectGetType ((PDEObject) pdeElement) == kPDEPath)

    {

    PDEElementGetBBox (pdeElement, & bbox);

    float PathTop = ASFixedToFloat (bbox.top);

    float PathBottom = ASFixedToFloat (bbox.bottom);

    float PathLeft = ASFixedToFloat (bbox.left);

    float PathRight = ASFixedToFloat (bbox.right);

    If (the Condition is true)

    {

    PDEContentRemoveElem (pdeContent, j);

    }

    }


    Bbox return an incorrect value


    Is all that I'm missing

    Hmm. It seems that the method returns the BBox of the shape of XObject. This is the bounding box used to design the form elements, not the bounding box when she turned on the page scaling and offset. The documentation says that the BBox is returned in the 'user space '. I wonder, if you need to use PDElementGetMatrix and apply it to the BBox returned in this case - maybe anyway and you had the chance before - have you tried PDEImages?

  • ORA-01422: exact fetch returns more than number of rows - FIX?

    Dear experts of PL/SQL,

    I encounter this problem when running under procedure, how this can be exceeded? Procedure was running well for the last few weeks and we have this problem all of a sudden:

    ORA-01422: exact fetch returns more than number of lines

    CREATE OR REPLACE PROCEDURE DBA_MAINT. () SQL_EXEC_DRILLDOWN

    beginsnapid in numbers

    endsnapid in numbers

    )

    AS

    begin_date varchar2 (30);

    End_date varchar2 (30);

    statName VARCHAR2 (64);

    err_msg VARCHAR2 (100);

    The CNT number;

    cursor c1

    is

    Select stat_name,

    Sum in the NTC

    de)

    Select instance_number,

    stat_name,

    ((VALUE) max - min (VALUE)) COUNTY

    of dba_hist_sysstat

    where stat_name in ("run the County", 'parse count (total)', "parse count (hard)")

    and snap_id between beginsnapid

    and endsnapid

    Instance_number group, stat_name)

    Stat_name group

    Union of all the

    Select stat_name,

    Sum in the NTC

    de)

    Select instance_number,

    stat_name,

    Round (((value) - (VALUE) min Max) / 1000000) COUNTY

    of DBA_HIST_SYS_TIME_MODEL

    where stat_name in ("DB CPU", "background time cpu", 'sql execute elapsed time', 'analysis elapsed time', ' parse hard time elapsed ")

    and snap_id between beginsnapid

    and endsnapid

    Instance_number group, stat_name)

    Stat_name Union group all the

    Select stat_name,

    MySQL as cnt

    de)

    Select a.stat_name stat_name,

    (b.value - a.value) VALUE

    dba_hist_sysstat a, dba_hist_sysstat b

    where a.dbid = b.dbid

    and a.instance_number = b.instance_number

    and a.stat_id = b.stat_id

    and a.snap_id = beginsnapid

    and b.snap_id = endsnapid

    and a.stat_name in ('physical reads',

    "physical Scriptures."

    "physical read IO total number of applications."

    "physical write IO requests total."

    "Physics read total multi block requests."

    "total multi block request writing for the physical box,.

    ("reading session logic")

    and a.instance_number = b.instance_number)

    Stat_name group;

    Start

    Start

    Select distinct TO_CHAR (END_INTERVAL_TIME, "MM/DD/YYYY HH24 '")

    in begin_date

    of dba_hist_snapshot

    where snap_id = beginsnapid;

    Select distinct TO_CHAR (END_INTERVAL_TIME, "MM/DD/YYYY HH24 '")

    in end_date

    of dba_hist_snapshot

    where snap_id = endsnapid;

    -DBMS_OUTPUT. Put_line (begin_date);

    -DBMS_OUTPUT. Put_line (end_date);

    exception

    When no_data_found

    then

    null;

    end;

    C1_rec IN C1

    LOOP

    Start

    Insert

    in DBA_MAINT. Values (DB_SQL_EXEC_DETAILS)

    beginsnapid,

    endsnapid,

    begin_date,

    End_date,

    c1_rec.stat_name,

    c1_rec. CNT

    );

    -DBMS_OUTPUT. Put_line (c1_rec.stat_name |) »      '|| c1_rec. CNT);

    exception

    When no_data_found

    then

    null;

    end;

    end loop;

    commit;

    end;

    /

    Reasons to explain above, but I think it would be more appropriate select latest END_INTERVAL_TIME as follows

    Select TO_CHAR ((max (END_INTERVAL_TIME)), "MM/DD/YYYY HH24")

    in begin_date

    of dba_hist_snapshot

    where snap_id = beginsnapid;

    Select TO_CHAR ((max (END_INTERVAL_TIME)), "MM/DD/YYYY HH24")

    in end_date

    of dba_hist_snapshot

    where snap_id = endsnapid;

  • exact fetch returns more than number of lines

    Hello

    I have here is the procedure to kill session from blocking. It works fine if a row is returned to select it.
    How can I change to operate multiple lines?

    CREATE OR REPLACE PROCEDURE kill_blocking IS
    l_sid NUMBER (10);
    l_serial NUMBER (10);
    l_wait NUMBER (10);
    l_username VARCHAR2 (20);
    sqlstmt VARCHAR2 (1000);
    BEGIN
    SELECT s1. SID, s1.serial #, s2.seconds_in_wait, s2.username
    IN l_sid, l_serial, l_wait, l_username
    V $ lock l1.
    v$ session s1,.
    v$ lock l2,.
    v$ session s2,.
    v$ sql sqlt1.
    v$ sql sqlt2
    WHERE s1. SID = l1. SID
    AND s2. SID = l2. SID
    AND sqlt1.sql_id = s2.sql_id
    AND sqlt2.sql_id = s1.prev_sql_id
    AND l1. BLOCK = 1
    AND l2.request > 0
    AND l1.id1 = l2.id1
    AND l2.id2 = l2.id2;
    IF l_username = "APP" AND l_wait > 100
    THEN
    sqlstmt: =.
    "ALTER SYSTEM KILL SESSION"'.
    || To_char (l_sid)
    || ','
    || To_char (l_serial)
    || '''';
    Dbms_output.put_line (sqlstmt);
    EXECUTE IMMEDIATE sqlstmt;
    END IF;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    Dbms_output.put_line ('no data found');
    END;
    /


    SQL > exec kill_blocking;
    BEGIN kill_blocking; END;

    *
    ERROR on line 1:
    ORA-01422: exact fetch returns more than number of lines
    ORA-06512: at TK. "KILL_BLOCKING", line 8
    ORA-06512: at line 1

    Hello

    You can use the procedure below

    create or replace

    PROCEDURE kill_blocking_mig

    IS

    l_sid NUMBER (10);

    l_serial NUMBER (10);

    l_wait NUMBER (10);

    l_username VARCHAR2 (20);

    sqlstmt VARCHAR2 (1000);

    CURSOR status_cus IS

    SELECT s1. SID, S1. Serial #, s2.seconds_in_wait, s2.username

    V $ lock l1.

    v$ session s1,.

    v$ lock l2,.

    v$ session s2,.

    v$ sql sqlt1.

    v$ sql sqlt2

    WHERE s1. SID = l1. SID

    AND s2. SID = l2. SID

    AND sqlt1.sql_id = s2.sql_id

    AND sqlt2.sql_id = s1.prev_sql_id

    AND l1. BLOCK = 1

    AND l2.request > 0

    AND l1.id1 = l2.id1

    AND l2.id2 = l2.id2;

    BEGIN

    OPEN status_cus.

    loop

    extract the status_cus IN l_sid, l_serial, l_wait, l_username;

    When the output status_cus % notfound;

    IF l_username = "APP" AND l_wait > 100 THEN

    sqlstmt: = ' EDIT the SYSTEM KILL SESSION "' | To_char (l_sid) | ',' || To_char (l_serial) | '''';

    Dbms_output.put_line (sqlstmt);

    EXECUTE IMMEDIATE sqlstmt;

    END IF;

    end loop;

    EXCEPTION

    WHEN NO_DATA_FOUND THEN

    Dbms_output.put_line ('no data found');

    END;

  • Error - ORA-01422: exact fetch returns more than number of lines

    Hello

    I get the error when running script below. Please help me.

    /****************** ERROR ******************/

    Error report:
    ORA-01422: exact fetch returns more than number of lines
    ORA-06512: at line 71
    01422 00000 - "exact fetch returns more than number of lines."
    * Cause: Exact extraction specified number is less than the returned rows.
    * Action: Rewrite the query or change the number of rows requested



    /****************** SCRIPT ******************/

    DECLARE

    l_xml XMLTYPE: = XMLTYPE ("< LoggingInformation >
    < commandeEmplacement >
    < name > ServiceCall1 < / name >
    < StartTime > 2010-01-18T 11: 11:41.570664 - 00:00 < / StartTime >
    < EndTime > 2010-01-18T 11: 11:43.8987741 - 00:00 < / EndTime >
    < ElapsedTime > 00:00:02.3281101 < / ElapsedTime >
    < status > completed < / status >
    < ExceptionMessage > error here... < / ExceptionMessage >
    < ExceptionStackTrace > Stack Trace here... < / ExceptionStackTrace >
    < ServiceLoggingEntries >
    < item >
    < foo > 1 < / foo >
    < / ServiceInformation >
    < item >
    < foo > 2 < / foo >
    < / ServiceInformation >
    < / ServiceLoggingEntries >
    < InformationLoggingEntries >
    < ProcessInformation >
    < bar > 1 < / >
    < / ProcessInformation >
    < ProcessInformation >
    < bar > 2 < / >
    < / ProcessInformation >
    < / InformationLoggingEntries >

    < / commandeEmplacement >
    < commandeEmplacement >
    < name > ServiceCall2 < / name >
    < StartTime > 2010-01-18T 11: 11:41.570664 - 00:00 < / StartTime >
    < EndTime > 2010-01-18T 11: 11:43.8987741 - 00:00 < / EndTime >
    < ElapsedTime > 00:00:02.3281101 < / ElapsedTime >
    < status > completed < / status >
    < ExceptionMessage > error here... < / ExceptionMessage >
    < ExceptionStackTrace > Stack Trace here... < / ExceptionStackTrace >
    < ServiceLoggingEntries >
    < item >
    < foo > 3 < / foo >
    < / ServiceInformation >
    < item >
    < foo > 4 < / foo >
    < / ServiceInformation >
    < / ServiceLoggingEntries >
    < InformationLoggingEntries >
    < ProcessInformation >
    < bar > 3 < / >
    < / ProcessInformation >
    < ProcessInformation >
    < bar > < / > 4
    < / ProcessInformation >
    < / InformationLoggingEntries >
    < / commandeEmplacement >

    < commandeEmplacement >
    < name > ServiceCall3 < / name >
    < StartTime > 2010-01-18T 11: 11:41.570664 - 00:00 < / StartTime >
    < EndTime > 2010-01-18T 11: 11:43.8987741 - 00:00 < / EndTime >
    < ElapsedTime > 00:00:02.3281101 < / ElapsedTime >
    status of <>failed < / status >
    < ExceptionMessage > error here... < / ExceptionMessage >
    < ExceptionStackTrace > Stack Trace here... < / ExceptionStackTrace >
    < / commandeEmplacement >
    (< / LoggingInformation > ');

    v_txt VARCHAR2 (2000);

    BEGIN

    SELECT XMLTYPE. Extract (value (TT),'/ CommandInformation/Name/Text () '). GETSTRINGVAL()
    IN v_txt
    TABLE (XMLSEQUENCE (l_xml. Extract('/LoggingInformation/CommandInformation'))) tt;

    DBMS_OUTPUT. Put_line (v_txt);

    END;

    Select...

    means only 1 row can be returned.

    Your select returns more than one line.
    Change v_txt in a collection, define a cursor and the extraction of it or change the statement, i.e. it returns a single line.

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • "Getting the error 'exact fetch returns more than number of lines.

    Hi try to run a query of Iam
    but when I run what it it gives an error
    Error report:
    ORA-01422: exact fetch returns more than number of lines
    ORA-06512: at line 9 level
    01422 00000 - "exact fetch returns more than number of lines."
    * Cause: Exact extraction specified number is less than the returned rows.
    * Action: Rewrite the query or change the number of rows requested
    here's my querey

    SET SERVEROUTPUT ON
    DECLARE
    Emp_table_type TYPE IS an ARRAY OF
    hr_api_transactions % ROWTYPE INDEX BY PLS_INTEGER;
    my_emp_table emp_table_type;

    BEGIN
    I'm in 1.53
    LOOP
    SELECT * INTO my_emp_table (i) FROM hr_api_transactions
    WHERE transaction_ref_table = 'PER_ALL_VACANCIES ';
    END LOOP;
    BECAUSE me IN my_emp_table. FIRST... my_emp_table. LAST
    LOOP
    DBMS_OUTPUT. Put_line (my_emp_table (i) .transaction_document);
    END LOOP;
    END;

    Hello

    'Re missing you the bulk of the Collections. Ask that you well want to have a glance on manual of oracle collections.
    Replace your code...

    DECLARE
    TYPE emp_table_type IS TABLE OF
    hr_api_transactions%ROWTYPE INDEX BY PLS_INTEGER;
    my_emp_table emp_table_type;
    BEGIN
    SELECT *
    BULK COLLCT INTO my_emp_table
    FROM hr_api_transactions
    WHERE transaction_ref_table = 'PER_ALL_VACANCIES';
    FOR i IN my_emp_table.FIRST..my_emp_table.LAST
    LOOP
    DBMS_OUTPUT.PUT_LINE(my_emp_table(i).transaction_document);
    END LOOP;
    END;
    

    Before you run the above script, don't forget to run the

    set serveroutput on
    

    I hope this helps.

    PS-> mark as Complete/useful, if the apporoach above meets the expected result

    Kind regards
    Claudy

  • ERRO ORA-01422: exact fetch returns more than number of lines

    SET SERVEROUTPUT ON
    create or replace procedure copy
    AS

    cursor c2 IS
    Select t.country_code
    transactions t;

    v_lc_details_current_hist c2% rowtype;
    v_country_code transactions.country_code% TYPE;

    Start


    Open c2;
    loop

    extract the c2 in v_lc_details_current_hist;


    OUTPUT WHEN c2% NOTFOUND;



    Select the country_code in v_country_code of transactions;

    DBMS_OUTPUT. Put_line (v_country_code);

    end loop;

    Close c2;

    end;
    /



    I'm gettintha error ORA-01422: exact fetch returns more than number of lines

    Please help me

    [email protected] wrote:
    Select the country_code in v_country_code of transactions;
    -It's to return several rows, and the SELECT INTO statement expects that one line.

    A SELECT INTO statement can be used if you want a query to return only one row. Otherwise use bulk collect and a variable of class to contain the result lines multiples.

Maybe you are looking for

  • All my addons disappeared after that Firefox has forced me to "Refresh".

    When I got to the top of Firefox, he decided for some reason any that he needed to refresh or reset. He said that it was important to all my addons, passwords, the history etc. But for some reason, all my addons are missing. Is that what I can do abo

  • Satellite Pro 4340 - Question about CPU

    Hi, my problem its:-This notebook have usually 600-650 Mhz CPU, but in the information Windows XP Pro system, the result is und 327 Mhz 64 MB RAM Und with AIDA 32 program chek the result is 250 MHz (5 x 50). I don't understand any more.The product st

  • 564 XL ink: color Photo performance

    HP cartridge 564XL messages should produce hundreds of standard pages; However, I can't find any information How many 'best quality' photos should be. The last cartridge of mine only seemed to have produced about 2-3 dozen photos 8 x 10 before "yello

  • Constant unhandled exceptions of msvcrt.dll on a 64-bit Win 7 Ultimate

    Yesterday morning I was see dozens of these errors pop up on my Win 7 64 bit box very new. They block any program I am trying to run (Google Chrome, Google Desktop, anything with a toolbar Google and - frustrating - the features to install or remove

  • Printer with Windows 7 driver problems

    I have an Epson CX5500 printer. He has worked on a desktop computer, but does not work on my laptop that is running Windows 7. I have the original disc, but have also tried to download a printer driver on the Epson site. It downlaods very well, but W