ORA-22160: element at index name does not exist

hi
i have a procedure which insert values from a VARRAY type in a table. My question is how can i verify the existence of nth element before inserting to avoid ORA-22160: element at index name does not exist
Here is my code:
CREATE OR REPLACE PACKAGE BODY CANDIDE.PE_CL IS
PROCEDURE p_proc(Id_clt IN P_CLIENT.id_client%TYPE,
nameClt IN P_CLIENT.nameclient%TYPE,
--VARRAY type
priceItem IN price_array,
--VARRAY type
nameItem IN item_array) IS
BEGIN
INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
FORALL i IN nameItem.FIRST .. nameItem.LAST
INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
END;
end PE_CL;
Product version: Oracle9i Enterprise Edition Release 9.2.0.1.0
Peter

I see the problem now. If there are more values in one varray or the other, how do you want to handle it? Below I have demonstrated, first the solution that I previous offered, that would only insert the rows where there are values from both varrays. In the second example below, I have inserted a null value in place of the missing value from the varray that has fewer values.
scott@ORA92> CREATE TABLE p_client
  2    (id_client  NUMBER,
  3       nameclient VARCHAR2(15))
  4  /
Table created.
scott@ORA92> CREATE TABLE p_items
  2    (id_client  NUMBER,
  3       name_item  VARCHAR2(10),
  4       price_item NUMBER)
  5  /
Table created.
scott@ORA92> CREATE OR REPLACE PACKAGE PE_CL
  2  IS
  3    TYPE item_array IS ARRAY(10) OF VARCHAR2(10);
  4    TYPE price_array IS ARRAY(10) OF number;
  5    PROCEDURE p_proc
  6        (Id_clt    IN P_CLIENT.id_client%TYPE,
  7         nameClt   IN P_CLIENT.nameclient%TYPE,
  8         priceItem IN price_array,
  9         nameItem  IN item_array);
10  end PE_CL;
11  /
Package created.
scott@ORA92> show errors
No errors.
-- first method:
scott@ORA92> CREATE OR REPLACE PACKAGE BODY PE_CL
  2  IS
  3    PROCEDURE p_proc
  4        (Id_clt    IN P_CLIENT.id_client%TYPE,
  5         nameClt   IN P_CLIENT.nameclient%TYPE,
  6         priceItem IN price_array,
  7         nameItem  IN item_array)
  8    IS
  9    BEGIN
10        INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
11  --    FORALL i IN nameItem.FIRST .. nameItem.LAST
12  --      INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
13        FOR i IN nameItem.FIRST .. nameItem.LAST LOOP
14          IF nameItem.EXISTS(i) AND priceItem.EXISTS(i) THEN
15            INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
16          END IF;
17        END LOOP;
18    END;
19  end PE_CL;
20  /
Package body created.
scott@ORA92> show errors
No errors.
scott@ORA92> declare
  2    priceitem pe_cl.price_array := pe_cl.price_array(2, 5);
  3    nameitem pe_cl.item_array := pe_cl.item_array('item a', 'item b', 'item c');
  4  begin
  5    pe_cl.p_proc
  6        (id_clt    => 900,
  7         nameclt   => 'MIKE',
  8         priceitem => priceitem,
  9         nameitem  => nameitem);
10    COMMIT;
11  end;
12  /
PL/SQL procedure successfully completed.
scott@ORA92> SELECT * FROM p_client
  2  /
ID_CLIENT NAMECLIENT
       900 MIKE
scott@ORA92> SELECT * FROM p_items
  2  /
ID_CLIENT NAME_ITEM  PRICE_ITEM
       900 item a              2
       900 item b              5
scott@ORA92> TRUNCATE TABLE p_client
  2  /
Table truncated.
scott@ORA92> TRUNCATE TABLE p_items
  2  /
Table truncated.
-- second method:
scott@ORA92> CREATE OR REPLACE PACKAGE BODY PE_CL
  2  IS
  3    PROCEDURE p_proc
  4        (Id_clt    IN P_CLIENT.id_client%TYPE,
  5         nameClt   IN P_CLIENT.nameclient%TYPE,
  6         priceItem IN price_array,
  7         nameItem  IN item_array)
  8    IS
  9    BEGIN
10        INSERT INTO P_CLIENT VALUES (Id_clt, nameClt);
11  --    FORALL i IN nameItem.FIRST .. nameItem.LAST
12  --      INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
13        FOR i IN nameItem.FIRST .. nameItem.LAST LOOP
14          IF nameItem.EXISTS(i) AND priceItem.EXISTS(i) THEN
15            INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), priceItem(i));
16          ELSIF nameItem.EXISTS(i) THEN
17            INSERT INTO P_ITEMS VALUES (Id_clt, nameItem(i), null);
18          ELSIF priceItem.EXISTS(i) THEN
19            INSERT INTO P_ITEMS VALUES (Id_clt, null, priceItem(i));
20          END IF;
21        END LOOP;
22    END;
23  end PE_CL;
24  /
Package body created.
scott@ORA92> show errors
No errors.
scott@ORA92> declare
  2    priceitem pe_cl.price_array := pe_cl.price_array(2, 5);
  3    nameitem pe_cl.item_array := pe_cl.item_array('item a', 'item b', 'item c');
  4  begin
  5    pe_cl.p_proc
  6        (id_clt    => 900,
  7         nameclt   => 'MIKE',
  8         priceitem => priceitem,
  9         nameitem  => nameitem);
10    COMMIT;
11  end;
12  /
PL/SQL procedure successfully completed.
scott@ORA92> SELECT * FROM p_client
  2  /
ID_CLIENT NAMECLIENT
       900 MIKE
scott@ORA92> SELECT * FROM p_items
  2  /
ID_CLIENT NAME_ITEM  PRICE_ITEM
       900 item a              2
       900 item b              5
       900 item c

Similar Messages

  • ORA-22160 - element at index does not exist

    A script that I am running to load data into a table using bulk
    binding (using nested table variables and FORALL) produces an
    error
    "ORA-22160: element at index [77] does not exist".
    Just prior to the forall...insert... I report the size of each
    nested table variable using COUNT and get a number that is much
    larger than 77. I run a query on the data to see if the data
    got loaded despite the error message and it did get loaded. Is
    this a bug in Oracle 8.1.6 or is something else going on?
    sample code:
    dbms_output.put_line(i_sec_cn.count);
    dbms_output.put_line(i_twn_cn.count);
    dbms_output.put_line(i_sec_no.count);
    forall i in i_sec_cn.first..i_sec_cn.last
    insert into sections (cn,township_cn,section_no)
    values(i_sec_cn(i),i_twn_cn(i),i_sec_no(i));
    output excerpt:
    2687
    2687
    2687
    ORA-22160: element at index [77] does not exist

    A script that I am running to load data into a table using bulk
    binding (using nested table variables and FORALL) produces an
    error
    "ORA-22160: element at index [77] does not exist".
    Just prior to the forall...insert... I report the size of each
    nested table variable using COUNT and get a number that is much
    larger than 77. I run a query on the data to see if the data
    got loaded despite the error message and it did get loaded. Is
    this a bug in Oracle 8.1.6 or is something else going on?
    sample code:
    dbms_output.put_line(i_sec_cn.count);
    dbms_output.put_line(i_twn_cn.count);
    dbms_output.put_line(i_sec_no.count);
    forall i in i_sec_cn.first..i_sec_cn.last
    insert into sections (cn,township_cn,section_no)
    values(i_sec_cn(i),i_twn_cn(i),i_sec_no(i));
    output excerpt:
    2687
    2687
    2687
    ORA-22160: element at index [77] does not exist

  • ERROR: ORA-01041: internal error. hostdef extension does not exist

    Hi, I got the following error message when I tried to insert a row in table TBL_ORDER.
    ERROR:
    ORA-01041: internal error. hostdef extension does not exist
    INSERT into TBL_ORDER
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    We have Oracle version 8.1.5.o.2 and Linux version 6.1.
    Following are the tables, triggers, loadjava definition and source programs:
    TBL_ORDER
    1 ORDER_MEMBER_FIRM_ID VARCHAR2(4)
    2 ORDER_CLIENT_ID VARCHAR2(4)
    3 ORDER_BRANCH VARCHAR2(3)
    4 ORDER_SEQUENCE VARCHAR2(4)
    5 ORDER_EXCHANGE_ID VARCHAR2(3)
    6 ORDER_EXCHANGE_SEQUENCE VARCHAR2(7)
    7 ORDER_CREATE_DATE DATE
    8 ORDER_TYPE VARCHAR2(2)
    9 ORDER_STATUS VARCHAR2(1)
    10 ORDER_SYMBOL VARCHAR2(5)
    11 ORDER_SUFFIX VARCHAR2(14)
    12 ORDER_SIDE VARCHAR2(5)
    13 ORDER_PRICE VARCHAR2(20)
    14 ORDER_STOP_PRICE VARCHAR2(20)
    15 ORDER_PRICE_QUAL VARCHAR2(10)
    16 ORDER_QUANTITY VARCHAR2(6)
    17 ORDER_TIF VARCHAR2(4)
    18 ORDER_AON VARCHAR2(4)
    19 ORDER_DNR VARCHAR2(4)
    20 ORDER_CASH_NEXT_DAY VARCHAR2(4)
    21 ORDER_SELLER VARCHAR2(4)
    22 ORDER_ACCOUNT_TYPE VARCHAR2(4)
    23 ORDER_OS_TS VARCHAR2(4)
    24 ORDER_BOOTH_ID VARCHAR2(4)
    TBL_CMSOUT
    1 CMSOUT_MEMBER_FIRM_ID VARCHAR2(4)
    2 CMSOUT_CLIENT_ID VARCHAR2(4)
    3 CMSOUT_DATA VARCHAR2(120)
    trg_order.sql
    create or replace procedure OrderToCmsoutProc(cms_member_firm_id VARCHAR2,
    cms_client_id VARCHAR2,
    cms_branch VARCHAR2,
    cms_sequence VARCHAR2,
    cms_side VARCHAR2,
    cms_quantity VARCHAR2,
    cms_symbol VARCHAR2,
    cms_price VARCHAR2,
    cms_tif VARCHAR2,
    cms_type VARCHAR2)
    AUTHID CURRENT_USER
    as language java
    name 'OrderToCmsout.test(java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String)';
    show errors;
    create or replace trigger trg_order
    after insert on TBL_ORDER
    for each row
    CALL OrderToCmsoutProc (:new.order_member_firm_id,
    :new.order_client_id,
    :new.order_branch,
    :new.order_sequence,
    :new.order_side,
    :new.order_quantity,
    :new.order_symbol,
    :new.order_price,
    :new.order_tif,
    :new.order_type)
    commit;
    show errors;
    exit;
    trg_cmsout.sql
    create or replace procedure PackCmsoutSidProc(pck_member_firm_id VARCHAR2,
    pck_client_id VARCHAR2,
    pck_data VARCHAR2)
    AUTHID CURRENT_USER
    as language java
    name 'PackCmsoutSid.test(java.lang.String,
    java.lang.String,
    java.lang.String)';
    show errors;
    create or replace trigger trg_cmsout
    after insert on TBL_CMSOUT
    for each row
    CALL PackCmsoutSidProc (:new.cmsout_member_firm_id,
    :new.cmsout_client_id,
    :new.cmsout_data)
    commit;
    show errors;
    exit;
    loadORDERjava
    loadjava -r -f -o -user userid/pswd OrderToCmsout.java
    loadCMSOUTjava
    loadjava -r -f -o -user userid/pswd PackCmsoutSid.java
    OrderToCmsout.java
    import java.sql.*;
    import java.lang.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    public class OrderToCmsout {
    public static void main(String args[]) {
    try {
    test (args[0],args[1],args[2],args[3],args[4],
    args[5],args[6],args[7],args[8],args[9]);
    catch (Exception e) {
    System.err.println(e);
    } //catch
    } // end main
    public static void test ( String parm_member_firm_id,
    String parm_client_id,
    String parm_branch,
    String parm_sequence,
    String parm_side,
    String parm_quantity,
    String parm_symbol,
    String parm_price,
    String parm_tif,
    String parm_type)
    throws SQLException
    Connection conn = new OracleDriver().defaultConnection();
    PreparedStatement stmt2;
    try {
    stmt2= conn.prepareStatement
    ("INSERT INTO TBL_CMSOUT VALUES (?, ?, ?)");
    String datastring = parm_member_firm_id + "\\~" +
    parm_branch + " " +
    parm_sequence + "\\~" + "\\~" +
    parm_side + "\\~" +
    parm_quantity + " " +
    parm_symbol + " " +
    parm_price + "\\~" +
    parm_tif + " " +
    parm_type + "\\~";
    stmt2.setString(1, parm_member_firm_id);
    stmt2.setString(2, parm_client_id);
    stmt2.setString(3, datastring);
    stmt2.executeUpdate();
    stmt2.close();
    return;
    } //try
    catch (Exception e) {
    System.err.println(e);
    } //catch
    PackCmsoutSid.java
    import java.sql.*;
    import java.lang.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    public class PackCmsoutSid {
    public static void main(String args[]) {
    try { test(args[0],args[1],args[2]);
    catch (Exception e) {
    System.err.println(e);
    } //catch
    } // end main
    public static void test( String parm_member_firm_id,
    String parm_client_id,
    String parm_data)
    throws SQLException
    try {
    Connection conn = new OracleDriver().defaultConnection();
    PreparedStatement stmt1 = conn.prepareStatement
    ("SELECT sid_session_id " +
    "FROM tbl_sid " +
    "WHERE sid_member_firm_id = ? and " +
    "sid_client_id = ?");
    stmt1.setString(1, parm_member_firm_id);
    stmt1.setString(2, parm_client_id);
    ResultSet rs1 = stmt1.executeQuery();
    while (rs1.next ()) {
    String session_id_found = rs1.getString
    ("sid_session_id");
    CallableStatement pack_pipe = conn.prepareCall
    ("{call DBMS_PIPE.PACK_MESSAGE(?)}");
    pack_pipe.setString(1, parm_data);
    pack_pipe.execute();
    CallableStatement send_pipe = conn.prepareCall
    ("{? = call DBMS_PIPE.SEND_MESSAGE(?)}");
    send_pipe.registerOutParameter
    (1, java.sql.Types.INTEGER);
    send_pipe.setString (2, session_id_found);
    send_pipe.execute();
    } //while
    stmt1.close();
    conn.close();
    } //try
    catch (Exception e) {
    System.err.println(e);
    } //catch
    } //test
    } //PackCmsoutSid
    Thanks in advance for your help
    Vinicio

    you should post this question on the Application Server forum.
    --Olaf                                                                                                                                                                                       

  • ORA-29540: class oracle/xquery/OXQServer does not exist

    I'm running 10g and initially had a problem when running XMTABLE that the error :-
    "identifier 'SYS.DBMS_XQUERYINT' must be declared"
    came up when I tried to execute anything relating to XQUERY
    One of our DBAs very kindly looked into this and found the script :-
    "$ORACLE_HOME/rdbms/admin/initxqry.sql"
    This was executed, but now I get the error :-
    ORA-29540: class oracle/xquery/OXQServer does not exist
    Does anyone know what I am still missing out?
    Thanks in anticipation of any advice anyone can offer

    Thanks mdrake, we seem to gradually be getting there.
    One thing I've now come across is :-
    oracle.jdbc.driver.OracleSQLException: ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_LOB' must be declared
    O
    This is a "demo" trigger that caused this problem :-
    CREATE OR REPLACE TRIGGER xml_inbox_trigger AFTER INSERT ON xmlinbox
    FOR EACH ROW
    DECLARE
    XMLRECORD XMLType;
    BEGIN
    XMLRECORD := :new.XMLDATA;
    INSERT INTO all_children
    (childname) VALUES
    (extractvalue (XMLRECORD, '*/child/name'));
    IF :new.xmlfilename like 'boys%' THEN
    INSERT INTO boys
    (childname) VALUES
    (extractvalue (XMLRECORD, '*/child/name'));
    END IF;
    IF :new.xmlfilename like 'boys%' THEN
    INSERT INTO boys_wishlist SELECT
    childname , artno , description ,price FROM
    XMLTABLE (
    '*/child' passing XMLRECORD
    columns
    childname varchar2(25) path '/name'
    , artno number path '/wishlist/artno'
    , description varchar2(25) path '/wishlist/description'
    , price varchar2(10) path '/wishlist/price'
    END IF;
    IF :new.xmlfilename like 'girls%' THEN
    INSERT INTO girls
    (childname) VALUES
    (extractvalue (XMLRECORD, '*/child/name'));
    END IF;
    END;
    Do you think the above error is caused by something wrong with the above code, or something else wrong with our installation??
    Thank you so much for your continued assistance

  • Ora-23404:refresh group HR.MV_EMP does not exist

    Hi,
    i am getting following error when refreshing materialized view ,
    exec dbms_refresh.refresh('HR.MV_EMP');
    ORA-23404: refresh group "HR.MV_EMP" does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.DBMS_REFRESH", line 23
    ORA-06512: at "SYS.DBMS_REFRESH", line 195
    ORA-06512: at line 1
    Thanks,

    Mohammed,
    The DBMS_REFRESH package works on groups of materialized views, not single views. The argument you pass should be the name of a group of views, not the name of a view. There is no group called MV_EMP, hence the error.
    To use this you would need to create a group using:
    DBMS_REFRESH.MAKE (groupname, view_list, parameter_list)
    where view_list is a list of materialized views to include in the group, and parameter_list defines various properties of the group, including when it is refreshed.
    followed by:
    DBMS_REFRESH.REFRESH (groupname)
    See this link for further information:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14227/rarrefreshpac.htm#i94057
    If you just want to refresh this single view, though, it is better to use the DBMS_MVIEW package:
    DBMS_MVIEW.REFRESH ('HR.MV_EMP')
    Edited by: user10827032 on 20-Jan-2009 07:10

  • Bursting Problem - A file or directory in the path name does not exist

    I'm trying to burst some data via email using the standard DocumentProcessor java code but receiving an error relating, I assume, to an invalid temporary directory. I've checked that the directory exists, as do the data file and control file. By the way I am not running in Apps, just stand alone mode. Any ideas would be much appreciated.
    [042308_104249440][oracle.apps.xdo.batch.bursting.FileHandler][EXCEPTION] java.io.FileNotFoundException: /u02/DIAS/bursting/BIPublisher/tmp/042308_104249338/xdo2.tmp (A file or directory in the path name does not exist.)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:205)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:96)
    at oracle.apps.xdo.template.RTFProcessor.setOutput(Unknown Source)
    at oracle.apps.xdo.batch.bursting.FileHandler.rtf2xsl(Unknown Source)
    at oracle.apps.xdo.batch.bursting.ProcessDocument.getXSLFile(Unknown Source)
    at oracle.apps.xdo.batch.bursting.ProcessDocument.processTemplate(Unknown Source)
    at oracle.apps.xdo.batch.bursting.ProcessCoreDocument.processLayout(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstDocument(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.globalDataEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingEndElement(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.endElement(Unknown Source)
    at oracle.xml.parser.v2.XMLContentHandler.endElement(XMLContentHandler.java:196)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1212)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingConfigParser(Unknown Source)
    at oracle.apps.xdo.batch.BurstingProcessorEngine.process(Unknown Source)
    at oracle.apps.xdo.batch.DocumentProcessor.process(Unknown Source)
    at PIreportburst.bEngine(PIreportburst.java:24)
    at PIreportburst.main(PIreportburst.java:51)
    -Below is the java code I'm using
    public void bEngine(String ctrlFile, String dataFile, String tmpDir) {
    try {
    DocumentProcessor dp = new DocumentProcessor(ctrlFile,dataFile,tmpDir);
    dp.process();
    catch (Exception e) {
    System.out.println(e);
    }

    Thanks Ike
    Where do you suggest setting the temp directory:
    DocumentProcessor("control.xml","data.xml","/u02/DIAS/bursting/BIPublisher/tmp/042308_104249338/xdo2.tmp")
    or in the xdo.cfg:
    <property name="system-temp-dir">/u02/DIAS/bursting/BIPublisher/tmp/042308_104249338/xdo2.tmp</property>
    ..and thanks for the link to the BIPublisherIDE
    Cheers, Mike

  • The name '' does not exist in the current context

    I have a recurring problem where all of a sudden I can no longer see the values of my variables when I debug my unit tests. I cannot find a pattern as to when this happens but I experience this across one of every 20 tests that I write. Occasionally this
    has also happened during normal debbuging of running code on my machine. 
    I have included 2 screen shots. The first is when it is working. I have a break point set at the declaration of list of types. At this point all my variables are still reporting their values back to the debugger. Once I step over this to the next line (screen
    shot 2) I get the error message 'The name '[variable name]' does not exist in the current context'
    This problem is annoying me to no end. If anyone has any insight as to why this might be happening I would be very much appreciative.
    My Settings/Configuration
    Using Visual Studio 2013 Premium (Version 12.0.31101.00 Update 4)
    Projects are all set to Target Framework = .NET 4.5.1
    Resharper 9.1 is installed
    My active configuration is debug mode, Any CPU
    My PC is 64bit and so is the O/S windows 8.1
    All of my projects are also compiled and built in debug mode
    For all my projects configuration debug has the Optimize Code check box unchecked
    I am unit testing code in an outside project referenced by the unit testing project (standard unit test project setup)
    I make use of the latest version of NSubstitute in my tests although I do not think that would have any bearing on this issue
    I omitted the code following the error because it is not relevant. I had cut it out and replaced it with a Task.Delay(4) which resulted in the same issue. 
    What I have tried so far
    I have tried debugging the unit test  from Visual Studio Test Explorer instead of from Resharper with the same result.
    If I remove 2 items at the end of the array it starts to work again (so 6 items initialized instead of 8)
    I clean solution with rebuild has no effect
    Removing properties of the array also seems to work, example remove all initialization of property Value
    Mark as answer or vote as helpful if you find it useful | Igor

    Hi IWolbers,
    >>I have a recurring problem where all of a sudden I can no longer see the values of my variables when I debug my unit tests. I cannot find a pattern as to when this happens but I experience this across one of every 20 tests that I write. Occasionally
    this has also happened during normal debbuging of running code on my machine.
    So you mean that it worked well before, am I right? 
    If you debug the same app in other VS machine, does it work well? So we could make sure that whether it is related to the VS IDE.
    Please disable all add-ins in your VS IDE, and then reset your VS settings, debug it again.
    https://msdn.microsoft.com/en-us/library/ms247075(v=vs.100).aspx
    Or you could run your VS in safe mode, debug it again, at least, we could know that whether it is the add-in's issue.
    https://msdn.microsoft.com/en-us/library/ms241278.aspx
    To make sure that it is not the project files' issue, create a new blank solution, copy the project files to the new solution, clean and rebuild the solution, check the result.
    >>Once I step over this to the next line (screen shot 2) I get the error message 'The name '[variable name]' does not exist in the current context'
    How about debugging it with "Step Into" instead of "Step Over"? Or you could add breakpoints between 234 line to 241 line, after the breakpoint is hit, check the watch window again. How about the result?
    In addition, do you check other debugger window like local or others?
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • /etc/oratab (a file or directory in the path name does not exists)

    Hello All,
    I ma trying to create a database oracle 11g R2 on AIX 6.1.
    But i am facing the below error at the beginning of the installation:
    /etc/oratab (a file or directory in the path name does not exists)
    Your help pls..

    When I am trying to run root.sh. it gives the below error:
    IST76SIT:/apps/oracle/oracle11/app/product/11.2.0/db1> ./root.sh
    Running Oracle 11g root.sh script...
    The following environment variables are set as:
    ORACLE_OWNER= oracle11
    ORACLE_HOME= /apps/oracle/oracle11/app/product/11.2.0/db1
    Enter the full pathname of the local bin directory: [usr/local/bin]: /usr/local/bin
    Creating /usr/local/bin directory...
    Copying dbhome to /usr/local/bin ...
    Copying oraenv to /usr/local/bin ...
    Copying coraenv to /usr/local/bin ...
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    Finished product-specific root actions.
    ./root.sh[14]: /apps/oracle/oracle11/app/product/11.2.0/db1/rdbms/install/rootadd_rdbms.sh: not found.
    ./root.sh[16]: /apps/oracle/oracle11/app/product/11.2.0/db1/rdbms/install/rootadd_filemap.sh: not found.
    IST76SIT:/apps/oracle/oracle11/app/product/11.2.0/db1>

  • DNS cache " Name Does not Exist"

    Hey Guys,
    So we've been experiencing a really weird issue related to the DNS for past couple of months. Here are the details:
    1) Our domain machines are Windows 7 Enterprise and their DNS points to Windows DNS Servers
    2) For companyxyz.net internal sites, the Windows DNS resolves those from its
    companyxyz.net zone.
    3) For public *.companyxyz.com records, the Windows DNS has conditional forwarders to point these requests to our Linux Bind Servers. And than the authoritative name servers respond to these queries accordingly
    4) Our internal employees use the public records such as testing.companyxyz.com 
    Problems:
    1) Employees on the internal network would randomly experience page not found on their browsers while trying to hit
    testing.companyxyz.com. When we try to ping this URL, ping would fail too. However, NSLOOKUP would work perfectly fine and return the correct results. ipconfig /flushdns fixes the issue right away
    2) During the time when this problem is occurring, if I look into the local cache ( ipconfig /displaydns), I find an entry saying:
        testing.companyxyz.com
        Name does not exist. 
    ipconfig /flushdns obviously clears out this record along with the other local cached records and fixes the issue.
    3) Point the local computers directly to the Linux Bind servers as DNS never create this issue. It's only when they are pointing to the Windows DNS and going to this public record. The problem also seems to occur a lot more frequently if there are considerably
    high number of hits to this URL.
    Have you guys experienced this issue before? I am looking for a fix for this issue and not having the end-users to flush their dns constantly. Also note this problem occurs sometimes once a day, or 2 -3 times a week. It's very random.
    Thanks.
    Bilal
     

    Hi,
    It seems that the issue is related to your Windows 7 client. Considering whether there is DNS attack or virus on this computer.
    Please try to do the safety scan first.
    Please monitor the DNS server performance referring these article:
    Monitoring DNS server performance
    http://technet.microsoft.com/en-us/library/cc778608(WS.10).aspx
    Monitoring and Troubleshooting DNS
    http://www.tech-faq.com/monitoring-and-troubleshooting-dns.html
    For further step, we need to capture the traffic by using Network monitor when the issue happened and we continuously ping
    testing.companyxyz.com.
    Microsoft Network Monitor 3.4
    http://www.microsoft.com/en-us/download/details.aspx?id=4865
    Let’s see whether there is DNS request happened and the DNS request is handled.
    You can post back the save traffic log here for our further research.
    Kate Li
    TechNet Community Support

  • RDS Gateway + Smart Card Error [ The specified user name does not exist.]

    I have the following Windows Server 2008 R2 servers:
    addsdc.contoso.com, AD DS Domain Controller for contoso.com
    adcsca.contoso.com, AD CS Enterprise CA, CDPs/AIAs published externally.
    fileserver.contoso.com, RDS Session Host for Administration enabled
    rdsgateway.contoso.com, RDS Gateway enabled
    tmgserver.contoso.com, 'Publishing' rdsgateway.contoso.com but with pass-through authentication
    And the following Windows 7 PCs:
    internalclient.contoso.com
    externalclient.fabrikam.com
    There's no trust between the domains, the external client is completely separate on the internet but the CA certificate for contoso.com has been installed in the trusted Root CA store. All servers have certificates for secure RDP.
    I enrolled for a custom 'Smart Card Authentication' certificate with Client Authentication and Smart Card Logon EKUs from the CA, stored on my new Gemalto smart card using the Microsoft Base Smart Card CSP.
    From internalclient.contoso.com, I can RDP to fileserver.contoso.com
    using the smart card just fine with no certificate errors.
    From externalclient.fabrikam.com, I can RDP to fileserver.contoso.com
    via rdsgateway.contoso.com using a username and password just fine with no certificate errors.
    From externalclient.fabrikam.com, I can RDP to fileserver.contoso.com
    via rdsgateway.contoso.com using the smart card to authenticate to the gateway, and a username and password to authenticate to the end server, just fine.
    BUT from when using a smart card to authenticate to the end server via the gateway, it fails with:
         The specified user name does not exist. Verify the username and try logging in again. If the problem continues, contact your system administrator or technical support. 
    When I move the client into the internal network and try the connection again (still via the RDS Gateway), it works fine - the only thing I can think of is being outside the network and not being able to contact the AD DS DC for Kerberos is causing the issue
    - but I'm pretty sure this is a supported scenario?
    The smart card works fine internally, the subject of the certificate is the user's common name (John Smith) and the only SAN is
    [email protected] which matches the UPN of the user account as it was auto-enrolled.
    Does anyone have any ideas?

    I had a similar issue where I am using a smart card through a Remote Desktop Gateway. I had to disable Network Level Authentication (NLA) on the destination Remote Desktop Server. If anyone has another way around this, I'd appreciate hearing it. I'd prefer
    to use NLA.

  • Error: The specified mailbox database [Mailbox Database Name] does not exist, when you try to export mailbox in Exchange 2007

    [Symptom]
    ======================
    In Exchange 2007, when you want to export mailbox to a .pst file, you should run the
    Export-Mailbox cmdlet from a 32-bit computer that has the following installed:
    The 32-bit version of the Exchange management tools
    Microsoft Office Outlook 2003 SP2 or later versions
    If not, you may encounter the following error message:
    You check that you have these required installed, but you get the error below when you run Export-Mailbox in EMS.
    “The specified mailbox database [Mailbox Database Name] does not exist.”
    [Cause Analysis]
    =======================================
    This is because that the account you use to run Export-Mailbox cmdlet don’t have the Exchange Server Administrator role assigned.
    You can check if this account has been delegated the Exchange Server Administrator role through the following path.
    EMC -> Organization Configuration-> Check permissions in the result pane.
    To delegate this Exchange Server Administrator role, right click on the
    Organization Configuration node and choose Add Exchange Administrator,
    you will see the Add Exchange Administrator window.
    [More Information]
    ==============================
    Export-Mailbox
    http://technet.microsoft.com/en-gb/library/aa998579(v=exchg.80).aspx
    How to Export and Import mailboxes to PST files in Exchange 2007 SP1
    http://blogs.technet.com/b/exchange/archive/2007/04/13/3401913.aspx
    Exchange 2007 cannot export pst files via its powershell
    http://social.technet.microsoft.com/Forums/forefront/en-US/b3bc0dce-35f3-4a69-9a33-4f2a855b9f94/exchange-2007-cannot-export-pst-files-via-its-powershell?forum=exchangesvrgenerallegacy
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hi,
    Based on my test, if you make the user the owner of the database (rather than a user with the db_owner role), when you create a query, it creates it under the dbo schema rather than DOMAIN\username.
    Steps to do so (in Management Studio):
    Right click database, select Properties 
    Click File 
    Change Owner in the textbox 
    OK to confirm 
    Downside - other users under db_owner role will still have their username appended. So schemas have to be created for these users.
    Jaynet Zhang
    TechNet Community Support

  • Object class name does not exist in IDM

    Hi Team
    We are process of Integrating GRC 10.1 to Enterprise Portal.Followed accordingly as per the SAP Note No. 1977781.
    While running the Schema Job, we get a message Schema Imported Suxcessfully. While running the Job : GRAC_REPOSITORY_SYNC_JOB, the job
    shows successful, but a Warning Message : User Adaptor Empty in SLG1 T.code.
    I have checked the Path suffix,connectors,data source and all are maintained but no sure about this warning message.
    Secondly,I tried for test creation of user on Portal via GRC 10.1.I am getting below error
    "Object class name does not exist in IDM" Please see log below
    Request gets closed stating Auto Provisioning failed.Please advice if someone has faced same issue and the steps taken to rectify it.
    Thanks
    Nitesh

    Hi Nitesh,
    We worked on this issue for quiet sometime with SAP to get this finally fixed You can check all below mentioned notes.
    First Check:
    Please check the Note: 1915763 - Error Provisioning from GRC 10 to SAP Portal while adding or removing a role in Change Account request type.
    This Note says that if your LDAP set as data source is read-only in Portal, then you need to change it to Modifiable in order to allow create or change user belonging to LDAP.
    We have set the UME correctly and no longer read-only. But our access requests still used to fail with the following messages.
    "Object class name does not exist in IDM".
    Second Check:
    Kindly ensure the field mapping for portal is done in IMG settings properly.
    If it is fine please check below note 2033714 - AC10.0: error in SGL1 "Object class name does not exist in IDM".
    This note is only to check if you have made any mistake with your portal mapping and doesn't address the correct issue.
    Third Check:
    Finally after implementing SAP note 1941250 - UAM: Truncated parameters provisioned on changing users from Access Request
    our issue got fixed.
    Regards,
    Madhu.

  • Error: ORA-16532: Data Guard broker configuration does not exist

    Hi there folks. Hope everyone is having a nice weekend.
    Anyways, we have a 10.2.0.4 rac primary and a 10.2.0.4 standby physical standby. We recently did a switchover and the dgbroker files automatically got created in the Oracle_home/dbs location of the primary. Now need to move these files to the common ASM DG. For this, I followd the steps from this doc:
    How To Move Dataguard Broker Configuration File On ASM Filesystem (Doc ID 839794.1)
    The only exception to this case is that I have to do this on a Primary and not a standby so I am disabling and enabling the Primary(and not standby as mentioned in below steps)
    To rename the broker configuration files in STANDBY to FRA/MYSTD/broker1.dat and FRA/MYSTD/broker2.dat, Follow the below steps
    1. Disable the standby database from within the broker configuration
    DGMGRL> disable database MYSTD;
    2. Stop the broker on the standby
    SQL> alter system set dg_broker_start = FALSE;
    3. Set the dg_broker_config_file1 & 2 parameters on the standby to the appropriate location required.
    SQL> alter system set dg_broker_config_file1 = '+FRA/MYSTD/broker1.dat';
    SQL> alter system set dg_broker_config_file2 = '+FRA/MYSTD/broker2.dat'
    4. Restart the broker on the standby
    SQL> alter system set dg_broker_start = TRUE
    5. From the primary, enable the standby
    DGMGRL> enable database MYSTD;
    6. Broker configuration files will be created in the new ASM location.
    I did so but when I try to enable the Primary back I get this:
    Error: ORA-16532: Data Guard broker configuration does not exist
    Configuration details cannot be determined by DGMGRL
    Form this link,(Errors setting up DataGuard Broker it would seem that I would need to recreate the configuration....Is that correct ? If yes then how come Metalink is missing this info of recreating the configuration... OR is it that that scenario wouldnt be applicable in my case ?
    Thanks for your help.

    Yes I can confirm from the gv$spparameter view that the changes are effective for all 3 instances. From the alert log the alter system didnt throw u pany errros. I didnt restart the instances though since I dont have the approvals yet. But I dont think thats required.

  • Name Error: The domain name does not exist

    Hi,
    I get this error when I try to create a view inside a web dynpro from se80 transaction
    " Name Error: The domain name does not exist. "
    Can anyone help me to solve this error ?
    Thanks !!

    Hi,
    did you carry out the necessary <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/e86de5008b4d9ae10000000a155369/frameset.htm">configuration</a> in your system? Note especially the need for fully qualified domain names (FQDN): <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm">FQDN</a>
    Regards, Heidi

  • ORA-04043: object SYS.DELTA$SESSION does not exist

    Dear Friends
    after I import my data by using the follwoing import script :
    IMP JCC/P_MANUF FILE =JCC.DMP FULL
    and at the end give this message import has been imported succesfully without warning
    then when I use this script :
    SQL> SELECT TNAME FROM TAB
    2 WHERE TNAME LIKE 'USER_SESSION'
    3 /
    TNAME
    USER_SESSION
    The table USER_SESSION is exist but when I try to desplay the structure of the USER_SESSION by using this :
    SQL> DESC USER_SESSION
    ERROR:
    ORA-04043: object SYS.DELTA$SESSION does not exist
    and when I try to use the select statment as the following
    SELECT * FROM USER_SESSION
    ERROR at line 1:
    ORA-00980: synonym translation is no longer valid
    Waiting for your valuable answer.
    Best regards
    Jamil Alshaibani

    SQL> select * from V$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE 11.1.0.6.0 Production
    TNS for Linux: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> !uname -a
    Linux KAD-VMWARE 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
    SQL> sho user
    USER is "SYS"
    SQL> select object_type,status from dba_objects where object_name = 'K_DRWDWN_GRP' and OWNER = 'SYS';
    no rows selected
    Is any thing wrong with my dictionary? please let me know if i missed anything?
    Edited by: sanora600 on Oct 16, 2010 12:34 AM

Maybe you are looking for

  • How to use the HTML tags in the reports.

    hi. can any one tell me how to use the HTML tags in the reports. i m using the forms 10 g rel 2 and reports 10 g rel 2 and application server 10g rel 2.

  • Setting up a second wireless network with TC

    Hi All Am shiny new to these communities and a recent convert from PC/Windows to MAC/OS and have so far been loving a simple, easy to use home computer life! I've scoured through to see if i could find an answer to my question but couldn’t see anythi

  • Possible instant access security hole

    When using instant access camera from the lock screen, then pressing home on iPhone 4 IOS 5, it goes straight into the home page without needing to enter a passcode.  Anyone else seeing this?

  • Maximum Permitted File Size in XI

    Hi, What is the maximum file size that XI can process ?? (With no splitting in adapters) Thanks in Advance, Chemmanz

  • Very very weird anomoly...

    Ive had this 12inch G4 since june or so and its worked fine for me, but today, as in the last hour or so, the display has taken on a very disturbing anomoly. Its rather dificult to explain, but about every other line of pixels is white/bleaced. This