Strange error "Invalid column name 'not applicable'

When I am trying this piece of code on Solaris 10 having sybase ASE 12.5 installed :
ResultSet rs = stmt.executeQuery("sp_helpdb master");
while(rs.next()){
System.out.println(rs.getString(1));
I am getting the following error:
Invalid column name 'not applicable'
This query returns multiple result sets.
I am able to print all values in the first result set only.
Its failing in rs.next();
I am using jConnect 5.2 driver.
The same query is executing fine on Solaris 8 having ASE 12.0 installed.
If i use :
ResultSet rs = stmt.executeQuery("sp_helpdb master");
then there is no problem in Solaris 10
Plz help me.
Its urgent

You need to use execute() not executeQuery() in the scenario below and use the multi-result set logic
If you are using jConnect, see the samples for an example.

Similar Messages

  • Error "Invalid Column Name tp_level" when open restored web app

    Hi,
    I have a web application in development environment and it works fine when I try to restore the web application to the staging or production environment it is restored successfully but when I open the web application I got an error "Invalid column name
    tp_level"
    I don't know why this issue occurred. Do anyone knows what is the reason and how to solve it.
    Thank you.
    Ehab

    tp_level is an internal column of a content database. Can you check permissions on a restored content database for an account used for web app pool running?
    If it will not help, I offer you to create web application in staging/production and then make a copy of a content database from development enviroment and attach it to a newly created web app.

  • Error - invalid column name

    Using Oracle Driver 9.0
    Why?
    Error:
    [ C:9031454; S:2112561; T:8185063; D:20/11/02 15:25 ] INSERT INTO
    BP_ENTRADA(IN_SIMPAS, CD_ORGAO, CD_VERSAO, CD_CONTRATO, CD_TP_BEM,
    CD_TP_FORMA_OP, CD_TP_OPERACAO, DT_INCLUSAO, DT_AQUISICAO, CD_AGENTE,
    DT_CONTABIL, CD_UG, CD_ENTRADA) VALUES ('N', '001', 0, NULL, '01', '03',
    '01', {ts '2002-11-20 15:25:03.326'}, {ts '2002-11-20 15:25:03.326'},
    '000002', NULL, '000001', '0000000006')
    [ C:9031454; T:8185063; D:20/11/02 15:25 ] roll back data store transaction
    com.linkdata.infra.persistence.PersistenceException:
    javax.jdo.JDOFatalDataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO
    BP_ENTRADA(IN_SIMPAS, CD_ORGAO, CD_VERSAO, CD_CONTRATO, CD_TP_BEM,
    CD_TP_FORMA_OP, CD_TP_OPERACAO, DT_INCLUSAO, DT_AQUISICAO, CD_AGENTE,
    DT_CONTABIL, CD_UG, CD_ENTRADA) VALUES ('N', '001', 0, NULL, '01', '03',
    '01', {ts '2002-11-20 15:25:03.326'}, {ts '2002-11-20 15:25:03.326'},
    '000002', NULL, '000001', '0000000006')] ORA-00904: invalid column name
    [code=904;state=42000]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO
    BP_ENTRADA(IN_SIMPAS, CD_ORGAO, CD_VERSAO, CD_CONTRATO, CD_TP_BEM,
    CD_TP_FORMA_OP, CD_TP_OPERACAO, DT_INCLUSAO, DT_AQUISICAO, CD_AGENTE,
    DT_CONTABIL, CD_UG, CD_ENTRADA) VALUES ('N', '001', 0, NULL, '01', '03',
    '01', {ts '2002-11-20 15:25:03.326'}, {ts '2002-11-20 15:25:03.326'},
    '000002', NULL, '000001', '0000000006')] ORA-00904: invalid column name
    at
    com.linkdata.infra.persistence.jdo.PersistenceMediatorImpl.commitTransaction(PersistenceMediatorImpl.java:116)
    at
    com.linkdata.patrimonio.TestePatrimonio.insert(TestePatrimonio.java:109)
    at
    com.linkdata.patrimonio.TestePatrimonio.main(TestePatrimonio.java:23)
    Caused by: javax.jdo.JDOFatalDataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO
    BP_ENTRADA(IN_SIMPAS, CD_ORGAO, CD_VERSAO, CD_CONTRATO, CD_TP_BEM,
    CD_TP_FORMA_OP, CD_TP_OPERACAO, DT_INCLUSAO, DT_AQUISICAO, CD_AGENTE,
    DT_CONTABIL, CD_UG, CD_ENTRADA) VALUES ('N', '001', 0, NULL, '01', '03',
    '01', {ts '2002-11-20 15:25:03.326'}, {ts '2002-11-20 15:25:03.326'},
    '000002', NULL, '000001', '0000000006')] ORA-00904: invalid column name
    [code=904;state=42000]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=INSERT INTO
    BP_ENTRADA(IN_SIMPAS, CD_ORGAO, CD_VERSAO, CD_CONTRATO, CD_TP_BEM,
    CD_TP_FORMA_OP, CD_TP_OPERACAO, DT_INCLUSAO, DT_AQUISICAO, CD_AGENTE,
    DT_CONTABIL, CD_UG, CD_ENTRADA) VALUES ('N', '001', 0, NULL, '01', '03',
    '01', {ts '2002-11-20 15:25:03.326'}, {ts '2002-11-20 15:25:03.326'},
    '000002', NULL, '000001', '0000000006')] ORA-00904: invalid column name
    at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLExceptions.java:17)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.insert(JDBCStoreManager.java:421)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.insert(StateManagerImpl.java:1783)
    at com.solarmetric.kodo.runtime.PNewState.flush(PNewState.java:31)
    at
    com.solarmetric.kodo.runtime.StateManagerImpl.flush(StateManagerImpl.java:372)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:426)
    at
    com.solarmetric.kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:295)
    at
    com.linkdata.infra.persistence.jdo.PersistenceMediatorImpl.commitTransaction(PersistenceMediatorImpl.java:112)
    ... 2 more

    tp_level is an internal column of a content database. Can you check permissions on a restored content database for an account used for web app pool running?
    If it will not help, I offer you to create web application in staging/production and then make a copy of a content database from development enviroment and attach it to a newly created web app.

  • Invalid column name error in jdbc please help!!!!!!!!! urgent!!!!!!!!!!!!!!!111

    when i run the following query i getbthe error invalid column name .My db oracle 8i,NT.
    rs8 = stmt2.executeQuery("select a.c_x12n_position_cd, a.c_x12n_sequence_cd, a.c_x12n_composite_id, " +
    "a.c_x12n_table_area_cd, a.c_x12n_requirement_cd, a.c_x12n_reference_designator, " +
                             "a.c_x12n_loop_level_nb, b.c_dg_type_code, b.c_dg_usage_cd, b.c_dg_max_occurrences_nb, " +
    "b.c_dg_min_occurrences_nb from T_x12n_supplement a, T_Data_Group_Format b, " +
    "T_Message_Node_Directory c " +
                             "where (a.c_dgc_ik = c.c_dgc_ik) " +
                             "and (a.c_dgc_ik = b.c_dgc_ik) " +
                             "and (a.c_dg_ik = c.c_dg_ik) " +
                             "and (a.c_dg_ik = b.c_dg_ik)");

    Run the query in SQL*Plus. It will give you more information about which column it doesn't like.

  • Invalid column name (with ojdbc)

    hi,
    I created a resultSet by executing query with more then one table in it. (left join)
    and now i want to getObject. so I execute resultSet.getObject("tablename.columnName")
    and I get this error "invalid column name".
    when i'm doing the same thing with MySQL it works fine.
    I don't want to do aliases for all the columns because there are too much of those.
    please help.
    thanks,
    asaf.

    that's not standard JDBC. You must use either the plain column name,
    or the column number. In cases where there are multiple columns with
    the same name you must use the column number for all but the first
    column with the same name.
    Joe Weinstein

  • Invalid column name: get_column_index

    Salam 2all
    please help me to solve this problem
    i have this error
    Invalid column name: get_column_index
    when i execute this code
    rs = stmt.executeQuery("Select EmpNo,Name,Degree,Occupation,DomainNo,Signature from Employee where EmpNo='"+cno+"'");
    if (rs.next())
         emp.setText(rs.getString("EmpNo"));
         name.setText(rs.getString("Name"));
         degree.setText(rs.getString("Degree"));
         occ.setText(rs.getString("Occupation"));
         int index=SearchIndex(Integer.parseInt(rs.getString("DomainNo")));                    dom.setSelectedIndex(index);
         domn.setText(rs.getString("Signature"));
    By tracing the code using System.out.println("BBBBBBBB");
    i reach that the error is in the statment
    {     domn.setText(rs.getString("Signature"));
    but the spelling for"Signature" is the same, and i write it in the oracle creation table as follow
    create table Employee(
    EmpNo varchar(40) NOT NULL,
    Name varchar(40) NOT NULL,
    Degree varchar(4),
    Occupation varchar(4),
    DomainNo varchar(4),
    Signature varchar(40),
    primary key(EmpNo ),
    foreign key(DomainNo) references Cycle);
    Thanks 4 ur help
    Salam 2all

    'Signature' doesn't seem to be a reserved word in Oracle.
    First, I would try entering this query from a query tool. That may provide some clues.
    Next, I would try changing the column name to 'Signaturexxx' and see if it fixes the problem.
    This may be a bug in the driver.

  • Invalid Column name 'fill_factor'

    converting from sybase 11.5 to Oracle 9i.
    Using sybase 11.5 driver and the sybase 11 plugin.
    The load source model stops with an error : 'invalid column name 'fill_factor'.
    This occurs just at the point where it says 'capturing .. SYSPROCEDURES'
    How can I get around this??
    Please email me at : [email protected]
    Thanks.

    Hi,
    Even I am getting the same error when trying to see the table structure in sybase from SSMA tool. 
    Sybase Server Object Collector error: table : EFTArchive_bk2
         Invalid column name 'fill_factor'.
         Error occurred while loading content.
    I am not sure how to fix this. 
    This answer doesn't help me. "In SQL Server 2005 the fill_factor is spelled as FILLFACTOR." As I am
    getting this error sybase database itself.  
    I am using SSMA to migrate data from sybase to sql. when I select the tables in sybase, I am getting
    above error. (Invalid column name "fill_factor") 
    Could some please help me how to fix this error?

  • Invalid column name when executing explain plan

    SQL Developer version 4.0, SQL Worksheet, Windows 2000, Database 9.2.0.6.
    When attempted to run a explain plan on a simple two table join query, it generates error invalid column name. Removed aliases and simplify query to one table row count, and still get the same error. Even tried the schema owner and got the same error.
    I decided to check the explain plan table and found out that it was from an older version. Recreated the explain plan table and was able to run the explain plan.
    I'm just posting this in the event somebody else runs into the same problem.

    This was fixed in the 4.1 or 1215 build. Please update by downloading or check for updates.
    -thanks
    kris

  • Dimension processing failure - Invalid Column Name

    Hello
    I have copied our Account Dimension from Prod to Dev because we are testing 7.5MS.
    I have Maintained Properties and modified dimension successfully.
    But when I process i get the foll error :
      - OLE DB error: OLE DB or ODBC error: Invalid column name 'ID13'.; 42S22; Invalid column name 'SEQ13'.; 42S22; Invalid column name 'YE_REF13'.; 42S22; Invalid column name 'SOLVEORDER13'.; 42S22; Invalid column name INPUT_SCHEDULE13'.; 42S22; Invalid column name 'ICMATCH13'.; 42S22; Invalid column name 'IC_SMRY13'.; 42S22; Invalid column name 'FORMULA13'.; 42S22; Invalid column name 'DRILLKEY13'.; 42S22; Invalid column name 'ALTECHUNUSED13'.; 42S22; Invalid column name 'ALTECHUNUSED12'.; 42S22; Invalid column name 'ALTECHUNUSED11'.; 42S22; Invalid column name 'ALTECHUNUSED10'.; 42S22; Invalid column name 'ALTECHUNUSED9'.; 42S22; Invalid column name 'ALTECHUNUSED8'.; 42S22; Invalid column name 'ALTECHUNUSED7'.; 42S22; Invalid column name 'ALTECHUNUSED6'.; 42S22; Invalid column name 'ALTECHUNUSED5'.; 42S22;
    Invalid column name 'ALTECHUNUSED4'.; 42S22; Invalid column name 'ALTECHUNUSED3'.; 42S22; Invalid column name 'ALTECHUNUSED2'.; 42S22;
    Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'AppSet', Name of 'Account' was being processed.
    Server: The operation has been cancelled.
    When I changed everything thing back to the old dimension it all works fine again.
    Any help please?
    Rgds
    Perven
    Edited by: Pervendren Naidoo on Jul 29, 2010 11:18 AM
    Edited by: Pervendren Naidoo on Jul 29, 2010 11:18 AM

    It seems to be something wrong into your dimension.
    Check the member 42S22 especially regarding hiereachy.
    Regards
    Sorin Radulescu

  • Use of NOT IN leads to an invalid column name error

    The query works just fine when placed directly into sql plus
    The query works, called from a Java using an Oracle Statement, ONLY IF I remove the NOT.
    However, with NOT it chokes, and gives me this:
    selQ=select lenum, zeugn from stock_rpt where lenum NOT in ('X12345', 'X23456')
    Could Select or Read Selected data
    java.sql.SQLException: Invalid column name
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
    at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3319)
    at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:1926)
    at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1515)
    at ecspack.StockRpt.selRecsByQ(StockRpt.java:172)
    at ecspack.StockRpt.selByDiff(StockRpt.java:261)
    at teste.main(teste.java:40)
    The column does have an index.
    The above is my simplified test query, I am using to narrow down the problem.
    SelQ is the value of the Select String.
    Really I want to do something like this:
    select x1, x2 from tableX where x1 NOT IN (select y1 from tableY)
    I know I can just compare records one at a time, but I would rather not, if there is a way to make NOT IN work.
    Thank you

    Hi Eileen Keeney ,
    may be you can use prepared statement but beware of sql injection
    selQ=select lenum, zeugn from stock_rpt where lenum NOT in ('X12345', 'X23456')
    Try :
    selQ=select lenum, zeugn from stock_rpt where lenum NOT in (?, ?)
    Then try running it with this fixed parameter binding:
    prest.setString(1, "X12345");
    prest.setString(2, "X23456");

  • Invalid column name error

    Having an interesting problem with a site I'm fixing. I'm
    sure I'm looking past the obvious, so maybe some of you can help:
    ASP Pages display results from recordset based on a session
    variable (memberID) that is created during user login.
    Recordset looks like this:
    <%
    Dim rs__MMColParam
    rs__MMColParam = "%"
    If (Session("memberID") <> "") Then
    rs__MMColParam = Session("memberID")
    End If
    %>
    <%
    set rs = Server.CreateObject("ADODB.Recordset")
    rs.ActiveConnection = MM_cnConnection_STRING
    rs.Source = "SELECT id, adminusername, anotherone1,
    anotherone2, anotherone3 FROM dbo.basic1 WHERE adminusername = '" +
    Replace(rs__MMColParam, "'", "''") + "'"
    rs.CursorType = 0
    rs.CursorLocation = 2
    rs.LockType = 3
    rs.Open()
    rs_numRows = 0
    %>
    Seems correct to me, unles I'm overlooking something obvious.
    Unfortunately I keep getting the following error:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column
    name 'SESSIONVAR'.
    (Note: in this error above, SESSIONVAR is the name of the
    session variable memberID)
    Strange thing is, as long as the session variable is a #,
    everything works. If it's a word, it won't work. So it appears the
    session variables are being defined and passed to the next page.
    As for the database, it's a SQL Database
    column 'adminusername' is a NVARCHAR with a 4000 char limit
    Thanks in advance for any help.

    Are you sure the query is the same? It looks like the one you posted has a syntax error
    SELECT e.emp_id, e.dep_id
      FROM emp e, loc ct, dep dt
    WHERE[b] c.dep_id[/b] IN (SELECT dt.dep_idYou've aliased the LOC table to CT in the FROM clause, but you're using the alias C in the WHERE clause. You use the correct alias CT in the query in your IN clause.
    Justin

  • After 8.8 Upgrade Invalid Column Name error on UDF in Sales Order

    I have upgraded a dtaabase from 2005A to 8.8 SP00 PL15.
    I encountered a UDF/UDT warning (Note 1360832) in the Pre-Upgrade CHeck but proceeded in any case.
    After the upgrade as soon as I enter the BP in a Sales Order, I get the following error.
    [Microsoft] [SQL Server Native Client 10.0] [SQL Server] [Invalid Column Name U_CampPB1.2)
    [Microsoft] [SQL Server Native Client 10.0] [SQL Server] Statement 'Withholding Tax'  (OWHT) could not be prepared.
    This UDF was one of many reported in the Upgrade Wizard Log File as having an incorrect Type.
    " Type is different; Should be A, Is M".
    There are hundreds of instances of this message in the log.
    I don't know whether the error is related to the Type is different warning.
    I don't get the error when I add an AR Invoice.
    In addition I cannot find any documentation on the different UDF Type codes.

    Hi,
    should you have any errors before or after upgrade, log a message to a support. That's the best solution.
    JimM

  • Invalid Column Name Error : JDBC Driver 9.2.* accessing Oracle 7.3.*

    We are migrating a web app from JDK 1.2 environment to a JDK 1.5 server enviroment. Previously the web app used the classes12.zip package, now we are using ojdbc14.jar for the new server environment.
    Now this particular app uses Oracle7 Server Release 7.3.3.6.0. to retrieve data. I would run a query and get the result set explicitly using the column name.
    sql_query = " SELECT DISTINCT(INSIDE_SALES_TEAM_NAME) AS D_INSIDE_SALES_TEAM_NAME FROM AGED_INVENTORY" ;
    rset.getString("D_INSIDE_SALES_TEAM_NAME");
    However, after migration to ojdc14.jar (using Oracle JDBC driver 9.2.0.8.0) I can't retrieve the resultset in the above-mentioned fashion. I will always get
    java.sql.SQLException: Invalid column name
    If I use the following, then I do not get any error in retrieving data from the resultset.
    rset.getString(1);
    Any cause for this scenario?
    Thanks,
    TA

    Yes of course. I just the posted code snippet. This code used to work in old web server environment. Now we have to modify the resultset line to make it work when using ojdc14.jar.

  • Oracle Invalid Column Name Error in JSP

    I was wondering if anyone could provide some help. I am new to JSP, Beans and Oracle and I am getting a java.sql.SQLException: ORA-00904: invalid column name error when I run the JSP below. The Java Bean's code it is referencing is also included and this bean is just storing information from the server from a previous login page.
    Eventually I need to display more columns from the database using this JSP, but since I can even get this one working, I am at a loss!
    PLEASE HELP!!!!
    I have even tried to replace the beans reference in the sql with just a login and password I know exists in the database! Same error... Help!
    I am running Tomcat and Oracle 9i!
    <!--
    Assign-->
    <html>
    <head>
    <title>Student Signon on page</title>
    </head>
    <body bgcolor="#FDF5E6">
    <h1 align="center">>Student Signon on page</h1>
    <%@ page import="java.sql.*" %>
    <%@ page import="BeanAs2.Bean5b" %>
    <%
    String driverClassString = "oracle.jdbc.driver.OracleDriver";
    String driverConnectString;
    driverConnectString = "jdbc:oracle:thin:@midas2:1521:globaldb";
    String user = "system";
    String passwd = "manager";
    %>
    <jsp:useBean id="Bean5b" class="BeanAs2.Bean5b" />
    <jsp getProperty id = "Bean5b" property = "login" />
    <jsp getProperty id = "Bean5b" property = "pswd" />
    <%
    Connection connection = null;
    try {
    Class.forName(driverClassString);
    connection = DriverManager.getConnection(driverConnectString, user, passwd);
    catch (Exception e) {
    out.println("Cannot close connect to database!"+e);
    if (connection != null) {
    String login =Bean5b.getpassword();
    String pswd =Bean5b.getStudentlogin();
    String sql = "SELECT studentinfo.familyname FROM STUDENTINFO WHERE studentinfo.username='login' AND studentinfo.password='pswd';";
    try { // execute the query
    //SELECT studentinfo.familyname FROM STUDENTINFO WHERE studentinfo.username='s40079703' AND studentinfo.password='p4007swd'
    Statement stmt = connection.createStatement();
    ResultSet rst;
    rst = stmt.executeQuery(sql);
    // Fetch the query result, and dispaly them in a table
    while (rst.next()) {
    %>
    <tr>
    <td> <%= rst.getString("system.teaching.code") %> </td>
    </tr>
    <%
    stmt.close();
    connection.close();
    } catch(Exception e) {
         out.println("Cannot fetch data from database!"+e);
    %>
    </body></html>
    package BeanAs2;
    import java.util.*;
    public class Bean5b {
         // all variables must not be public in a bean
    private String Studentlogin;
    private String password;
    public String getStudentlogin() {
    return this.Studentlogin;
    public String getpassword() {
    return this.password;
         public void setStudentlogin(String login) {
              this.Studentlogin = login;
         public void setpassword(String pswd) {
              this.password = pswd;

    Hi
    Thanks for your reply, I should of looked at my code before I copied over. The field should of been "studentinfo.familyname" which I was calling, I have just been changing so much code in this to try and see what the problem is, I didnt fix this before I copied this over.... trust me, I have tried everything........ Hence when I correctly called the "concatination the login name and password to the query properly" as you pointed out, I got rid of the error, BUT now it returning NO DATA????? (the table is populated - I have checked this!!!!)
    The table I am trying to get information from sits under a schema called system. It has the following columns;
    STUDENTID NUMBER 8
    FAMILYNAME VARHCAR 60
    GIVENNAME VARCHAR 60
    USERNAME VARCHAR 9
    PASSWORD VHARCHAR 60
    The database is called globaldb. My computer is called Midas2
    Whats more, the query works in Oracle sql*plus!!! Returning the relevent data!!!
    Actually here is the code for the JSP, with all the changes and none of the mistakes of my previous post...........,
    Pleaes help!!!
    <html>
    <head>
    <title>Student Signon on page</title>
    </head>
    <body bgcolor="#FDF5E6">
    <h1 align="center">>Student Signon on page</h1>
    <%@ page import="java.sql.*" %>
    <%@ page import="BeanAs2.Bean5b" %>
    <%
    String driverClassString = "oracle.jdbc.driver.OracleDriver";
    String driverConnectString;
    driverConnectString = "jdbc:oracle:thin:@midas2:1521:globaldb";
    String user = "system";
    String passwd = "manager";
    %>
    <jsp:useBean id="Bean5b" class="BeanAs2.Bean5b" />
    <jsp getProperty id = "Bean5b" property = "login" />
    <jsp getProperty id = "Bean5b" property = "pswd" />
    <%
    Connection connection = null;
    try {
    Class.forName(driverClassString);
    connection = DriverManager.getConnection(driverConnectString, user, passwd);
    catch (Exception e) {
    out.println("Cannot close connect to database!"+e);
    if (connection != null) {
    String login =Bean5b.getpassword();
    String pswd =Bean5b.getStudentlogin();
    String sqlQuery;
    sqlQuery = ("SELECT studentinfo.familyname FROM STUDENTINFO WHERE studentinfo.username='" + login + "' AND studentinfo.password='" + pswd + "'"); %>
    <% try { // execute the query
    Statement stmt = connection.createStatement();
    ResultSet rst;
    rst = stmt.executeQuery(sqlQuery);
    // Fetch the query result, and dispaly them in a table
    while (rst.next()) {
    %>
    <tr>
    <td> <%= rst.getString("studentinfo.familyname") %> </td>
    </tr>
    <%
    stmt.close();
    connection.close();
    } catch(Exception e) {
         out.println("Cannot fetch data from database!"+e);
    %>
    </body></html>

  • Invalid column name 'SKEY_VAL' Error when Populating a planning dimension

    I'm trying to populate a planning dimension from a view in MSSQL. I thought that I had mapped the all of the required columns in my interface in ODI, but I am getting the following error:
    207 : S0001 : com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'SKEY_VAL'.
    I can see in Operator that ODI is generating the following SQL
    select     
         LEFT(DIM_ACCOUNT.FLEX_VALUE,80)     as C1_ACCOUNT,
         DIM_ACCOUNT.PARENT_FLEX_VALUE     as C2_PARENT,
         LEFT(DIM_ACCOUNT.DESCRIPTION,80)     as C3_DESCRIPTION,
         LEFT(DIM_ACCOUNT.DESCRIPTION,80)     as C4_ALIAS__DEFAULT,
         SKEY_VAL
    from     DOT_STAGE.dbo.DIM_ACCOUNT_T_V as DIM_ACCOUNT
    where     (1=1)
    But I don't know why it is asking for the SKEY_VAL column or how I can map a value into this column when setting up the interface?
    I've read through the user guide and the getting started guide and I can't find any reference to this SKEY_VAL column.
    Does anyone know what causes this error and how I can fix it?

    1) No SKEY_VAL is not a variable.
    2) This is my first attempt at using ODI, I did not create the SQL. All I did was to create a reverse a model against my MSSQL staging database and create and reverse a model against the planning application. Then I created an interface for the Account dimension in planning mapped the account, parent and description columns from my SQL table to the Planning dimension and I get this error. There are no columns called SKEY_VAL in either the source or the target and I have not created any objects with this name in ODI. I can see that ODI is asking for this column when I execute the interface, but I don't know why.

Maybe you are looking for

  • Vendor listings by classification

    Hi all - we have about 60,000 vendors in our SAP environment - they've been setup with various classifications. Can anyone tell me the tcode to pull up a vendor listing by classification? Please let me know! Thanks

  • Sleepless in Ottawa

    Every few days my Macbook gets into a state where it will not go to sleep or shut down. Doesn't matter how I try to put it to sleep (apple menu, brief press of power button, or close the lid). It just keeps running though if I close the lid it does t

  • Putting files on the ipod

    I have had my ipod for a while now but I have not been able to get notes onto my ipod. I have a windows pc. I enabled disk use but I can't seem to get further than that. "Windows Explorer" If I find this then I will find my ipod icon. I don't have an

  • Cursor for loop vs bind variable efficiency

    PL/SQL I am going to need to execute many sqls within a cursor for loop. Note: This is pseudo pl/sql code for csr_rec in cursor loop insert into tablea select [whateever] from tableb where column_name = csr_rec.field versus execute immediate 'insert

  • Highlight Rows/Fields in Inetractive Report

    What is the best way to conditionally highlight rows/field in an Interactive Report? I don't want to create filters that the users can see/turn off