ERROR: selectsinglenode to be declared

DECLARE
att_data_parser xmlparser.parser;
att_data_domdoc xmldom.DOMDocument;
l_xmlNode xmldom.DOMNode;
l_strValue xmldom.DOMNode;
cursor sp_oid_value is select distinct PDT_OID from PQ_supplypoint_test;
cursor SP_CURSOR is select pd_document, pd_document_attribute from pq_supplypoint_test for update;
BEGIN
open sp_oid_value;
fetch sp_oid_value into sp_oid_result;
att_path :='select attribute_path, attribute_name from PQ_DOCUMENT_attribute_config where PDT_OID =:1';
     for sp_data in sp_cursor
     loop
OPEN each_att_path FOR att_path USING sp_oid_result;
LOOP
FETCH each_att_path INTO att_result;
EXIT WHEN each_att_path%NOTFOUND;
dbms_output.put_line(att_result);
while each_att_path%found
loop
att_data_parser := xmlparser.newParser;
xmlparser.parseCLOB(att_data_parser,sp_data.pd_document);
Att_data_domdoc := xmlparser.getDocument(att_data_parser);
*****************THIS IS WHERE I HAVE THE PROBLEM
     l_xmlNode := xmldom.selectSingleNode(Att_data_domdoc,each_att_path.attribute_path);
     l_strValue := xmldom.getNodeValue(l_xmlNode);
--dbms_output.put_line(l_strValue);
xmlparser.freeParser(att_data_parser);
end loop;
END LOOP;
end loop ; -- sp_cursor
CLOSE each_att_path;
CLOSE sp_oid_value;
END;
****************The error on running this code is selectsinglenode to be declared.......
MY question to you is:
1)Am I using wrong syntax for selectsinglenode?
2)how can I resolve this error?
Many thanks in advance,
Kind regards,
Rekha

Hi
You mean to say that the table you have queried doesnt have a column called last_update_login right ? If its the case then what you did for debugging the error. Pls share it since i was also struggling with *<<<< needs to be declared abstract; it does not define the method setLastUpdateLogin() ..>>>*
error.
Thanks.
Praveen

Similar Messages

  • Xmlreader schema validation error: Cannot find the declaration of element

    I have multiple schemas with namespaces but I would like to validate an xml document without namespaces. The schemas all have elementFormDefault="unqualified" in the root element.
    I am encountering error below in my validation using xmlreader:
    ERROR:
    Cannot find the declaration of element 'NewTradenetDeclaration'.
    my code is:
    xmlReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    xmlReader.setFeature(VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_NAMESPACE_FEATURE_ID, true);
    xmlReader.setProperty(JAXP_SCHEMA_LANGUAGE, XMLConstants.W3C_XML_SCHEMA_NS_URI);
    String schemaURI = "NewTradenetDeclaration.xsd";
    // ive tried all of the ff but throws the same error
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, "urn:crimsonlogic:tn:schema:xsd:NewTradenetDeclaration NewTradenetDeclaration.xsd");
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, schemaURI);
    xmlReader.setProperty(JAXP_SCHEMA_SOURCE, schemaURI);
    // set entity resolver to resolve xsd locations
    MyResolver resolver = new MyResolver();
    xmlReader.setEntityResolver(resolver);the entity resolver has:
    public InputSource resolveEntity (String publicId, String systemId) {
      String filename =  "c:/workspace/TXParser/schema/"+ systemId.substring(systemId.lastIndexOf("/")+1);
      File f = new File(filename);
      InputSource source = null;
      try {
        source = new InputSource(new FileReader(f));
      } catch(Exception e) {
      System.out.println("InputSource exception: " + e.getMessage());                 
      return source;
    }Help please. Thanks.

    I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(

  • "error in parsing value" "declaration dropped"

    A week ago I lost the ability to log in to my banking site (BBVA Compass). After submitting my username, it USED to then ask for my password on the subsequent screen. Now, it dies with a screen that shows "please wait", never gets beyond that. Looking in the error panel I see countless error messages for "error in parsing value" "declaration dropped", concerning a host of variables in CSS, such as radius, background, background image, etc.
    I CAN log in easily with MSIE. I have killed cookies and history, deleted and reinstalled FF, disabled the few add-ons I use, no joy.
    I have searched on these terms in "FF Help" and found some comments about these, but nothing that resolves the problem. This happens on several sites, I am including one.

    * Did you also clear the browser cache? This sometimes is needed when website have made update, to clear mismatched files.
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    <br>
    * Do you have Firefox enter the password for you? In that case, you may want to clear the passwords for affected sites here:
    orange Firefox button ''or'' Tools menu > Options > Security > "Saved Passwords" button
    <br>
    * Are there other sites with a problem that don't require a login? We could visit the URLs and see whether we see an issue.
    * Regarding the Error Console (Ctrl+Shift+j), if you filter the list by clicking the Errors button at the top, you can isolate the most critical ones. A lot of the style warnings have no effect on functionality, just appearance.

  • A error of  "bad DTD declaration"

    Hi
    when i use XDK for 9i(solaris) to parse the "xxxx.xml",
    a error of "bad DTD declaration" (XMLERR_BAD_DTD) always be displayed. but when i get rid of the fragment of "<!DOCTYPE .... >" ,all of the parsing is correct.
    why ?
    regards,
    donald
    the fragment of "xxxx.xml" is follow as:
    <?xml version="1.0" encoding="UTF-16"?>
    <!DOCTYPE NewsML PUBLIC "urn:newsml:iptc.org:20001006:NewsMLv1.0.dtd:1" "../DTD/NewsMLv1.0.dtd" [
         <!ENTITY % InContent SYSTEM "../DTD/InContentv1.0.dtd">
         <!ENTITY % Kddata SYSTEM "../DHDTD/KdDHKgMLv1.0.dtd">
         %InContent;%Kddata;
    ]>
    <NewsML>
    <InContent version="1.0">
    </InContent version="1.0">
    </NewsML>
    the fragment of source is follow as:
    if (!(xctx = xmlinitenc(&ecode, (const oratext *) 0,(const oratext *)0,
    (void (*)(void *, const oratext *, uword)) func1,
    (void *) 0, (const xmlsaxcb *) 0, (void *) 0,
    (const xmlmemcb *) 0, (void *) 0,
    (const oratext *) 0)))
    if (ecode=xmlparse(xctx,(oratext *)argv[1],(oratext *)0,
    XML_FLAG_VALIDATE | XML_FLAG_DISCARD_WHITESPACE))

    Can you provide the complete xml and dtd files?

  • Class should be declared error - but it is declared!

    After compilation of my coding i get the following error* but i have declared the class FLowps. Please tell me how it shoud be declared....if code needs to be seen please e-mail at [email protected] and will send the code listing.
    Thankyou.
    *test.java:18: class Flowps is public, should be declared in a file named Flowps.java
    public class Flowps extends JApplet implements ActionListener
    ^
    1 error
    Tool completed with exit code 1

    <rant>
    Why won't people just read? The compiler prints out a perfectly comprehensible error message not only telling them what's wrong, but even how to fix it, and they just throw their hands up! "It's all too hard! Why can't someone just tell me the answer? Where's my tutor?"
    Arrgh! Try working with these people: code, code, code, ooops! Red flag! Can't code any more! I don't understand!
    The supposed difference between a computer and a human is that humans are supposed to get creative when faced with a difficulty, but some of 'em make you wonder.
    </rant>

  • Pls -00371 error (problem in multiple declaration )

    function code:
    //start
    create or replace function salinc(si number default 10) return number
    is
    number sinc;
    number bef;
    number aft;
    begin
    select sum(sal) into bef from emp where deptno=si;
    update employees set sal=sal+200 where deptno=si;
    select sum(sal) into aft from emp where deptno=si;
    sinc:=aft-bef;
    return sinc;
    end salinc;
    //end
    is giving me these 2 errors:
    0/0      PL/SQL: Compilation unit analysis terminated
    1/46      PLS-00371: at most one declaration for 'NUMBER' is permitted in t he declaration section
    how can i now declare the variables ?? need help

    tushar88 wrote:
    function code:
    //start
    create or replace function salinc(si number default 10) return number
    is
    number sinc;
    number bef;
    number aft;
    beginIn oracle declaration is done as
    <variable name> <data type>
    i.e. your decleration is incorrect. it must be
    sinc number;
    bef number;
    aft number;

  • Syntax Error "Method was not declared or inherited in class"

    Dear all,
    I am seeing the following syntax error in one of the standard classes CL_ICCMP_BT_INRHISTRESULT_CN01 which says "Method "XYZ" was not declared or inherited in class". Need help to identify when this error would occur or where I should be checking for this error within the class.
    I checked other systems for the same class, the method XYZ does not exist there too but still the class has no syntax errors!
    Would appreciate your help!
    Thank you.
    Regards,
    Gayathri.

    Hi Gayathri,
    please give detailed information on how and where you get this error.
    CL_ICCMP_BT_INRHISTRESULT_CN01 does not exist in our ECC600 system.
    Regards,
    Clemens

  • Error WWW_FLOW_SECURITY. should be declared

    Hi,
    I install Apex 3.1.2, and when I have to change the password for admin I become the error:
    WWW_FLOW_SECURITY.G_SECURITY_GROUP_ID should be declared
    WWW_FLOW_SECURITY.G_USER should be declared
    WWW_FLOW_SECURITY.G_IMPORT_IN_PROGRESS should be declared
    WWW_FLOW_SECURITY.G should be declared
    I can not define a password for admin, eather using:
    @apxxepwd.sql or
    @apxchpwd.sql
    What can I do?
    Thanks
    Gissel

    The "should be declared abstract" error message means that you have either extended an abstract class with abstract methods that you have not implemented, or you have implemented an interface and not implemented all of its methods. Non abstract classes have to implement all methods that their base classes or interfaces declare.
    The "getAudioClip() not found" error message means that the compiler could not find the method getAudioClip(). Either your class or one of its base classes has to define this method.

  • Error "class should be declared abstract"

    i am having a problem.
    when i compile my program, there is one error,
    below is the error occurs:
    glay2.java:5:glay2 should be declared abstract; it does not define
    actionPerformed(java.awt.event.ActionEvent) in glay2
    public class glay2 extends
    ^
    Applet implements ActionListener
    what does this mean?

    below is my codes...
    I dun really understand what your are saying.
    i got my actionperformed right there? ^^;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    public class glay2 extends Applet implements ActionListener
    // buttons
    Button button1, button2, button3, button4, buttonpress,
    dsp1, dsp2, dsp3, dsp4,
    eable1, eable2, eable3, eable4,
    dable1, dable2, dable3, dable4;
    // texts
    TextField textfield1, pr1, pr2, pr3, pr4;
    // labels
    Label label1, label2, label3, label4, title;
    boolean in1 = true, out1 = false, can1 = false,
    dis1 = false, in2 = true, out2 = false, can2 = false,
    dis2 = false, in3 = true, out3 = false, can3 = false,
    dis3 = false, in4 = true, out4 = false, can4 = false,
    dis4 = false;
    int pump1[] = {0, 0, 10},
    pump2[] = {0, 0, 10},
    pump3[] = {0, 0, 10},
    pump4[] = {0, 0, 10};
    String state1 = "init",
    state2 = "init",
    state3 = "init",
    state4 = "init";
    String menu1[] = {"State: ", "Litres: ", "Price: "},
    menu2[] = {"State: ", "Litres: "},
    menu3[] = {"State: ", "Litres: "},
    menu4[] = {"State: ", "Litres: "};
    public void init(){
    // west panel
    button1 = new Button("0.01");
    dsp1 = new Button("Dsp 1");
    button2 = new Button("0.02");
    dsp2 = new Button("Dsp 2");
    button3 = new Button("0.03");
    dsp3 = new Button("Dsp 3");
    button4 = new Button("0.04");
    dsp4 = new Button("Dsp 4");
    // east panel
    eable1 = new Button("Enable 1");
    dable1 = new Button("Disable 1");
    eable2 = new Button("Enable 2");
    dable2 = new Button("Disable 2");
    eable3 = new Button("Enable 3");
    dable3 = new Button("Disable 3");
    eable4 = new Button("Enable 4");
    dable4 = new Button("Disable 4");
    // south panel
    buttonpress = new Button("Set Fuel Price(p)");
    textfield1 = new TextField(" ");
    // north panel
    title = new Label("Jeanifer and Yew Leng's Petrol Station");
    // set color for buttons
    button1.setBackground(Color.red);
    button2.setBackground(Color.red);
    button3.setBackground(Color.red);
    button4.setBackground(Color.red);
    // set color for dsp
    dsp1.setBackground(Color.yellow);
    dsp2.setBackground(Color.yellow);
    dsp3.setBackground(Color.yellow);
    dsp4.setBackground(Color.yellow);
    // set color for eable
    eable1.setBackground(Color.green);
    eable2.setBackground(Color.green);
    eable3.setBackground(Color.green);
    eable4.setBackground(Color.green);
    // set color for dable
    dable1.setBackground(Color.blue);
    dable1.setForeground(Color.white);
    dable2.setBackground(Color.blue);
    dable2.setForeground(Color.white);
    dable3.setBackground(Color.blue);
    dable3.setForeground(Color.white);
    dable4.setBackground(Color.blue);
    dable4.setForeground(Color.white);
    // define panel
    Panel pn = new Panel();
    Panel ps = new Panel();
    Panel pw = new Panel();
    Panel pe = new Panel();
    Panel pc = new Panel();
    // layout
    setLayout(new BorderLayout());
    setBackground(Color.lightGray);
    // adding grid for west panel
    pw.setLayout(new GridLayout(4,2));
    pw.add(button1);
    pw.add(dsp1);
    pw.add(button2);
    pw.add(dsp2);
    pw.add(button3);
    pw.add(dsp3);
    pw.add(button4);
    pw.add(dsp4);
    // adding grid for east panel
    pe.setLayout(new GridLayout(4,2));
    pe.add(eable1);
    pe.add(dable1);
    pe.add(eable2);
    pe.add(dable2);
    pe.add(eable3);
    pe.add(dable3);
    pe.add(eable4);
    pe.add(dable4);
    // place button on south panel
    ps.add(buttonpress);
    ps.add(textfield1);
    //place label on north panel
    pn.add(title);
    // adding panel
    add("North", pn);
    add("West", pw);
    add("East",pe);
    add("South", ps);
    add("Center", pc);
    // button action
    button1.addActionListener(this);
    button2.addActionListener(this);
    button3.addActionListener(this);
    button4.addActionListener(this);
    buttonpress.addActionListener(this);
    //dsp action
    dsp1.addActionListener(this);
    dsp2.addActionListener(this);
    dsp3.addActionListener(this);
    dsp4.addActionListener(this);
    //enable action
    eable1.addActionListener(this);
    eable2.addActionListener(this);
    eable3.addActionListener(this);
    eable4.addActionListener(this);
    // color in box for each decision
    public void paint(Graphics g)
    if (in1)
    g.setColor(Color.red);
    else if(out1)
    g.setColor(Color.orange);
    else if(can1)
    g.setColor(Color.green);
    else if(dis1)
    g.setColor(Color.blue);
    g.fillRect(150, 50, 100, 150);
    g.setColor(Color.yellow);
    g.fillRect(170, 50, 80, 125);
    g.setColor(Color.black);
    g.setFont(new Font ("Arial", Font.PLAIN, 12));
    g.drawString(menu1[0] + state1, 150, 50);
         for (int i = 1; i < 4; i++)
         g.drawString(menu1[i] + pump1[i-1], 140, 100 + (i - 1) * 32);
         g.drawString("Pump 1", 140, 120);
    //action ae
    public void ActionPerformed(ActionEvent e)
    if (e.getSource() == button1)
         if ( in1 == true )
                             out1 = true;
                             in1 = false;
                             can1 = false;
                             dis1 = false;
                             state1= "On";
         else
                             out1 = false;
                             in1 = true;
                             can1 = false;
                             dis1 = false;
                             state1= "Off";
    else if ((e.getSource() == dsp1) && (can1== true))
         pump1[0]++;
         pump1[1] = pump1[2];
         state1= "pumping";
    else if ((e.getSource() == eable1) && (in1 = true))
         in1 = false;
         out1 = true;
         can1 = true;
         dis1 = false;
         state1= "Enabled";
    else if ((e.getSource() == dable1) && ( can1 = true))
         in1 = false;
         out1 = false;
         can1= false;
         dis1 = true;
         state1= "Disabled";
    else if ((e.getSource() == buttonpress) && (in1 = true))
         pump1[2] = Integer.parseInt(pr1.getText());
         repaint();               

  • Error:EntityObjectImplementation should be declared abstract

    Hi,
    i hav got this error please help me to resolve this.......
    Error(11,8): class newImplement.oracle.apps.ak.hello.server.newImplEOImpl should be declared abstract; it does not define method setLastUpdateLogin(oracle.jbo.domain.Number) in class oracle.apps.fnd.framework.server.OAEntityImpl
    public class newImplEOImpl extends OAEntityImpl -------------error line
    protected static final int NAME = 0;
    protected static final int GENDER = 1;
    Edited by: 945985 on Sep 10, 2012 11:32 PM

    i have created some fields like name , roll number, std. all r user editable Text input fields.
    if i enter data into these fields it should be displayed in table.
    i have created EO and added who col attributes into EO, with reference to EO created VO but i have not select who col attributes in VO,
    and with reference to VO created table .
    table is on another page as it vl be displayed once i press submit button.
    Edited by: 945985 on Sep 11, 2012 2:31 AM

  • Error: 'alpm_db_register_local' was not declared in this scope

    This is why I wish there was an actual API reference for ALPM instead of forcing developers to fend for themselves in a near-undocumented mess of a library.
    That said, I need some help. I have the correct #includes in my code:
    #include <alpm.h>
    #include <alpm_list.h>
    But apparently the compiler can't see what is supposed to be provided by the very first (I think?) header. My source is simple right now since I've mostly just begun my project:
    #include <alpm.h>
    #include <alpm_list.h>
    #include "../function/pacman.h"
    bool initALPM()
    if(alpm_initialize()<0)
    return false;
    alpm_option_set_dbpath("/var/lib/pacman");
    db = alpm_db_register_local();
    return true;
    bool releaseALPM()
    if(alpm_release()<0)
    return false;
    return true;
    std::vector<std::string> getPackageList()
    std::vector<pmdb_t*> sync;
    pmdb_t* local;
    std::vector<std::string> packs;
    return packs;
    Any idea what I'm doing wrong in this? For all I can figure, I *should not* be having troubles with my compiler finding that function.
    Also, any hint as to how I could get a list of "sync" databases?

    If you were still able to find that function, you'd be using pacman 3.4. alpm_db_register_local was removed for 3.5.0. If you read the patch notes, you'll see that alpm_initialize() takes care of that for you. I'm also not sure how well alpm will play with c++ since it doesn't have the extern "C" decl in the header...
    By default, no syncs are registered. pacman parses its own config file and registers the DBs it finds declared there with alpm. An example in C...
    #include <stdio.h>
    #include <alpm.h>
    static const char *trees[] = {
    "testing",
    "core",
    "extra",
    "community",
    NULL
    int main(void) {
    const char **tree;
    pmdb_t *local;
    alpm_list_t *i;
    /* initialize -- this registers localdb for you */
    alpm_initialize();
    /* barebones setup */
    alpm_option_set_root("/");
    alpm_option_set_dbpath("/var/lib/pacman");
    /* register syncs */
    for (tree = trees; *tree; tree++) {
    alpm_db_register_sync(*tree);
    /* iterate over registered syncs */
    printf("--- sync DBs -----------------\n");
    for (i = alpm_option_get_syncdbs(); i; i = alpm_list_next(i)) {
    pmdb_t *sync = alpm_list_getdata(i);
    printf("%s\n", alpm_db_get_name(sync));
    putchar('\n');
    /* iterate over local database */
    printf("--- local packages -----------\n");
    local = alpm_option_get_localdb();
    for (i = alpm_db_get_pkgcache(local); i; i = alpm_list_next(i)) {
    pmpkg_t *pkg = alpm_list_getdata(i);
    printf("%s\n", alpm_pkg_get_name(pkg));
    putchar('\n');
    /* cleanup */
    alpm_release();
    return 0;
    Last edited by falconindy (2011-04-10 03:08:29)

  • Passing record type into function [error: identifier must be declared]

    Hi,
    I have a record type defined in my procedure
    type chk_tab is record(
    effect date,
    count number(9)
    type chk_typ is table of chk_tab index by binary integer;
    chk_typ_rec chk_typ;
    I have to pass the effect and count into another function, i tried doin as below:
    function name: func_chk_typ
    func_chk_typ(effect, count);
    this returns an saying "identifier effect needs to be declared"
    I am required to pass these values from the record type into the function, How can i over come this??
    Any help is very much appreciated.

    Hi Hemz,
    Find below code.
    Function Code:
    CREATE OR REPLACE FUNCTION fetch_band(eff in date,ineff in date)
    return number
    is
      lu_cb_sysid  NUMBER;
    BEGIN
    select fk_cb_sysid
    into lu_cb_sysid
    from ia_for_icon
    where cr_ans_date >= eff
    and cr_ans_date < ineff;
    RETURN lu_cb_sysid;
    END fetch_band;Procedure code. Here I have embedded the function.
    CREATE OR REPLACE procedure abc(a varchar, b number) is
      type cns_tab_record is record(
        eff   date,
        ineff date);
      type cns_tab_typ is table of cns_tab_record index by binary_integer;
      cns_tab cns_tab_typ;
      v_lu_cb_sysid NUMBER;
    BEGIN 
      -- Here you have to assign the values to your table type record.
      -- For example I am passing two values SYSDATE and SYSDATE - 10
      cns_tab(1).eff := SYSDATE;
      cns_tab(1).ineff := SYSDATE - 10;
      v_lu_cb_sysid:= fetch_band(cns_tab(1).eff, cns_tab(1).ineff);
    END abc;But I am just wondering why you are using table type datatype here.
    Hope above code will help you.
    Thanks,
    Suri

  • Givin an error-TEMP_REC_CUR' must be declared

    declare
    v_temp_med_tab temp_med_tab;
    cursor tem_rec_cur ---------------HAVE DECLARED A CURSOR HERE
    is select * from temp_records_med;
    begin
    open temp_rec_cur;
    fetch temp_rec_cur bulk collect into v_temp_med_tab;
    dbms_output.put_line('shikha');
    close temp_rec_cur;
    end;

    try to declare variable like below
    declare
    cursor temp_rec_cur ---------------HAVE DECLARED A CURSOR HERE
    is select * from your_table_name;
    type temp_med_tab is table of temp_rec_cur%rowtype; -- declare like this
    v_temp_med_tab temp_med_tab;
    begin
    open temp_rec_cur;
    fetch temp_rec_cur bulk collect into v_temp_med_tab;
    dbms_output.put_line('shikha');
    close temp_rec_cur;
    end;

  • Error 307: Too many declarations of "DECODE" match this call

    Hi,
    I'm unable to figure out the problem here with the DECODE thing...
    My code as follows:
    SELECT :KEYBLCK_JOB,
              :ONE_UP_NO,
               GJBPDFT_NUMBER,
               SYSDATE,
          DECODE(GJBPDFT_VALUE, 'SYSDATE', DECODE(GJBPDEF_LENGTH,
                 '11',TO_CHAR(SYSDATE,'DD-MON-YYYY'), SYSDATE),
          GJBPDFT_VALUE)
       FROM   GJBPDFT G, GJBPDEF

    You are using CHARACTER and DATE values at the same time in a DECODE:
    TO_CHAR(SYSDATE,'DD-MON-YYYY')
    or
    SYSDATE
    (and probably also NUMBER values for GJBPDEF_LENGTH?)
    This may garble things up.
    Edited by: InoL on Mar 15, 2011 3:30 PM

  • Error declarations for error reporting to the Client

    Hi,
    I am trying to standardize the error reporting from PL/SQL for our project.
    I created a package to define these errors and want to declare them as constants.
    Unfortunately i'm running into some restrictions.
    Option1:
    Declare the ErrCd as a constant (-20000 To -20999) and then use an associative array with the ErrCd as index and the text as the value.
    Option 2:
    Declare a Record type with the ErrCd and ErrText as fields. Associate the errormessage with a position eg errIdx := 1; This will then be the position in the nested table. The procedures will then reference the correct errorRec through the ErrIdx.
    The problem is that i want to do all this in the package spec. I don't want to work through a function to first build up the table and then return the correct error record etc.
    I cannot build the associative array in the declaration since it doesn't have a constructor.
    Nested tables seemed like the one to use since i could build up its content through its constructor. But i cannot construct the errRecord in a similar way.
    SUBTYPE ErrIdxType    IS INTEGER;
      SUBTYPE ErrCdType     IS INTEGER;
      SUBTYPE ErrTxtType    IS VARCHAR2(300);
      ERR_CD_BASE           CONSTANT ErrCdType := -19999;
      ERR_CD_MAX            CONSTANT ErrCdType := -20999;
      TYPE ERR_REC IS RECORD
        errCd   ErrCdType,
        errTxt  ErrTxtType
    -- Error 1 tester
      ERR_ERR1_IDX        CONSTANT ErrIdxType := 1;
      ERR_ERR1_CD         CONSTANT ErrCdType  := ERR_CD_BASE - ERR_ERR1_IDX;
      ERR_ERR1_TXT        CONSTANT ErrTxtType := 'Error ERR1 occured.';
      -- Error 2 tester
      ERR_ERR2_IDX        CONSTANT ErrIdxType := 2;
      ERR_ERR2_CD         CONSTANT ErrCdType  := ERR_CD_BASE - ERR_ERR2_IDX;
      ERR_ERR2_TXT        CONSTANT ErrTxtType := 'Error ERR2 occured.';
      TYPE ErrTableType IS TABLE OF ERR_REC;
    errTable ErrTableType :=
        ErrTableType
          ERR_REC(ERR_ERR1_CD, ERR_ERR1_TXT),
          ERR_REC(ERR_ERR2_CD, ERR_ERR2_TXT)
        );I suppose the java still has a strong grip on me here.
    What is the correct way to manage these error definitions?
    Since i am trying to establish the error/exception handling strategy for the project i would also greatly appreciate a couple of pointers to examples/packages/docs on the error /exception reporting mechanisms available.
    Thanks
    Buks

    That looks like data to me. Now if only PL/SQL had some kind of a database that came with it so you put that data in a table ;)
    Error messages change and so are not good candidates for constants. What you could find useful to declare in a package is some exceptions. You will find more about them in the PL/SQL Guide.
    You should also check this series of Oracle Magazine articles written by Steven Feuerstein (Whom God Preserve).
    Cheers, APC

Maybe you are looking for

  • BP Changes From CRM to R/3

    Hi everyone, We performed an initial download from R/3 to CRM. Delta changes are working fine. Changes in R/3 are coming to CRM. Our problem: we don't want any changes to be transferred from CRM to R/3, which sometimes cause inconsistencies. How can

  • Flat File Destination Multiple Delimiters

    Hi Guys, This might been an easy one for you. I need to find out if the data from a table can be loaded into a text file with multiple delimiters or not using SSIS? For example, if I have 2 columns of data from a table, ID Name 100 Mark I need to loa

  • I have two textframes on one page. But when iterating using everyitem() it picks second prior to first?

    Hi Expert's I have two textframes on one page. But when iterating using everyitem() it picks second prior to first? var ObjDoc = app.activeDocument; var LstPara = ObjDoc.pages.everyItem().textFrames.everyItem().paragraphs.everyItem().getElements(); f

  • Installing CR11R2SP5 runtime on alternative location doesn't seem to work

    Hi there, I've made a msi using the 5.2 RDC merge modules and now i'm trying to install it on G:\Program Files. Unfortunatly it keeps installing itself on the C-drive (C:\Program Files\Business Objects\..). I'm kicking off the msi using a batchfile w

  • Images Not Showing Unless Clicked

    I would like to switch to firefox due to chrome not showing unicode symbols properly. but on firefox for most of the images i get this http://i1252.photobucket.com/albums/hh567/NeonFirecracker/Edits/firefox_zpsdfccbc44.png i have to click that stupid