Runtime error from null value

I have a request to create a Function Module that will be assigned to an Action Box, which when executed will copy long text for Quality Notification tasks.  I have the module created and working, but after my code is executed a runtime error happens due to a null value being passed to a method in the SAP program QM07_UPDATE_ACTIONBOX.  It looks to me like it is trying to perform some kind of cleanup tasks, and is trying to delete a node tree that does not exist.  My code did nothing with any kind of node tree, so I am not sure how to avoid this runtime error.  My code works as desired, except for this error that occurs after my code is processed.  Any assistance would be greatly appreciated!  Below are more details from the error received...
Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "QM07_UPDATE_ACTIONBOX" "(FUNCTION)", nor was it propagated by a RAISING clause.  Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing') access a component (variable: "TREE_ACTIONBOX").   An object reference must point to an object (an instance of a class) before it can be used to access components.  Either the reference was never set or it was set to 'NULL' using the CLEAR statement.
Information on where terminated
    Termination occurred in the ABAP program "SAPLQM07" - in "QM07_UPDATE_ACTIONBOX".  The main program was "SAPLIQS0 ".
    In the source code you have the termination point in line 39 of the (Include) program "LQM07U12".  The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in procedure "QM07_UPDATE_ACTIONBOX" "(FUNCTION)", but it was neither handled locally nor declared in the RAISING clause of its signature.
    The procedure is in program "SAPLQM07 "; its source code begins in line 1 of the (Include program "LQM07U12 ".
   28 * bei Tree werden Knoten und Items gelöscht bei Table Control wird
   29 * nur g_control_tab neu aufgebaut
   30   if g_tree = c_x.
   31 *---- Löschen der bestehenden Knoten und Items
   32
   33 * Tabelle der Knotenschlüssel erzeugen
   34     loop at g_node_tab into l_node.
   35       append l_node-node_key to l_dnodes_tab.
   36     endloop.
   37
   38 * Items
>>>>>     call method tree_actionbox->delete_all_items_of_nodes
   40       EXPORTING
   41         node_key_table          = l_dnodes_tab
   42       EXCEPTIONS
   43         failed                  = 1
   44         cntl_system_error       = 2
   45         error_in_node_key_table = 3
   46         dp_error                = 4.

Yes, I have searched the notes.  I used the keywords suggested in the dump...
If the error occures in a non-modified SAP program, you may be able to find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following keywords:
"OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
"SAPLQM07" or "LQM07U12"
"QM07_UPDATE_ACTIONBOX"

Similar Messages

  • Runtime error from Microsoft Visual C++ R6034

    When installing latest iTunes update in Windows 7 I get Runtime error from Microsoft Visual C++ R6034.
    Suggestions?

    FYI, if you are sufficiently computer literate to follow the instructions in the Youtube link, Edgar's suggested fix is much easier/quicker than a complete uninstall/reinstall.
    Nice job Edgar!

  • HT1349 iTunes will not start on my PC. I get a runtime error from the Visual C== runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    iTunes will not start on my PC. I get a runtime error from the Visual C++ runtime library when iTunesHelper.exe is started. The message states the application attempted to load the library incorrectly. How is the problem to be resolved?

    Click here and follow the instructions.
    (99035)

  • Issue with Results from Another Query (Error on Null value)

    Hi All,
    We have a WebI report using "Result from Another Query" option of BO XI R3.1. The report was running fine till recently the dimension object using result from another query had a null value. Report suddenly throwed error as the query filters are invalid.
    Is there a way to make this filter optional if no data/null value is there ? Because we need those null values in report as well.
    Thank you for your time.
    Thanks & Regards
    LN

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

  • Runtime Error from Microsoft Visual C++

    "the application has requested the runtime to terminate it in an unusual way. Please contact the application support team for more information."
    The Runtime Error happens when I am playing with InstanceManager addinstance buttons. The error usually happens when I make a change to the script and or the buttons position in the hierarchy and then hit Save or when I switch view from Design View to Preview PDF.
    The New Form message occurs seemingly randomly after I make a change to the document, Save it, close it, come back later and try to open it.
    Anyone know the solution? Thanks

    FYI, if you are sufficiently computer literate to follow the instructions in the Youtube link, Edgar's suggested fix is much easier/quicker than a complete uninstall/reinstall.
    Nice job Edgar!

  • Runtime error from LT03/LT06 after System upgrade

    Hi All,
    Currently we are upgrading our system from 4.7 to eec6.
    Not we are getting a runtime error while executing LT03/LT06 txns...
    the error is - Runtime error GETWA_NOT_ASSIGNED...
    Program - SAPLLPRI
    Include - LLPRIF00.
    Row 525.
    Module name - PROTO_TAB_READ.
    Please suggest me...if there is any SAP note .to be appied.
    Thnx
    RK

    Please search yourself for applicable SAP notes before asking others.
    Thread locked.
    Thomas

  • C program: Runtime error from GetStaticMethodId()

    I am new to Java and need help with .....
    I want to call a java method (native) from legacy C code.
    The java code has to return a Hashtable to the C code.
    My java works and I wrote another java file to call it. That
    also works fine and I can display my new Hashtable in
    the calling java code.
    However in my calling C code I get a runtime error when
    executing mid2 = GetStaticMethodId() // mid2 returns 0
    I believe the problem is in the method signature. If I
    make it an int method, it runs and returns an int
    but I want a hashtable to be returned.
    Using javah RMHash, produces RMHashData.h with nothing useful in it.
    My environment is: NT, jdk1.3, VIsual Studio cl.
    I hope someone can help me.
    Sample java code: This runs OK stand alone or called
    from another piece of java code.
    import java.util.Hashtable;
    import java.io.*;
    import java.util.*;
    public class RMHashData
    public RMHashData()
    public static Object getMasterData()
    Hashtable hash = new Hashtable(20);
    int rtnInt = 6;
    hash.put ("1050", new String("AAAAAA"));
    hash.put ("1051", new String("BBBBB"));
    hash.put ("1052", new String("CCCCCCCCC"));
    return hash;
    public static void main(String[] args)
    int RtnInt;
    Hashtable RtnHash;
    RtnHash = (Hashtable)RMHashData.getMasterData();
    Sample C code: (I had to retype this so cut out superfluous code)
    #include <stdio.h>
    #include <jni.h>
    main()
    JNIEnv *env;
    JavaVM *jvm;
    JavaVMOption options[4];
    JavaVMInitArgs vm_args;
    jint res;
    jclass cls;
    jmethodID mid, mid2;
    jstring jstr;
    jvalue result;
    jobjectArray args;
    char classPath[256];
    char libraryPath[256];
    vm_args.version = JNI_VERSION_1_2;
    /* set the options to pass to the VM */
    sprintf(classPath, "%s", "-Djava.class.path=c:\\data\\java_dev\\src");
    sprintf(libraryPath, "%s", "-Djava.library.path=c:\\jdk131\\lib");
    options[0].optionString = classPath;
    options[1].optionString = libraryPath;
    vm_args.options = options;
    vm_args.nOptions = 2;
    vm_args.ignoreUnrecognized = JNI_FALSE;
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm, (void **) &env, &vm_args);
    cls = (*env)->FindClass(env, "RMHashData");
    // *** Getting the main method works
    mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
    // *** Getting this method FAILS
    mid2 = (*env)->GetStaticMethodID(env, cls, "getMasterData", "()[Ljava/lang/Object;");
    if (mid2 == 0) // ***** mid2 is 0
    fprintf(stderr, "Can't find Prog.getMasterData\n");
    return 1;
    result.l = (*env)->CallStaticObjectMethod (env,cls, mid, args);
    // Then comes more fun to pull apart the hashtable...

    Bill, Thank you very much - that was it!!!!!
    Not sure about your comment...
    Comment: Why don't you just return a Hashtable?The line: return hash;
    in getMasterData() does exactly that.
    If you mean my declaration of the method:
    public static Object getMasterData()
    where Object should be Hashtable.
    I thought the type in the declaration had to match the
    JNI call - CallStaticObjectMethod(). I notice there is no
    CallStaticHashtableMethod(). Well that is my guess and I only started looking at Java a few days ago and have lots to learn. Thank you again.
    Ron...

  • Preventing runtime errors from clicking cancel

              String input;
              double number1;
              double number2;
              double number3;
              double number4;
                      input = JOptionPane.showInputDialog("Enter a number:  ");
                         number1 = Double.parseDouble(input);
                         input = JOptionPane.showInputDialog("Enter a number:  ");
                         number2 = Double.parseDouble(input);
                         input = JOptionPane.showInputDialog("Enter a number:  ");
                         number3 = Double.parseDouble(input);
                         input = JOptionPane.showInputDialog("Enter a number:  ");
                         number4 = Double.parseDouble(input);
                         JOptionPane.showMessageDialog(null, number1 + "\n" +
                                                                      number2 + "\n" +
                                                                      number3 + "\n" +
                                                                      number4);
         How do i set it so if the user hits "Cancel" on ANY of the input dialog messages, the console does not display a runtime error message?

              String input;
              double number1 = 0;
              double number2 = 0;
              double number3 = 0;
              double number4 = 0;
                      input = JOptionPane.showInputDialog("Enter a number:  ");
                      // Prevents a runtime error for clicking "Cancel"
                      if( input != null ) {
                         number1 = Double.parseDouble(input);
                         input = JOptionPane.showInputDialog("Enter a number:  ");
                         number2 = Double.parseDouble(input);
                         input = JOptionPane.showInputDialog("Enter a number:  ");
                         number3 = Double.parseDouble(input);
                         input = JOptionPane.showInputDialog("Enter a number:  ");
                         number4 = Double.parseDouble(input);
                         JOptionPane.showMessageDialog(null, number1 + "\n" +
                                                                      number2 + "\n" +
                                                                      number3 + "\n" +
                                                                      number4);
    }I tried that, but it only works for the first input dialog box.

  • Runtime error from OCI on OpenVMS

    Hello,
    I hope that this is the appropriate forum to post this question. If not please accept my apologies, and point me in the correct direction.
    Client Environment: OpenVMS V8.3-1H1, Itanium (IA-64), Oracle Release 10.2.0.4.0
    We have ported some C++ code from Oracle 8.17.3 to 10.2.0.4.0, and moved from the OpenVMS Alpha architecture to the Itanium architecture at the same time. Our code now compiles and links and runs, but while attempting to load data into the database, we get the following error traceback (no ORA- error is produced):
    %SYSTEM-F-FLTINV_F, floating invalid fault, PC=000000000F0D7551, PS=0000001B
    ----- End of Exception message
    0 FFFFFFFF804017C2 FFFFFFFF804017C2
    libclntsh lnxren lnxren 87529 0000000000000B11 000000000F0D7551
    libclntsh ttcx2y ttcf2n 428454 0000000000007292 000000000DD35592
    libclntsh ttcacs ttcacs 414366 0000000000001AB2 000000000DD276B2
    libclntsh ttcdrv ttcdrv 1450241 00000000000051F2 000000000DD71692
    libclntsh nioqwa nioqwa 159960 00000000000000B2 000000000D431EE2
    libclntsh upiprv upirtrc 418201 00000000000022D2 000000000D066B72
    libclntsh kpudfo kpuexes 403257 0000000000003F22 000000000CB07F22
    libclntsh upiexf upiex0 402095 0000000000001C62 000000000D081742
    libclntsh upiexf upiexn 401773 0000000000000092 000000000D07FB72
    libclntsh oci ociexn 280403 0000000000004FC2 000000000CFCE212
    TORRENT DATABASE exec #263 00000000000022F2 0000000000FA91B2
    TORRENT TABLE flushCursor #1332 0000000000028332 0000000000FEF9F2
    TORRENT TABLE flushInsertCursor #1348 0000000000023BF2 0000000000FEB2B2
    TORRENT FILE load #819 000000000000A532 0000000000FFA3F2
    TORRENT SCHEMA primeTables #395 0000000000007DC2 0000000000F9ABC2
    TORRENT MAIN main #103 0000000000001112 0000000000F90412
    Any help you can provide on resolving this error would be greatly appreciated. So far, the web has not provided any insight.
    Thanks;
    Glenn

    Yes, I have searched the notes.  I used the keywords suggested in the dump...
    If the error occures in a non-modified SAP program, you may be able to find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following keywords:
    "OBJECTS_OBJREF_NOT_ASSIGNED" "CX_SY_REF_IS_INITIAL"
    "SAPLQM07" or "LQM07U12"
    "QM07_UPDATE_ACTIONBOX"

  • Overcome the runtime error from Widening Cast

    Good Afternoon.
    I created a Super class and Sub Class.
    I created an object for super class reference variable.
    Then i pass like this.
    sub ?= super.
    Then call the Super Class emthods by using Sub class reference variable.
    Then press the Execute button.
    Then it goes to the DUMP.
    While i am using Narrowing Cast then it is working Properly.
    But for the Widening Cast only it is taking the problem. It goes to the dump.
    In BSP Widening cast working properly.
    For my program why it is going to dump.
    How i over come that DUMP.
    Is there any Exceptions or give me the reson why it is going it dump. how i will solve that problem.
    Give the data on above problem with screen shorts if possible.
    Thank you.
    B. Krishna.

    Hi Krishna,
    You can down-cast(widening cast) a class ref variable into its sub-class' class ref variable only if you have already done an up-cast(narrowing cast) of sub-class' class ref variable into the super class' class ref variable ....
    that is
    sub ?= super.
    is possible only if
    super = sub.
    was already done...
    If u r getting MOVE_CAST_ERROR error, this could be the reason...
    ~Jose

  • Error in when null values are passed to datefield

    Hi all,
    We are facing some issue with null values in date fields while calling a stored procedure using JDBC Adapter in one of the interfaces.
    When the value is null, XI gives errors in the communication channel.
    Case 1 , When the value is mapped to blank. : The adapter gives an error related to date format. Unsparseable date “”.
    Case 2 , When the value is not mapped at all : The adapter gives an error related to wrong number of arguments for the stored procedure.
    One option for fixing this issue is to hardcode the value to all zeros in a appropriate date format. However this is not acceptable in our case.
    Did anybody face this issue before. If yes what was the approach taken. Can you please let me know if anybody has any inputs on this.
    Thanks in advance,
    Younus

    you can clear the field key tags mandatory in the XML Schema interpreter parameter and make the Empty string value to Empty string from null value.
    For mapping : you can pass a value that is of the same format of date; but you can take your own value in the database since you are parsing the date format from one to other
    thanks
    nikhil

  • Getting Virtual Function Call runtime error R6025 from iexplore.exe

    Hi all,
    I am getting an virtual function call runtime error from iexplore.exe. The IE will then crash. I have checked the log in java console. It shows
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@4607b5
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@314585, refcount=3
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Quiting applet ...
    basic: Joined applet thread ...
    basic: Unregistered modality listener
    --> basic: Stopping applet ...
    --> basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@cbb7db
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@314585, refcount=2
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Quiting applet ...
    basic: Joined applet thread ...
    basic: Unregistered modality listener
    I have implemented the stop() in all the applet classes. However, I do not know where this stop() called?
    Also, from the java debugger, it always stops and shows:
    Exception occurred: java.lang.ThreadDeath (uncaught)"thread=TimerQueue", javax.s
    wing.TimerQueue.run(), line=-1 bci=63
    TimerQueue[1] cont
    >
    Exception occurred: java.lang.Exception (uncaught)"thread=main", sun.plugin.com.
    JavaClass.getIdForName(), line=-1 bci=72
    main[1] cont
    >
    Exception occurred: java.lang.Exception (uncaught)"thread=main", sun.plugin.com.
    JavaClass.getIdForName(), line=-1 bci=72
    main[1] cont
    >
    Exception occurred: java.lang.Exception (uncaught)"thread=main", sun.plugin.com.
    JavaClass.getIdForName(), line=-1 bci=72
    main[1] cont
    >

    What version of 5.0 are you running? There were some problems new in 5.0 seen mainly with the Java Plug-In and other apps which embed the JVM which were fixed in 5.0u6.

  • JDBC Receiver Adapter with Null Value

    HI,
    I have configured ID for JDBC Receiver. In my communication channel, I already check Integration of Empty String Values = Null Value. However, when I check the result from audit log, it still shows that SAP XI sends the null value to database. In my understanding, it should not send the field which has null value (It shouldn't be included in sql statement).
    I check this with other scenario. With the same check at Integration of Empty String Values = Null Value, it doesn't send null value to database. It happens only with my first scenario.
    Have anyone ever been through this before? Any suggestion please?
    Thanks,
    Pavin

    Hi,
    1. The occurrence is 0...1
    2. This is the first result with null value (Please see field Error)
    UPDATE EXPCRM_T_CustomerProfile SET RequestID=455, RecordNo=1, SAPCustomerCode=0001000344, Error=NULL, Status=2, UpdateDateTime=12/03/2008 13:45:03 WHERE (RequestID=455 AND RecordNo=1)
    Then, I change the option from Null Value to Empty string. This is the result.
    UPDATE EXPCRM_T_CustomerProfile SET RequestID=455, RecordNo=1, SAPCustomerCode=0001000344, Error=', Status=2, UpdateDateTime=12/03/2008 13:46:12 WHERE (RequestID=455 AND RecordNo=1)
    Field Error Change from NULL to '
    The expected result from me is that field Error should not exist at all. Please help.
    Thanks,
    Pavin

  • Pro*C compile/runtime errors w/ XMLTYPE

    On an Oracle 9iR2 NT machine (Pro*C/C++: Release 9.2.0.1.0)...
    1. The following SQL works without error from SQL*Plus:
         DECLARE
         xml_clob CLOB;
         file_name VARCHAR2(200);
         BEGIN
         file_name := 'rsand.xml';
         xml_clob := f_get_xml_document(file_name);
         insert into RCTXMLD values(file_name, XMLTYPE(xml_clob));
         END;
         select extractValue(RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]/@EntityId')
         from rctxmld
         where rctxmld_docname = 'rsand.xml'
         SELECT existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
         FROM RCTXMLD
         WHERE RCTXMLD_DOCNAME = 'rsand.xml'
         SELECT existsNode (RCTXMLD_XMLDOC,'/CommonRecord/ReportingSchl[1]/AttendingSchl[1]')
         FROM RCTXMLD
         WHERE RCTXMLD_DOCNAME = 'rsand.xml'
         SELECT XMLTYPE.existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
         FROM RCTXMLD
         WHERE RCTXMLD_DOCNAME = 'rsand.xml'
    2. The following SQL compiles and works without error from Pro*C:
    EXEC SQL DECLARE REPORTING_SCHOOL CURSOR FOR
    SELECT XMLTYPE.existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
    FROM RCTXMLD
    WHERE RCTXMLD_DOCNAME = :file_name_parm;
    Note: This only compiles when existsNode is prefixed by "XMLTYPE."
    3. The following SQL generates runtime errors from Pro*C:
    static void ins_xml_doc(void)
    #ifdef SCT_DEBUG
    printf("Executing ins_xml_doc\n");
    fflush(stdout);
    #endif
    EXEC SQL EXECUTE
    DECLARE
    xml_clob CLOB;
    BEGIN
    xml_clob := f_get_xml_document(:file_name_parm);
    INSERT into RCTXMLD VALUES (:file_name_parm, XMLTYPE(xml_clob));
    END;
    END-EXEC;
    POSTORA;
    Run Sequence Number....................................:
    Processing C:\TEMP\jobsub\finaid\rsand.xml...
    Connected.
    ORA-22288: file or LOB operation FILEOPEN failed
    The process cannot access the file because
    it is being used by another process
    ORA-06512: at "SYS.DBMS_LOB", line 672
    ORA-06512: at "FAISMGR.F_GETñ
    WRN-ORACERR: Error occurred in file "d:\banner\finaid\c\rerim04.pc" at line 1318
    WRN-ERRSTMT: Following statement was last statement parsed:
    declare xml_clob CLOB ; BEGIN xml_clob := f_get_xml_document ( :file_n
    Unable to initialize device default
    4. The following SQL generates compile errors from Pro*C:
    EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]/@EntityId')
    INTO :ReportingSchlEntityId
    FROM RCTXMLD
    WHERE RCTXMLD_DOCNAME = :file_name_parm;
    POSTORA;
    Processing rerim04, type pc...
    Pro*C/C++: Release 9.2.0.1.0 - Production on Thu Feb 6 08:59:46 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    System default option values taken from: D:\oracle\ora92\precomp\admin\pcscfg.cfg
    Error at line 1887, column 5 in file d:\banner\finaid\c\rerim04.pc
    EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
    ....1
    PLS-S-00302, component 'EXTRACTVALUE' must be declared
    Error at line 1887, column 5 in file d:\banner\finaid\c\rerim04.pc
    EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
    ....1
    PLS-S-00000, SQL Statement ignored
    Semantic error at line 1887, column 5, file d:\banner\finaid\c\rerim04.pc:
    EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
    ....1
    PCC-S-02346, PL/SQL found semantic errors
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
    Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
    rerim04.c
    fatal error C1083: Cannot open source file: 'C:\TEMP\rerim04.c': No such file or directory

    On an Oracle 9iR2 NT machine (Pro*C/C++: Release 9.2.0.1.0)...
    1. The following SQL works without error from SQL*Plus:
         DECLARE
         xml_clob CLOB;
         file_name VARCHAR2(200);
         BEGIN
         file_name := 'rsand.xml';
         xml_clob := f_get_xml_document(file_name);
         insert into RCTXMLD values(file_name, XMLTYPE(xml_clob));
         END;
         select extractValue(RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]/@EntityId')
         from rctxmld
         where rctxmld_docname = 'rsand.xml'
         SELECT existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
         FROM RCTXMLD
         WHERE RCTXMLD_DOCNAME = 'rsand.xml'
         SELECT existsNode (RCTXMLD_XMLDOC,'/CommonRecord/ReportingSchl[1]/AttendingSchl[1]')
         FROM RCTXMLD
         WHERE RCTXMLD_DOCNAME = 'rsand.xml'
         SELECT XMLTYPE.existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
         FROM RCTXMLD
         WHERE RCTXMLD_DOCNAME = 'rsand.xml'
    2. The following SQL compiles and works without error from Pro*C:
    EXEC SQL DECLARE REPORTING_SCHOOL CURSOR FOR
    SELECT XMLTYPE.existsNode (RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]')
    FROM RCTXMLD
    WHERE RCTXMLD_DOCNAME = :file_name_parm;
    Note: This only compiles when existsNode is prefixed by "XMLTYPE."
    3. The following SQL generates runtime errors from Pro*C:
    static void ins_xml_doc(void)
    #ifdef SCT_DEBUG
    printf("Executing ins_xml_doc\n");
    fflush(stdout);
    #endif
    EXEC SQL EXECUTE
    DECLARE
    xml_clob CLOB;
    BEGIN
    xml_clob := f_get_xml_document(:file_name_parm);
    INSERT into RCTXMLD VALUES (:file_name_parm, XMLTYPE(xml_clob));
    END;
    END-EXEC;
    POSTORA;
    Run Sequence Number....................................:
    Processing C:\TEMP\jobsub\finaid\rsand.xml...
    Connected.
    ORA-22288: file or LOB operation FILEOPEN failed
    The process cannot access the file because
    it is being used by another process
    ORA-06512: at "SYS.DBMS_LOB", line 672
    ORA-06512: at "FAISMGR.F_GETñ
    WRN-ORACERR: Error occurred in file "d:\banner\finaid\c\rerim04.pc" at line 1318
    WRN-ERRSTMT: Following statement was last statement parsed:
    declare xml_clob CLOB ; BEGIN xml_clob := f_get_xml_document ( :file_n
    Unable to initialize device default
    4. The following SQL generates compile errors from Pro*C:
    EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC, '/CommonRecord/ReportingSchl[1]/@EntityId')
    INTO :ReportingSchlEntityId
    FROM RCTXMLD
    WHERE RCTXMLD_DOCNAME = :file_name_parm;
    POSTORA;
    Processing rerim04, type pc...
    Pro*C/C++: Release 9.2.0.1.0 - Production on Thu Feb 6 08:59:46 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    System default option values taken from: D:\oracle\ora92\precomp\admin\pcscfg.cfg
    Error at line 1887, column 5 in file d:\banner\finaid\c\rerim04.pc
    EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
    ....1
    PLS-S-00302, component 'EXTRACTVALUE' must be declared
    Error at line 1887, column 5 in file d:\banner\finaid\c\rerim04.pc
    EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
    ....1
    PLS-S-00000, SQL Statement ignored
    Semantic error at line 1887, column 5, file d:\banner\finaid\c\rerim04.pc:
    EXEC SQL SELECT XMLTYPE.extractValue(RCTXMLD_XMLDOC,
    ....1
    PCC-S-02346, PL/SQL found semantic errors
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
    Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
    rerim04.c
    fatal error C1083: Cannot open source file: 'C:\TEMP\rerim04.c': No such file or directory

  • How To Handle Labview Runtime Error in Teststand

    Hi,
    I am working NI-CAN device to transfer CAN frames through the VI's using TestStand. Before transmission took place, we need to choose for the port, in case if the port is selected wrong, Labview take it as a runtime error and handles accordingly while teststand keeps on running i.e. if I have 7 steps that are calling that VI, the runtime error from the labview will appear that many times also. Is there any way to handle labview runtime errors directly through TestStand. I have a sequence that will take care of the Runtime Errors in my sequence file.
    Please help me soon.
    Thanks in Advance,
    Vivek

    Hi Vivek,
    If the LabVIEW VI is handling the error, then what you probably want to do is make the VI have an Error Out output terminal. You'd have to wire the appropriate error out wires to the terminal of course.
    This way, when you call the VI from TestStand, you can check the value of the Error Out and decide in TestStand how to handle it (skip the remaining steps, popup a message, etc).
    Jervin Justin
    NI TestStand Product Manager

Maybe you are looking for