Select in xsql not executed

Hello,
i have a file employee1.xsql:
<?xml version='1.0'?>
<xsql:query xmlns:xsql="urn:oracle-xsql"
connection="employee"
rowset-element="OK"
row-element="EMPLOYEE">
SELECT employee_id "ID"
,last_name "NAME"
,job_id "JOB"
,salary "SALARY"
,commission_pct "COMMISSION"
FROM EMPLOYEES
</xsql:query>
When I try to execute the file:
http://<hostname>:8888/obe/employee1.xsql
the select is not executed, instead the text of the file appears in the browser (oc4j is started).
What is wrong?
Anna

Hello Sandra,
Can you attach the sample controller.jpf and the .jsp file ? I will
reproduce and get back to you.
Thanks
Raj Alagumalai
Backline Workshop Support
"Sandra Lancheros" <[email protected]> wrote in message
news:3f574b56$[email protected]..
>
Hello.
I have a problem with a select: The first time I run the page flow itappears
empty. The data for the select is loaded from a Treemap, which isinitialized
in the begin action like this:
mapReporteSIRED.put(new String("Cubo.cls"), new String("CuboParticipación
Ciudadana") );
mapReporteSIRED.put(new String("DenunciasTramitadas.cls"), newString("Trámites
por Sectores Denunciados") );
mapReporteSIRED.put(new String("Entidades por TemaDenunciado.cls"), new
String("Entidades por Tema Denunciado") );
mapReporteSIRED.put(new String("EntidadesDenunciadas.cls"), newString("Entidades
Denunciadas") );
mapReporteSIRED.put(new String("SectoresYTemasDenunciados.cls"),new String("Denuncias
por Sector y Tema Denunciado") );
mapReporteSIRED.put(new String("InformeQuejaObservatorio.cls"),new String("Informe
Queja Observatorio") );
where mapReporteSIRED is the name of the treemap.
From the jsp where I have the select I load the data this way:
<netui:select dataSource="{actionForm.reporte}" tagId="_reporte"optionsDataSource="{pageFlow.mapReporteSIRED}"
</netui:select>where actionForm.reporte is an attribute of a FormBean.
Thanks in advance for your help.
Sandra Lancheros
EDS

Similar Messages

  • Selected file is not executable when loading core file

    Hello all
    im using sunstudio 12 on sun4u sparc using compiler version Sun C++ 5.9 SunOS_sparc Patch 124863-04 2008/04/16
    when i try to load core dump that is created from one of the executables with sunstudio 12 im getting this message
    "The Select file is not executable "
    and when i open the core file with command like dbx every thing is working fine

    here is all the output:
    Running "/opt/SUNWspro12/SUNWspro/bin/dmake  -f Makefile CONF=Debug" in /home/meiry/SunStudioProjects/Quote_1
    dmake: defaulting to parallel mode.
    See the man page dmake(1) for more information on setting up the .dmakerc file.
    sun8 --> 1 job
    /opt/SUNWspro12/SUNWspro/bin/dmake -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
    sun8 --> 1 job
    mkdir -p build/Debug/Sun9-Solaris-Sparc
    CC    -c -g +w -o build/Debug/Sun9-Solaris-Sparc/disk.o disk.cc
    sun8 --> 2 jobs
    mkdir -p build/Debug/Sun9-Solaris-Sparc
    CC    -c -g +w -o build/Debug/Sun9-Solaris-Sparc/cpu.o cpu.cc
    sun8 --> Job output
    mkdir -p build/Debug/Sun9-Solaris-Sparc
    CC    -c -g +w -o build/Debug/Sun9-Solaris-Sparc/cpu.o cpu.cc
    (/home/meiry/SunStudioProjects/Quote_1)cpu.cc:
    "/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 4: Error: istream is not a member of std.
    "/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 5: Error: cin is not a member of std.
    "/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 6: Error: ws is not a member of std.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 64: Error: Type name expected instead of "locale".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 65: Error: Type name expected instead of "locale".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 68: Error: streamsize is not defined.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 145: Error: Type name expected instead of "streamsize".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 146: Error: Type name expected instead of "streamsize".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 152: Error: Type name expected instead of "streamsize".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 167: Error: Type name expected instead of "locale".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 170: Error: Type name expected instead of "_RWSTDGuard".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 236: Error: Templates can only declare classes or functions.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 239: Error: Use ";" to terminate statements.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 239: Error: A declaration was expected instead of "return".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 239: Error: s is not defined.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 248: Error: basic_streambuf is not defined.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 248: Error: int_type is not defined.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 249: Error: Templates can only declare classes or functions.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: Use ";" to terminate statements.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: A declaration was expected instead of "if".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: ")" expected instead of ">".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: Unexpected ")" -- Check for matching parenthesis.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: Operand expected instead of ")".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 253: Error: The function "gbump" must have a prototype.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 254: Error: traits is not defined.
    Compilation aborted, too many Error messages.
    :(/home/meiry/SunStudioProjects/Quote_1)cpu.cc
    *** Error code 1
    dmake: Fatal error: Command failed for target `build/Debug/Sun9-Solaris-Sparc/cpu.o'
    Current working directory /home/meiry/SunStudioProjects/Quote_1
    Waiting for 1 job to finish
    sun8 --> Job output
    mkdir -p build/Debug/Sun9-Solaris-Sparc
    CC    -c -g +w -o build/Debug/Sun9-Solaris-Sparc/disk.o disk.cc
    (/home/meiry/SunStudioProjects/Quote_1)disk.cc:
    "/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 4: Error: istream is not a member of std.
    "/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 5: Error: cin is not a member of std.
    "/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 6: Error: ws is not a member of std.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 64: Error: Type name expected instead of "locale".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 65: Error: Type name expected instead of "locale".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 68: Error: streamsize is not defined.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 145: Error: Type name expected instead of "streamsize".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 146: Error: Type name expected instead of "streamsize".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 152: Error: Type name expected instead of "streamsize".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 167: Error: Type name expected instead of "locale".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 170: Error: Type name expected instead of "_RWSTDGuard".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: While specializing "std::basic_streambuf<std::charT, std::traits>".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 185:     Where: Specialized in non-template code.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 236: Error: Templates can only declare classes or functions.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 239: Error: Use ";" to terminate statements.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 239: Error: A declaration was expected instead of "return".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 239: Error: s is not defined.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 248: Error: basic_streambuf is not defined.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 248: Error: int_type is not defined.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 249: Error: Templates can only declare classes or functions.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: Use ";" to terminate statements.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: A declaration was expected instead of "if".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: ")" expected instead of ">".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: Unexpected ")" -- Check for matching parenthesis.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 251: Error: Operand expected instead of ")".
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 253: Error: The function "gbump" must have a prototype.
    "/opt/SUNWspro/prod/include/CC/Cstd/./streambuf", line 254: Error: traits is not defined.
    Compilation aborted, too many Error messages.
    :(/home/meiry/SunStudioProjects/Quote_1)disk.cc
    *** Error code 1
    dmake: Warning: Command failed for target `build/Debug/Sun9-Solaris-Sparc/disk.o'
    Current working directory /home/meiry/SunStudioProjects/Quote_1
    *** Error code 1
    dmake: Fatal error: Command failed for target `.build-impl'
    Build failed. Exit value 1.

  • Select query is not executing

    Hi Friends,
    my code is :
    itab-vbeln = bseg-vbeln.
    if not itab-vbeln is initial.
    select single vbeln inco1 inco2 into ( itab-vbeln itab-inco1 itab-inco2)
    from vbrk where vbeln = itab-vbeln.
    appned itab.
    note : here inco1 inco2 are incoterms
    my question is  can we direct move the values of bseg-vbeln into itab-vbeln. ???
    and i am generating the report with one varient , when i debug this report the
    there is no value in bseg-vbeln. it is showing null value.thats why my select query is not working..but i want execute this select query final.
    in output i want display the inco1 inco2 data.(incoterms)
    any help please.
    urgent.
    regards,
    vijay.

    Hi Vijay,
    First you need to check it out whether <b>itab-vbeln = bseg-vbeln</b> is in with in LOOP or not (<b>if ITAB is intenal table</b>)
    if itab is internal table you should write above statement with in loop, and also check it out in debug mode why bseg-vbeln value is not coming.
    and one more thing you need to make small correction in ur code use ',' .
    select single vbeln inco1 inco2 into ( <b>itab-vbeln, itab-inco1, itab-inco2</b>)
    from vbrk where vbeln = itab-vbeln
    Note: when ever use select single u should pass values into work area, dont use internal table .
    <b>if you have more doubts just send your entire code then i will rewrite it.</b>
    <b>Reward with points if useful.</b>
    Regards,
    Vijay Krishna

  • Select count * is not working

    Hi everybody.
    I've got a very strange problem, when i'm doing a select count* the result is giving me a value that is not the maximum (but when i check the database table the maximum value is another..)
    Could it be that the select command is not executing against the table, rather than the SAP cache??
    If this is the case, how can i avoid this?? I mean force the select command to execute against de DB table.
    thanks a lot.

    to get max value of a table u can use
    Select max( fld )............
    Bypassing the SAP buffer with the above additions is a means to increase the performance when accessing buffered database tables. To explicitly bypass the SAP buffer in the SELECT statement, always use the addition BYPASSING BUFFER instead of the implicit behavior of the additions stated above.

  • Do not execute business function

    Dear Experts
    kindly  i  face an issue that  while trying  to  select function (Do not execute)  for outstanding maintenance order with status (CRTD created )
    but when  i want to set NCMP & CLSD through this function from    order change (iw32) --> order -->function-> complete --> do not execute  i  found it garay  so what may be cause that behavior
    thanks in advance
    regards
    hussam Ghanem

    Hello
    Please check whether you have authorization for this .
    Take SU53 dump after executing IW32 and  order -->function-> complete --> do not execute .Which will give the info about missing authorization object.
    Br
    Rakesh

  • Tcode opens selection screen, but does not executes the program

    Hi!
    tcode opens selection screen of a custom program, but it seems that it does not executes the program itself.
    Sounds strange, but how to explain this if I can run a program manually with no problem and it displays result screen, but when I try to run the program with tcode - it opens selection screen but program quits before displaying result screen. I was putting a breakpoint at the begining of the program - it does not triggers debuger when running a tcode (it triggers debugger if to run program manually).... any ideas?
    Help will be appreciated,
    Mindaugas

    Are you using this???
          SET PARAMETER ID '80B' FIELD T_TABLE-OPBEL.
          CALL TRANSACTION 'FPE3' AND SKIP FIRST SCREEN.
    That way it should work....
    Greetings,
    Blag.

  • I have a slide with 4 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?

    I have a slide with 6 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?

    What setting do you have in Quiz > Settings > Required?  If it's not set to Optional, do that.

  • How to optimize the select query that is executed in a cursor for loop?

    Hi Friends,
    I have executed the code below and clocked the times for every line of the code using DBMS_PROFILER.
    CREATE OR REPLACE PROCEDURE TEST
    AS
       p_file_id              NUMBER                                   := 151;
       v_shipper_ind          ah_item.shipper_ind%TYPE;
       v_sales_reserve_ind    ah_item.special_sales_reserve_ind%TYPE;
       v_location_indicator   ah_item.exe_location_ind%TYPE;
       CURSOR activity_c
       IS
          SELECT *
            FROM ah_activity_internal
           WHERE status_id = 30
             AND file_id = p_file_id;
    BEGIN
       DBMS_PROFILER.start_profiler ('TEST');
       FOR rec IN activity_c
       LOOP
          SELECT DISTINCT shipper_ind, special_sales_reserve_ind, exe_location_ind
                     INTO v_shipper_ind, v_sales_reserve_ind, v_location_indicator
                     FROM ah_item --464000 rows in this table
                    WHERE item_id_edw IN (
                             SELECT item_id_edw
                               FROM ah_item_xref --700000 rows in this table
                              WHERE item_code_cust = rec.item_code_cust
                                AND facility_num IN (
                                       SELECT facility_code
                                         FROM ah_chain_div_facility --17 rows in this table
                                        WHERE chain_id = ah_internal_data_pkg.get_chain_id (p_file_id)
                                          AND div_id = (SELECT div_id
                                                          FROM ah_div --8 rows in this table
                                                         WHERE division = rec.division)));
       END LOOP;
       DBMS_PROFILER.stop_profiler;
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          NULL;
       WHEN TOO_MANY_ROWS
       THEN
          NULL;
    END TEST;The SELECT query inside the cursor FOR LOOP took 773 seconds.
    I have tried using BULK COLLECT instead of cursor for loop but it did not help.
    When I took out the select query separately and executed with a sample value then it gave the results in a flash of second.
    All the tables have primary key indexes.
    Any ideas what can be done to make this code perform better?
    Thanks,
    Raj.

    As suggested I'd try merging the queries into a single SQL. You could also rewrite your IN clauses as JOINs and see if that helps, e.g.
    SELECT DISTINCT ai.shipper_ind, ai.special_sales_reserve_ind, ai.exe_location_ind
               INTO v_shipper_ind, v_sales_reserve_ind, v_location_indicator
               FROM ah_item ai, ah_item_xref aix, ah_chain_div_facility acdf, ah_div ad
              WHERE ai.item_id_edw = aix.item_id_edw
                AND aix.item_code_cust = rec.item_code_cust
                AND aix.facility_num = acdf.facility_code
                AND acdf.chain_id = ah_internal_data_pkg.get_chain_id (p_file_id)
                AND acdf.div_id = ad.div_id
                AND ad.division = rec.division;ALSO: You are calling ah_internal_data_pkg.get_chain_id (p_file_id) every time. Why not do it outside the loop and just use a variable in the inner query? That will prevent context switching and improve speed.
    Edited by: Dave Hemming on Dec 3, 2008 9:34 AM

  • I recieve the following error when running an executable ("This VI is not Executable. The full development version of Labview is required to fix the errors"

    I recieve the following error when trying to build and run a labview executable. I am able to build the executable but when trying to run the executable, a pop up window comes up asking the user to select a dll. (please see screen shot attached). Once the DLL is selected, I get the error that This VI is not Executable. The full development version of Labview is required to fix the errors. (please see screen shot attached). I have also attached a snapshot of the project window.
    I have the professional development system
    I can run the main VI
    all the required DLL's are in the dependencies section of the project window.
    I am trying to find the root cause of this error but to no avail. can anyone give me a clue to what i am missing here. Any suggestions on where i should look to find the problem ?
    Thanks in advance to all labview users for your help
    Attachments:
    project window.PNG ‏36 KB

    other PNG
    Attachments:
    Broken Arrow on EXE.PNG ‏179 KB

  • PROCEDURE IS NOT EXECUTED WITH IN THE DATABASE TRIGGER

    The follwing databse trigger works fine but the procedure lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price); is not executed
    please help
    CREATE OR REPLACE TRIGGER SE.LV_SUMMARY_TRADE_TR
    AFTER INSERT
    ON SE.LV_DAILY_TRADES
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    vstock gn_stocks.stock_code%TYPE;
    CURSOR stock_cur
    IS
    SELECT stock_code
    FROM lv_trade_summary
    WHERE stock_code = :NEW.stock_code;
    BEGIN
    OPEN stock_cur;
    FETCH stock_cur
    INTO vstock;
    IF stock_cur%NOTFOUND
    THEN
    INSERT INTO lv_trade_summary(
         the_time,
         the_date,
         stock_code,
         stock_type_id,
         market_id,
         deals,
         price,
         qty,
         trade_value,
         le_value,
         buying,
         selling,
         rec_count,
         rec_serial,
         buying_count,
         close_price,
         coupon_value,
         currency,
         dividend_yield_perc,
         eps,
         free_stocks,
         hi_offer,
         hi_req,
         hi_req_qty,
         high_date,
         high_price,
         last_offer,
         last_request,
         last_trade_date,
         less_offer,
         less_offer_qty,
         less_request,
         liquid,
         low_date,
         low_price,
         market_cap,
         off_count,
         prev_close,
         prop_avg_ofr_10,
         prop_avg_rqst_10,
         prop_avg_ofr_5,
         prop_avg_rqst_5,
         prop_avg_offers,
         prop_avg_rqst,
         req_count,
         rqst_to_offers,
         sector_desc_a,
         sector_desc_e,
         selling_count,
         simple_avg_ofrs_10,
         simple_avg_rqst_10,
         simple_avg_ofr_5,
         simple_avg_rqst_5,
         simple_avg_offers,
         simple_avg_rqst,
         stock_count,
         stock_desc_a,
         stock_desc_e,
         sum_less_ofr_10,
         sum_less_rqst_10,
         sum_less_5_rqst,
         sum_offer,
         sum_volume_traded,
         trx_count,
         sum_request,
         last_request_qty,
         last_offer_qty )
    VALUES (
         :NEW.the_time,
         :NEW.the_date,
         :NEW.stock_code,
         :NEW.stock_type_id,
         :NEW.market_id,
         :NEW.deals,
         :NEW.price,
         :NEW.qty,
         :NEW.trade_value,
         :NEW.le_value,
         :NEW.buying,
         :NEW.selling,
         :NEW.rec_count,
         :NEW.rec_serial,
         lv_calc_pkg.f_buying_count (:NEW.stock_code),
         lv_calc_pkg.f_close_price (:NEW.stock_code),
         lv_calc_pkg.f_coupon_value (:NEW.stock_code),
         lv_calc_pkg.f_currency (:NEW.stock_code),
         lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
         lv_calc_pkg.f_eps (:NEW.stock_code),
         lv_calc_pkg.f_free_stocks (:NEW.stock_code),
         lv_calc_pkg.f_hi_offer (:NEW.stock_code),
         lv_calc_pkg.f_hi_request (:NEW.stock_code),
         lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
         lv_calc_pkg.F_HIGH_DATE (:new.stock_code),
         lv_calc_pkg.F_HIGH_price (:new.stock_code),
         lv_calc_pkg.f_last_offer (:NEW.stock_code),
         lv_calc_pkg.f_last_request (:NEW.stock_code),
         lv_calc_pkg. F_LAST_TRADE_DATE(:new.stock_code),
         lv_calc_pkg.f_less_offer (:NEW.stock_code),
         lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
         lv_calc_pkg.f_less_request (:NEW.stock_code),
         lv_calc_pkg.f_liquid (:NEW.stock_code),
         lv_calc_pkg.f_low_date(:new.stock_code),
         lv_calc_pkg.f_low_price(:new.stock_code),
         lv_calc_pkg.f_market_cap(:new.stock_code),
         lv_calc_pkg.f_off_count (:NEW.stock_code),
         lv_calc_pkg.f_prev_close (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
         lv_calc_pkg.f_req_count (:NEW.stock_code),
         lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
         lv_calc_pkg.f_sector_desc_a(:new.stock_code),
         lv_calc_pkg.f_sector_desc_e(:new.stock_code),
         lv_calc_pkg.f_selling_count (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
         lv_calc_pkg.f_stock_count (:NEW.stock_code),
         lv_calc_pkg.f_stock_desc_a(:new.stock_code),
         lv_calc_pkg.f_stock_desc_e(:new.stock_code),
         lv_calc_pkg.f_sum_less_10_offers,
         lv_calc_pkg.f_sum_less_10_rqst,
         lv_calc_pkg.f_sum_less_5_rqst,
         lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
         lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
         lv_calc_pkg.f_trx_count (:NEW.stock_code),
         lv_calc_pkg.f_sum_request (:NEW.stock_code),
         lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
         lv_calc_pkg.f_last_offer_qty (:NEW.stock_code) );
    ELSIF stock_cur%FOUND THEN
         UPDATE lv_trade_summary
         SET the_time = :NEW.the_time,
         deals = :NEW.deals,
         price = :NEW.price,
         qty = :NEW.qty,
         trade_value = :NEW.trade_value,
         le_value = :NEW.le_value,
         buying = :NEW.buying,
         selling = :NEW.selling,
         rec_count = :NEW.rec_count,
         rec_serial = :NEW.rec_serial,
         buying_count = lv_calc_pkg.f_buying_count (:NEW.stock_code),
         close_price = lv_calc_pkg.f_close_price (:NEW.stock_code),
         coupon_value = lv_calc_pkg.f_coupon_value (:NEW.stock_code),
         currency = lv_calc_pkg.f_currency (:NEW.stock_code),
         dividend_yield_perc =
         lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
         hi_offer = lv_calc_pkg.f_hi_offer (:NEW.stock_code),
         hi_req = lv_calc_pkg.f_hi_request (:NEW.stock_code),
         hi_req_qty = lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
         last_offer = lv_calc_pkg.f_last_offer (:NEW.stock_code),
         last_request = lv_calc_pkg.f_last_request (:NEW.stock_code),
         last_trade_date = lv_calc_pkg.f_last_trade_date (:NEW.stock_code),
         less_offer = lv_calc_pkg.f_less_offer (:NEW.stock_code),
         less_offer_qty = lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
         less_request = lv_calc_pkg.f_less_request (:NEW.stock_code),
         liquid = lv_calc_pkg.f_liquid (:NEW.stock_code),
         off_count = lv_calc_pkg.f_off_count (:NEW.stock_code),
         prev_close = lv_calc_pkg.f_prev_close (:NEW.stock_code),
         prop_avg_ofr_10 =
         lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
         prop_avg_rqst_10 =
         lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
         prop_avg_ofr_5 =
         lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
         prop_avg_rqst_5 =
         lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
         prop_avg_offers = lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
         prop_avg_rqst = lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
         req_count = lv_calc_pkg.f_req_count (:NEW.stock_code),
         rqst_to_offers = lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
         sector_desc_a = lv_calc_pkg.f_sector_desc_a (:NEW.stock_code),
         sector_desc_e = lv_calc_pkg.f_sector_desc_e (:NEW.stock_code),
         selling_count = lv_calc_pkg.f_selling_count (:NEW.stock_code),
         simple_avg_ofrs_10 =
         lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
         simple_avg_rqst_10 =
         lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
         simple_avg_ofr_5 =
         lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
         simple_avg_rqst_5 =
         lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
         simple_avg_offers =
         lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
         simple_avg_rqst = lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
         stock_count = lv_calc_pkg.f_stock_count (:NEW.stock_code),
         stock_desc_a = lv_calc_pkg.f_stock_desc_a (:NEW.stock_code),
         stock_desc_e = lv_calc_pkg.f_stock_desc_e (:NEW.stock_code),
         sum_less_ofr_10 = lv_calc_pkg.f_sum_less_10_offers,
         sum_less_rqst_10 = lv_calc_pkg.f_sum_less_10_rqst,
         sum_less_5_rqst = lv_calc_pkg.f_sum_less_5_rqst,
         sum_offer = lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
         sum_volume_traded =
         lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
         trx_count = lv_calc_pkg.f_trx_count (:NEW.stock_code),
         sum_request = lv_calc_pkg.f_sum_request (:NEW.stock_code),
         last_request_qty = lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
         last_offer_qty = lv_calc_pkg.f_last_offer_qty (:NEW.stock_code)
         WHERE stock_code = :NEW.stock_code;
    END IF;
    lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price);
    CLOSE stock_cur;
    END;

    Well, you can use merge statement or exception :
    CREATE OR REPLACE TRIGGER SE.LV_SUMMARY_TRADE_TR
    AFTER INSERT
    ON SE.LV_DAILY_TRADES
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
         BEGIN
              UPDATE lv_trade_summary
              SET the_time = :NEW.the_time,
              deals = :NEW.deals,
              price = :NEW.price,
              qty = :NEW.qty,
              trade_value = :NEW.trade_value,
              le_value = :NEW.le_value,
              buying = :NEW.buying,
              selling = :NEW.selling,
              rec_count = :NEW.rec_count,
              rec_serial = :NEW.rec_serial,
              buying_count = lv_calc_pkg.f_buying_count (:NEW.stock_code),
              close_price = lv_calc_pkg.f_close_price (:NEW.stock_code),
              coupon_value = lv_calc_pkg.f_coupon_value (:NEW.stock_code),
              currency = lv_calc_pkg.f_currency (:NEW.stock_code),
              dividend_yield_perc =
              lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
              hi_offer = lv_calc_pkg.f_hi_offer (:NEW.stock_code),
              hi_req = lv_calc_pkg.f_hi_request (:NEW.stock_code),
              hi_req_qty = lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
              last_offer = lv_calc_pkg.f_last_offer (:NEW.stock_code),
              last_request = lv_calc_pkg.f_last_request (:NEW.stock_code),
              last_trade_date = lv_calc_pkg.f_last_trade_date (:NEW.stock_code),
              less_offer = lv_calc_pkg.f_less_offer (:NEW.stock_code),
              less_offer_qty = lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
              less_request = lv_calc_pkg.f_less_request (:NEW.stock_code),
              liquid = lv_calc_pkg.f_liquid (:NEW.stock_code),
              off_count = lv_calc_pkg.f_off_count (:NEW.stock_code),
              prev_close = lv_calc_pkg.f_prev_close (:NEW.stock_code),
              prop_avg_ofr_10 =
              lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
              prop_avg_rqst_10 =
              lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
              prop_avg_ofr_5 =
              lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
              prop_avg_rqst_5 =
              lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
              prop_avg_offers = lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
              prop_avg_rqst = lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
              req_count = lv_calc_pkg.f_req_count (:NEW.stock_code),
              rqst_to_offers = lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
              sector_desc_a = lv_calc_pkg.f_sector_desc_a (:NEW.stock_code),
              sector_desc_e = lv_calc_pkg.f_sector_desc_e (:NEW.stock_code),
              selling_count = lv_calc_pkg.f_selling_count (:NEW.stock_code),
              simple_avg_ofrs_10 =
              lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
              simple_avg_rqst_10 =
              lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
              simple_avg_ofr_5 =
              lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
              simple_avg_rqst_5 =
              lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
              simple_avg_offers =
              lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
              simple_avg_rqst = lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
              stock_count = lv_calc_pkg.f_stock_count (:NEW.stock_code),
              stock_desc_a = lv_calc_pkg.f_stock_desc_a (:NEW.stock_code),
              stock_desc_e = lv_calc_pkg.f_stock_desc_e (:NEW.stock_code),
              sum_less_ofr_10 = lv_calc_pkg.f_sum_less_10_offers,
              sum_less_rqst_10 = lv_calc_pkg.f_sum_less_10_rqst,
              sum_less_5_rqst = lv_calc_pkg.f_sum_less_5_rqst,
              sum_offer = lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
              sum_volume_traded =
              lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
              trx_count = lv_calc_pkg.f_trx_count (:NEW.stock_code),
              sum_request = lv_calc_pkg.f_sum_request (:NEW.stock_code),
              last_request_qty = lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
              last_offer_qty = lv_calc_pkg.f_last_offer_qty (:NEW.stock_code)
              WHERE stock_code = :NEW.stock_code;
         EXCEPTION WHEN OTHERS THEN
              INSERT INTO lv_trade_summary(
              the_time,
              the_date,
              stock_code,
              stock_type_id,
              market_id,
              deals,
              price,
              qty,
              trade_value,
              le_value,
              buying,
              selling,
              rec_count,
              rec_serial,
              buying_count,
              close_price,
              coupon_value,
              currency,
              dividend_yield_perc,
              eps,
              free_stocks,
              hi_offer,
              hi_req,
              hi_req_qty,
              high_date,
              high_price,
              last_offer,
              last_request,
              last_trade_date,
              less_offer,
              less_offer_qty,
              less_request,
              liquid,
              low_date,
              low_price,
              market_cap,
              off_count,
              prev_close,
              prop_avg_ofr_10,
              prop_avg_rqst_10,
              prop_avg_ofr_5,
              prop_avg_rqst_5,
              prop_avg_offers,
              prop_avg_rqst,
              req_count,
              rqst_to_offers,
              sector_desc_a,
              sector_desc_e,
              selling_count,
              simple_avg_ofrs_10,
              simple_avg_rqst_10,
              simple_avg_ofr_5,
              simple_avg_rqst_5,
              simple_avg_offers,
              simple_avg_rqst,
              stock_count,
              stock_desc_a,
              stock_desc_e,
              sum_less_ofr_10,
              sum_less_rqst_10,
              sum_less_5_rqst,
              sum_offer,
              sum_volume_traded,
              trx_count,
              sum_request,
              last_request_qty,
              last_offer_qty )
              VALUES (
              :NEW.the_time,
              :NEW.the_date,
              :NEW.stock_code,
              :NEW.stock_type_id,
              :NEW.market_id,
              :NEW.deals,
              :NEW.price,
              :NEW.qty,
              :NEW.trade_value,
              :NEW.le_value,
              :NEW.buying,
              :NEW.selling,
              :NEW.rec_count,
              :NEW.rec_serial,
              lv_calc_pkg.f_buying_count (:NEW.stock_code),
              lv_calc_pkg.f_close_price (:NEW.stock_code),
              lv_calc_pkg.f_coupon_value (:NEW.stock_code),
              lv_calc_pkg.f_currency (:NEW.stock_code),
              lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
              lv_calc_pkg.f_eps (:NEW.stock_code),
              lv_calc_pkg.f_free_stocks (:NEW.stock_code),
              lv_calc_pkg.f_hi_offer (:NEW.stock_code),
              lv_calc_pkg.f_hi_request (:NEW.stock_code),
              lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
              lv_calc_pkg.F_HIGH_DATE (:new.stock_code),
              lv_calc_pkg.F_HIGH_price (:new.stock_code),
              lv_calc_pkg.f_last_offer (:NEW.stock_code),
              lv_calc_pkg.f_last_request (:NEW.stock_code),
              lv_calc_pkg. F_LAST_TRADE_DATE(:new.stock_code),
              lv_calc_pkg.f_less_offer (:NEW.stock_code),
              lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
              lv_calc_pkg.f_less_request (:NEW.stock_code),
              lv_calc_pkg.f_liquid (:NEW.stock_code),
              lv_calc_pkg.f_low_date(:new.stock_code),
              lv_calc_pkg.f_low_price(:new.stock_code),
              lv_calc_pkg.f_market_cap(:new.stock_code),
              lv_calc_pkg.f_off_count (:NEW.stock_code),
              lv_calc_pkg.f_prev_close (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
              lv_calc_pkg.f_req_count (:NEW.stock_code),
              lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
              lv_calc_pkg.f_sector_desc_a(:new.stock_code),
              lv_calc_pkg.f_sector_desc_e(:new.stock_code),
              lv_calc_pkg.f_selling_count (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
              lv_calc_pkg.f_stock_count (:NEW.stock_code),
              lv_calc_pkg.f_stock_desc_a(:new.stock_code),
              lv_calc_pkg.f_stock_desc_e(:new.stock_code),
              lv_calc_pkg.f_sum_less_10_offers,
              lv_calc_pkg.f_sum_less_10_rqst,
              lv_calc_pkg.f_sum_less_5_rqst,
              lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
              lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
              lv_calc_pkg.f_trx_count (:NEW.stock_code),
              lv_calc_pkg.f_sum_request (:NEW.stock_code),
              lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
              lv_calc_pkg.f_last_offer_qty (:NEW.stock_code) );
         END;
         lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price);
    END;
    /Nicolas.

  • Error message "VI is not executable"! Need help with Application Builder

    Hello,
    I have a problem with an application, built with the Application Builder. I have read some threads about the problem I have, but I still don't know a solution.
    When I run my front panel from LabVIEW, everything is good. So, now I created an application (and an installer) to be able to run it on other PCs as well. This application does not work. Everytime I start it on my PC, I get the error "VI is not executable. ...". I read in several forums solutions for this error, but I cannot fix it! I've changed my properties for the builder, but with no success. Perhaps, anybody has more ideas, what's the problem.
    To get a better idea from my project, here a little description of it:
    In the block diagram there is a while loop which is continuously runned. In this loop I only set some properties for the layout of the front panel, such as decorations which will be hidden/shown and changes of colours of indicators... For the rest, it waits for a click on the button "Start" in the front panel. After that, a DLL is called to communicate with a USB device. Some measurements are carried out and the DLL is closed. I hope, you can get a global idea from my block diagram...
    I use LabVIEW 8.5, the DLL is a third-party DLL, which we wrote on our own. But I think the DLL works properly, if it is called from a C# application it works and it works, too, by calling it from LabVIEW when I am in development mode.
    It's a project for university and I'm just a beginner in LabVIEW, so I don't have so much experiences in it, but I think i improved my knowlegde about LabVIEW very well in the last weeks!
    So, i hope to get an answer soon (the deadline for the project is not soooo far away )
    If you need more information, please let it know...
    I would be very grateful if there is someone with a working solution...
    Kind regards from the Netherlands,
    Sebastian

    Sebastian,
    Your architecture makes it very difficult to debug this and other problems.  Does the error message mention which VI is causing the problem?  It is very important to wire your error clusters everywhere.  In LabVIEW, when a node throws an error (Error.Status = T), future nodes do not execute.  At the end, place an error cluster indicator that you can see on your front panel.  When an error posts, you can right click the indicator (even in a compiled application) and select "Explain Error".
    This is a start, but you really need to push this into a queued-state machine before this gets any more complicated.  As it were, if anything in your loop hangs, your whole application hangs.  See attached for a queued-message handler (not advisable for actual applications, but you get the point.  You would want to have a type defined enum in lieu of strings, and shared data between states differently, etc.)
    -Jason
    Message Edited by LabBEAN on 01-20-2009 08:36 AM
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs
    Attachments:
    State Machine.vi ‏18 KB

  • Remote procedure call failed and did not execute response after changing contents

    Hey Hey!
    I have reviewed the other posts related to this issue but have not found a solution.
    I have done myself quite a mischief and hope someone here can help me out!
    I'm running an old ACER laptop with Windows 7. This PC belonged to an old colleague and therefore all of the folders and user names were still under his name, so I decided to try to change them all to my name. The main issue was the USER folder which had
    the locked symbol next to it but it wasn't locked at all. I googled how to delete this folder and one bright spark suggested I create a new folder with my name, copy all of the folders from the other 'locked' user's folder into my folder, and then delete the
    old user's folder. 
    That was fine. All seemed well. When I tried to delete the old folder the computer sat around thinking saying it was 'moving' but not doing anything. So, I cancelled the operation in the Task Manager. When I attempted to open any folder from the start menu
    or desktop or task bar I was presented with a bunch of numbers and letters and the message "REMOTE PROCEDURE CALL FAILED AND DID NOT EXECUTE."
    I quickly googled the message realising I'd made a major error and the first response was to type in services.msc or something to that effect, so I typed that into the Start Menu search bar and hit enter and nothing came up. So, I tried again, but now I
    couldn't type anything into the search bar, I could not even select any programs from the Start Menu. 
    So, I can't access the Start Menu, search bar, or any of the folders unless I open uTorrent, select open containing folder, and from there I can access what I need.
    I'm too afraid to reboot the PC. I can't locate my copy of Windows 7 anywhere. I'm freaking out!!
    Before I pour my lowly student wage into getting a professional to fix it, could someone please offer some suggestions??
    Greatly appreciated in advance. 
    Paris, Texas. 

    Hi,
    Based on your description, for this question is more related to NetQueryDisplayInformation() API, in order to get better help, we may ask for suggestions in the following MSDN forum.
    MSDN Forum
    https://social.msdn.microsoft.com/Forums/en-US/home
    Besides, we can try to use a script to get all domain users. Regarding this point, the following script can be referred to as reference.
    How to list all active directory users in a particular domain using PowerShell
    https://gallery.technet.microsoft.com/office/How-to-list-all-active-0d9be7ce
    In addition, for scripts, we can also ask for help in the following forum.
    The Official Scripting Guys Forum
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Best regards
    Frank Shen 

  • How to identify the selection parameters of already executed transactions

    Hi,
    I like to identify the selection parameter of already executed transaction.
    SM20 shows me which transaction was executed on which day and by whom.
    But it does not give me it is executed with which kind of selection parameters.
    For example, MD02/03 was executed many times, I like to know who execute it with parameter "2" for "create purchase req.".
    How can I know it?
    Regards,
    Kenichi Kaneda

    Hi,
    I don't think so that SAP stores this information anywhere.

  • Insert statement is not executing.....

    From below procedure the insert statement is not executing....
    update statement is working perfectly but insert......
    create or replace PROCEDURE PAYMENT(AMT NUMBER,UID NUMBER) IS
    AMT1 NUMBER;
    AMT NUMBER;
    PD VARCHAR2(100);
    C1 NUMBER;
    PER NUMBER;
    ACC1 VARCHAR2(15);
    CF NUMBER;
    CRF NUMBER;
    ACC2 VARCHAR2(15);
    begin
    SELECT  PAY_DESC INTO PD FROM SUB.PAYMENT_TY WHERE ORD=0;
    SELECT NVL(AMOUNT,0) INTO C1 FROM FOOD.MEMBER WHERE LTRIM(RTRIM(UPPER(NAME))) LIKE
    LTRIM(RTRIM(UPPER(PD)))
    AND USER_ID=UID;
    IF NVL(C1,0)>AMT THEN /*CASH*/
    C1:=C1-AMT;
    SELECT ACCOUNT_CODE INTO ACC1 FROM SUB.MASTER WHERE PAY_CODE=2;
    INSERT INTO ACC(AMOUNT_TD,ACC_CODE,EN_DATE,FO_TYPE,PART) VALUES(AMT,ACC1,SYSDATE,'JV','CASH
    PERCENTAGE FOR '||45457);
    STANDARD.COMMIT;STANDARD.COMMIT;STANDARD.COMMIT;
    UPDATE FOOD.MEMBER_DET SET AMOUNT=C1 WHERE USER_ID=UIDAND C_COD=2;
    STANDARD.COMMIT;STANDARD.COMMIT;STANDARD.COMMIT;
    END IF;
    end;the values receiving in insert statement is correct values.
    how to resolve this?
    Thanks skud...

    Check for too many rows or no data found exception.
    And also check the number of rows either inserted or updated.
    Something like this:
    create or replace PROCEDURE PAYMENT(AMT NUMBER,UID NUMBER) IS
      AMT1  NUMBER;
      AMT   NUMBER;
      PD    VARCHAR2(100);
      C1    NUMBER;
      PER   NUMBER;
      ACC1  VARCHAR2(15);
      CF    NUMBER;
      CRF   NUMBER;
      ACC2  VARCHAR2(15);
    begin
      begin
        SELECT  PAY_DESC
        INTO PD
        FROM SUB.PAYMENT_TY
        WHERE ORD=0;
        exception
          when too_many_rows then
            dbms_output.put_line('Too many rows in first SELECT');
          when no_data_found then
            dbms_output.put_line('No data found in first select');
      end;
      begin
        SELECT NVL(AMOUNT,0)
        INTO C1
        FROM FOOD.MEMBER
        WHERE LTRIM(RTRIM(UPPER(NAME))) LIKE LTRIM(RTRIM(UPPER(PD)))
        AND USER_ID=UID;
        exception
          when too_many_rows then
            dbms_output.put_line('Too many rows in second SELECT');
          when no_data_found then
            dbms_output.put_line('No data found in second select');
      end;
      IF NVL(C1,0)>AMT THEN /*CASH*/
        C1:=C1-AMT;
        begin
          SELECT ACCOUNT_CODE
          INTO ACC1
          FROM SUB.MASTER
          WHERE PAY_CODE=2;
          exception
            when too_many_rows then
              dbms_output.put_line('Too many rows in third SELECT');
            when no_data_found then
              dbms_output.put_line('No data found in third select');
        end;
        INSERT INTO ACC(AMOUNT_TD,ACC_CODE,EN_DATE,FO_TYPE,PART) VALUES(AMT,ACC1,SYSDATE,'JV','CASH PERCENTAGE FOR '||45457);
        dbms_output.put_line('Insert ' || sql%rowcount);
        COMMIT;
        UPDATE FOOD.MEMBER_DET SET AMOUNT=C1 WHERE USER_ID=UIDAND C_COD=2;
        dbms_output.put_line('Update ' || sql%rowcount);
        commit;
      END IF;
    end;
    /UNTESTED!!

  • ORA-24338: statement handle not executed

    Hi,
    My front end programming platform is .NET. Oracle DataBase is 10g.
    I have written this package:
    CREATE OR REPLACE package body USER_NAME.PACKAGE_TEST1 as
    procedure getname(id1 number,tb_cursor out md_cursor)
    as
    begin
    open tb_cursor for select name from testtable1 where id1=id;
    close tb_cursor;
    end getname;
    end package_test1;In the front end i am using DataReader to fetch data.
    But while Executing reader an error occurs that is "ORA-24338: statement handle not executed".
    But when i remove "close tb_cursor" programm runs successfully.
    What is the reason for that error ?

    user12222356 wrote:
    Tubby wrote:
    A ref cursor is nothing more than a pointer to a statement (query).
    So no, you do not want to make 1000 procedure calls. You want your ref cursor to be opened for a query that contains 1000 rows. The client calls your procedure ONE TIME and processes the entirety of the ref cursor (1000 rows), then closes the cursor that your procedure so graciously opened for them.But according to .NET(my front end platform) documentation DataReader fetches data from database row by row .each row at a time.That means when the procedure was first called REF CURSOR was opened and was open till all data are fetched.Means at the begining itself query was executed and all data was fetched and stored temporarily in the database, and then DataReader fetched those data row by row..i.e., after first call to procedure only fetching of data is done. NO opening,NO closing ,NO select query execution (that was referenced by REf CURSOR). And when all rows are fetched that open cursor is closed . Is my concept right here ?YOU opened the cursor (in your procedure).
    The select query execution IS the ref cursor being processed by your DataReader.
    The data is not temporarily stored in the database ... it persists there (unless someone deletes it) ... so that statement wasn't really correct. DataReader would just be reading the rows from the database (via the ref cursor)
    I would assume DataReader will close the cursor for you, but i really don't know ... you'd have to ask a .not person about that.

Maybe you are looking for