Missing database last column

Dear All ,
I am facing one problam . In this code in while loop i am getting all columns. but while i am trying to get out of the loop last column is missing. please can anybody rectify this problam.
public class DatabseFetching {
/ublic static void main(String[] args) throws SQLException, Exception {
DatabaseConnection con = new DatabaseConnection();
Connection connection = con.getConnection();
String SQL = "select * from t_mig_filenet_attach_error";
Statement stmt = connection.createStatement();
ResultSet resultObj = stmt.executeQuery(SQL);
String DatabaseAttachId=null;
while (resultObj.next()) {
DatabaseAttachId=resultObj.getString("attach_id");
System.out.println("Database attach id is:"+DatabaseAttachId);
System.out.println("test is:"+DatabaseAttachId*);// i want total columns here.... while i am trying to get last column missing here.*
}

Hi,
When i am running the above program then i am getting the following output.
***************************OUT PUT*****************************
*# Connected to Database: sun.jdbc.odbc.JdbcOdbcConnection@a62fc3*
Database attach id is:attacha
Database attach id is:attacha
Database attach id is:attacha
Database attach id is:attacha
Database attach id is:12345
Database attach id is:12345
test is:12345
Now i want that all the value of attach_id will be come in test is:
like following way.
test is:attacha
test is:attacha etc. like the same way in Databse attach id is:

Similar Messages

  • A special character in the last column in my external table

    Hello,
    I'v made a external table that looks like this :
    CREATE
    TABLE "REC_XLS"
    "FINANCE_DATE" VARCHAR2(50 BYTE),
    "CREATION_DATE" VARCHAR2(50 BYTE),
    "SENT_DATE" VARCHAR2(50 BYTE),
    "REMARKS" VARCHAR2(200 BYTE),
    "REMAINING_QUANTITY" VARCHAR2(30 BYTE),
    "CODE" VARCHAR2(30 BYTE)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER DEFAULT DIRECTORY "LOADER" ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline LOAD WHEN CODE!=BLANKS Skip 1 FIELDS
    TERMINATED BY 0X'09' MISSING FIELD VALUES ARE NULL REJECT ROWS
    WITH
    ALL NULL FIELDS ( Finance_date,
    creation_date, sent_date, Remarks,
    remaining_quantity, code) location ( 'Finance.tsv' )
    I exported the result in xls file and I saw in the last column a special character. The result of a copy and paste is prenseted here : "ABE
    You should notice that the last quote is in the upper line instead of at the end of ABE. This means, I think, that there is a carriage return at the end. And the 0X'09' is the tab separator. How can I get rid of this character ?

    my guess is that you run the load on unix server which uses default LF end-of-line character and the file has dos CRLF end-of-line, the easiest option is to change records delimiter in the DDL and replace "RECORDS DELIMITED BY newline" with code below
    RECORDS DELIMITED BY '\r\n'in general end-of-line can be really any character, sample above shows CRLF but it can be TAB, space, | or any other character or set of characters. I have samples of special characters on my blog http://jiri.wordpress.com/2009/01/29/oracle-external-tables-by-examples-part-1/
    hope this helps
    jiri

  • Ragged right with Flat file in SSIS for last column

    When I am importing from Flat file to OLEDB using DATA flow in SSIS,
    It has fixed length  for each column
    but last column had length of 20
    So I used for last column as {LF} and input width 0 & output width 20
    but facing problem of last column has showing more data in preview so I am missing some some records
    May I get any  solution
    Thanks

    Hi Madhu,
    I totally agree with Visakh. If your row delimiter is {CR}{LF}, you need to consider the two placeholders for the delimiter when defining the column length, that is to say you need to set the length of the last column to 22.
    Regards,
    Mike Yin
    TechNet Community Support

  • BUG JSF h:dataTable with JDBC ResultSet - only last column is updated

    I tried to create updatable h:dataTable tag with three h:inputText columns with JDBC ResultSet as data source. But what ever I did I have seceded to update only the last column in h:dataTable tag.
    My JSF page is:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.people}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>
    My java been is:
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getPeople() {
    return resultSet;
    I have instaled “Oracle Database 10g Express Edition Release 10.2.0.1.0” – product on my PC localy. I have enabled HR schema and I have instaled and pupulated with sample data folloving table:
    CREATE TABLE "PERSON"
    (     "PIN" VARCHAR2(20) NOT NULL ENABLE,
         "SURNAME" VARCHAR2(30),
         "NAME" VARCHAR2(30),
         CONSTRAINT "PERSON_PK" PRIMARY KEY ("PIN") ENABLE
    I have:
    Windows XP SP2
    Oracle JDeveloper Studio Edition Version 10.1.3.1.0.3894
    I am not shure why this works in that way, but I think that this is a BUG
    Thanks in advance.

    Hi,
    I am sorry because of formatting but while I am entering text looks fine but in preview it is all scrambled. I was looking on the Web for similar problems and I did not find anything similar. Its very simple sample and I could not believe that the problem is in SUN JSF library. I was thinking that problem is in some ResultSet parameter or in some specific Oracle implementation of JDBC thin driver. I did not try this sample on any other platform, database or programming tool. I am new in Java and JSF and I have some experience only with JDeveloper.
    Java been(session scope):
    package com.steva;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class tabela {
    private Connection conn;
    private ResultSet resultSet;
    public tabela() throws SQLException, ClassNotFoundException {
    Statement stmt;
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection
    ("jdbc:oracle:thin:@localhost:1521:xe", "hr", "hr");
    stmt = conn.createStatement
    (ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    resultSet = stmt.executeQuery("SELECT PIN, SURNAME, NAME FROM PERSON");
    public ResultSet getZaposleni() {
    return resultSet;
    JSF Page:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1250"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1250"/>
    <title>Stevan</title>
    </head>
    <body><h:form>
    <p>
    <h:messages/>
    </p>
    <p>
    <h:dataTable value="#{tabela.zaposleni}" var = "record">
    <h:column>
    <f:facet name="header">
    <h:outputText value="PIN"/>
    </f:facet>
    <h:inputText value="#{record.PIN}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Surname"/>
    </f:facet>
    <h:inputText value="#{record.SURNAME}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <h:inputText value="#{record.NAME}"/>
    </h:column>
    </h:dataTable>
    </p>
    <h:commandButton value="Submit"/>
    </h:form></body>
    </html>
    </f:view>

  • Number of rows returned by SELECT LAST(column)

    I have about 50,000 rows in my MS Acess database table so I have used SELECT LAST(column) AS newField FROM table... to retrieve the last data in the column however when I check the number of rows in the resultset using
    resultset.last();
         int rowcount = rs.getRow();
    rowcnt returns the total no.rows (about 50,000) in the table.
    I thought it should just return one.
    Is it normal?

    Thanks again dcminta. I'll try with your code.
    I just wanted to know why resultset returned the number of all records in that column when I only selected the last.
    I had the �Invalid Cursor Position� error with "while(rs.next())" as I (thought I) had only one record in the resultset and I was fiddling with my code.
    They are all fine now.
    Thanks guys.
    Booh1(old lady)

  • Focus should remains in the last column .

    Hi,
    I am using JTable with single row and few columns. When I navigate (tab) from last column it returns to the first column but my requirement is it should remain in the last column itself.
    Thanks in advance.
    Thanks and Regards,
    Shiva

    Okay, that makes sense. However, I modified my code to actually move the lead, and it still didn't work. Curious, I added a pop up window to the code, and I found out that it doesn't get called. The tab key still doesn't do anything. I miss KeyListeners already :(
    Can you spot anything wrong with how I'm doing this?
    InputMap im = _table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
    KeyStroke tabKey = KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0);
    Action tabAction = new AbstractAction(){
                   public void actionPerformed(ActionEvent e){
                        int leadColumn = _table.getColumnModel().getSelectionModel().getLeadSelectionIndex();
                        leadColumn ++;
                        if(leadColumn > 4){
                             leadColumn = 4;;
                        _table.getColumnModel().getSelectionModel().setLeadSelectionIndex(leadColumn);
                        JOptionPane.showMessageDialog(null, "L: " + leadColumn);  //this doesn't happen either
    im.put(tabKey, tabAction);

  • Update a database table column via EO

    Hi,
    I want to update a database table column via EO, but somehow the table column is not updated. Could you help if I miss anything?
    Here is my code:
    View SQL:
    select
    ,GoalSheetHeaderEO.srp_goal_header_id
    ,XL.MEANING
    ,GoalSheetHeaderEO.status_code
    ,GoalSheetHeaderEO.start_date GS_START_DATE
    ,GoalSheetHeaderEO.end_date GS_END_DATE
    ,GoalSheetHeaderEO.PERIOD_YEAR
    ,GoalSheetHeaderEO.LAST_UPDATED_BY
    ,GoalSheetHeaderEO.LAST_UPDATE_DATE
    ,GoalSheetHeaderEO.LAST_UPDATE_LOGIN
    ,'N' CHECKED
    from
    xxg2c_srp_goal_headers_all GoalSheetHeaderEO
    ,cn_comp_plans_all comp
    ,jtf_rs_salesreps rs
    ,jtf_rs_resource_extns rse
    ,xxg2c_lookups xl
    ,shr_strct_nodes nod
    ,g2c_goal_shr_emp_assignments_v emp
    CO:
    if (pageContext.getParameter("Update") != null){
    am.invokeMethod("updateGoalSheet");
    AM:
    public void deleteGoalSheet(){
    OAViewObject vo = (OAViewObject)getGoalSheetResultGAVO1();
    GoalSheetResultGAVORowImpl row = (GoalSheetResultGAVORowImpl) vo.first();
    while (row != null)
    if (selectFlag != null)
    if (selectFlag .equals("Y"))
    //row.setAttribute("GsStatusCode",Constants.GOAL_SHEET_STATUS_CODE_DEL);
    row.setStatusCode(Constants.GOAL_SHEET_STATUS_CODE_DEL);
    row = (GoalSheetResultGAVORowImpl) vo.next();
    getTransaction().commit();
    EO:
    public void setStatusCode(String value) {
    if (value.equals(Constants.GOAL_SHEET_STATUS_CODE_DEL)){
    String currentStatus = getStatusCode();
    if(!(currentStatus.equals(Constants.GOAL_SHEET_STATUS_CODE_INPROG)
    ||currentStatus.equals(Constants.GOAL_SHEET_STATUS_CODE_RDYAUD))){
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(),
    getPrimaryKey(),
    "StatusCode",
    value,
    "xxg2c goaling",
    "DEBUG -- need message name"
    setAttributeInternal(STATUSCODE, value);
    thanks
    Lei

    Hi Vikram,
    It is just a type error. The delete is a soft delete to change the status to 'DEL'.
    And also the view object is hybrid view object.
    Complete View Object SQL:
    select
    nod.node_id
    ,nod.version_id
    ,emp.status_name
    ,rs.SALESREP_ID
    ,rse.source_name
    ,rse.source_email SRP_EMAIL_ID
    ,rse.source_number SRP_EMPLOYEE_NUMBER
    ,comp.name
    ,GoalSheetHeaderEO.srp_goal_header_id
    ,XL.MEANING
    ,GoalSheetHeaderEO.status_code
    ,GoalSheetHeaderEO.start_date GS_START_DATE
    ,GoalSheetHeaderEO.end_date GS_END_DATE
    ,GoalSheetHeaderEO.PERIOD_YEAR
    ,GoalSheetHeaderEO.LAST_UPDATED_BY
    ,GoalSheetHeaderEO.LAST_UPDATE_DATE
    ,GoalSheetHeaderEO.LAST_UPDATE_LOGIN
    ,DECODE(GoalSheetHeaderEO.PERIOD_YEAR,(SELECT PERIOD_YEAR FROM GL_PERIODS WHERE PERIOD_SET_NAME = 'Fiscal Year' AND SYSDATE BETWEEN YEAR_START_DATE AND END_DATE),DECODE(GoalSheetHeaderEO.STATUS_CODE,'AUTH','copy_enabled','copy_disabled'),'copy_disabled') COPY_FLAG
    ,DECODE(GoalSheetHeaderEO.SRP_GOAL_HEADER_ID,null,'create_enabled',DECODE(GoalSheetHeaderEO.status_code,'AUTH','create_enabled','create_disabled')) CREATE_FLAG
    ,'N' CHECKED
    from
    xxg2c_srp_goal_headers_all GoalSheetHeaderEO
    ,cn_comp_plans_all comp
    ,jtf_rs_salesreps rs
    ,jtf_rs_resource_extns rse
    ,xxg2c_lookups xl
    ,shr_strct_nodes nod
    ,g2c_goal_shr_emp_assignments_v emp
    public void updateGoalSheet(){
    OAViewObject vo = (OAViewObject)getGoalSheetResultGAVO1();
    GoalSheetResultGAVORowImpl row = (GoalSheetResultGAVORowImpl) vo.first();
    while (row != null)
    if (selectFlag != null)
    if (selectFlag .equals("Y"))
    //row.setAttribute("GsStatusCode",Constants.GOAL_SHEET_STATUS_CODE_DEL);
    row.setStatusCode(Constants.GOAL_SHEET_STATUS_CODE_DEL);
    row = (GoalSheetResultGAVORowImpl) vo.next();
    getTransaction().commit();
    thanks for the help.
    Lei

  • Upload/import procedure works only when last column filled

    To upload csv-files I use something like
    TYPE line_tab_type IS TABLE OF VARCHAR2 (4000)
           INDEX BY BINARY_INTEGER;in the package header
    and the procedure itself looks like
    PROCEDURE get_mitglieder_csv (p_file_name IN VARCHAR2,
                               p_rec_sep IN VARCHAR2,
                               p_header IN VARCHAR2,
                               p_blzkto IN VARCHAR2
                               ) IS
        v_binary_file BLOB;
        v_text_file   CLOB;
        -- Conversion Variables
        v_dest_offset  INTEGER := 1;
        v_src_offset   INTEGER := 1;
        v_lang_context INTEGER := DBMS_LOB.default_lang_ctx;
        v_warning      INTEGER;
        -- Parsing Variables
        v_rec_sep_len PLS_INTEGER;
        v_start_pos   PLS_INTEGER := 1;
        v_end_pos     PLS_INTEGER := 1;
        v_line_num    PLS_INTEGER := 1;
        v_file_length PLS_INTEGER;
        -- Parsing Line Variables
        v_field_array wwv_flow_global.vc_arr2;
        p_lines line_tab_type;
        doszeilen  CONSTANT VARCHAR2(2) := CHR(13) || CHR(10);
        unixzeilen CONSTANT VARCHAR2(1) := CHR(10);
        geloescht BOOLEAN := FALSE;
         err_code      NUMBER;
         err_msg          VARCHAR2(400);
      BEGIN
        IF p_file_name IS NULL THEN
          raise_application_error(-20000, 'Dateiname wird benoetigt');
        END IF;
        IF p_rec_sep IS NULL THEN
          raise_application_error(-20000, 'Feldtrenner wird benoetigt');
        END IF;
        IF (UPPER(p_rec_sep) LIKE '%DOS%') THEN
          v_rec_sep_len := LENGTH(doszeilen);
        ELSE
          v_rec_sep_len := LENGTH(unixzeilen);
        END IF;
        SELECT blob_content
          INTO v_binary_file
          FROM my_wwv_flow_files
         WHERE my_wwv_flow_files.name = p_file_name
              --AND mime_type = 'text/plain'
           AND doc_size > 0;
        DBMS_LOB.createtemporary(v_text_file, TRUE);
        DBMS_LOB.converttoclob(v_text_file,
                               v_binary_file,
                               DBMS_LOB.lobmaxsize,
                               v_dest_offset,
                               v_src_offset,
                               DBMS_LOB.default_csid,
                               v_lang_context,
                               v_warning);
        IF v_warning = DBMS_LOB.warn_inconvertible_char THEN    -- error converting
          raise_application_error(-20000, 'Kann Datei nicht konvertieren');
        END IF;
        v_file_length := DBMS_LOB.getlength(v_text_file);
    --INSERT INTO DEBUG_TAB (a) VALUES (v_file_length);
        LOOP
          EXIT WHEN v_start_pos > v_file_length;
          -- erste Vorkommen von p_rec_sep in v_text_file, starte suche bei v_start_pos
          IF (UPPER(p_rec_sep) LIKE '%DOS%') THEN
            v_end_pos := DBMS_LOB.INSTR(v_text_file, doszeilen, v_start_pos);
          ELSE
            v_end_pos := DBMS_LOB.INSTR(v_text_file, unixzeilen, v_start_pos);
          END IF;
    --INSERT INTO DEBUG_TAB (a,b) VALUES ('p_rec_sep',UPPER(p_rec_sep));
    --INSERT INTO DEBUG_TAB (a,b) VALUES ('v_end_pos',v_end_pos);
          IF v_end_pos = 0 --- nichts gefunden, leeres v_text_file
           THEN
            v_end_pos := v_file_length + 1;
          END IF;
          IF v_end_pos - v_start_pos > 4000 --- mehr als 4000 Zeichen in Zeile
           THEN
            raise_application_error(-20000, 'Zeile hat mehr als 4000 Zeichen, Dateiformat beachten');
          END IF;
          --- DBMS_LOB.SUBSTR(source, amount, position)
          p_lines(v_line_num) := DBMS_LOB.SUBSTR(v_text_file,
                                                 v_end_pos - v_start_pos,
                                                 v_start_pos);
          --- Change the ',' field delimiter to ':' , to use the built-in string_to_table function
              --- optionale Hochkomma " entfernen
           p_lines(v_line_num) := REPLACE(p_lines(v_line_num), '"', '');
           p_lines(v_line_num) := REPLACE(p_lines(v_line_num), ':', ' ');
              --- passende Feldtrenner auswaehlen ,  ;  |
          p_lines(v_line_num) := REPLACE(p_lines(v_line_num), '|', ':');
    --      p_lines(v_line_num) := REPLACE(p_lines(v_line_num), ',', ':');
    --      p_lines(v_line_num) := REPLACE(p_lines(v_line_num), ';', ':');
          v_field_array := wwv_flow_utilities.string_to_table(p_lines(v_line_num));
          IF v_field_array.COUNT <= 1 THEN
            raise_application_error(-20000, 'Benoetige mindestens 2 Spalten');
          ELSE
            BEGIN
            IF geloescht = FALSE THEN
            EXECUTE IMMEDIATE 'TRUNCATE TABLE UP_MITGLIEDER';
            geloescht := TRUE;
            END IF;
              IF (  (v_line_num = 1 )   AND  (UPPER(p_header) = 'MITKOPF')  ) THEN
                   NULL;
    ------ mit Konto-Daten ------------------  24 Felder
              ELSIF ( UPPER(p_blzkto) = 'MITBLZ' )
              THEN
                     EXECUTE IMMEDIATE 'INSERT INTO UP_MITGLIEDER(
                           MG_NR
                           ,MG_ZS
                           ,MG_KONTONR
                           ,MG_BLZ
                          VALUES ( TRIM(:1), TRIM(:2), TRIM(:3), TRIM(:4), TRIM(:5), TRIM(:6), TRIM(:7), TRIM(:8), TRIM(:9), TRIM(:10),
                                          TRIM(:11), TRIM(:12), TRIM(:13), TRIM(:14), TRIM(:15), TRIM(:16), TRIM(:17), TRIM(:18), TRIM(:19), TRIM(:20),
                                          TRIM(:21), TRIM(:22), 
                                          TRIM(:23), TRIM(:24)     )'
              --             VALUES (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22 :23 :24 )'
                        USING
                             v_field_array(1), v_field_array(2), v_field_array(3), v_field_array(4), v_field_array(5),
                             v_field_array(6), v_field_array(7), v_field_array(8), v_field_array(9), v_field_array(10),
                             v_field_array(11), v_field_array(12), v_field_array(13), v_field_array(14), v_field_array(15),
                             v_field_array(16), v_field_array(17), v_field_array(18), v_field_array(19), v_field_array(20),
                             v_field_array(21), v_field_array(22), v_field_array(23), v_field_array(24);
    ------------ ohne Konto-Daten , bis MG_ZS ---- 22 Felder
              ELSE                
              --        EXECUTE IMMEDIATE 'INSERT INTO EINS(LFD,BEM) VALUES(:1,:2)'
                     EXECUTE IMMEDIATE 'INSERT INTO UP_MITGLIEDER(
                           MG_NR
                           ,MG_ZS
                          VALUES ( TRIM(:1), TRIM(:2), TRIM(:3), TRIM(:4), TRIM(:5), TRIM(:6), TRIM(:7), TRIM(:8), TRIM(:9), TRIM(:10),
                                          TRIM(:11), TRIM(:12), TRIM(:13), TRIM(:14), TRIM(:15), TRIM(:16), TRIM(:17), TRIM(:18), TRIM(:19), TRIM(:20),
                                          TRIM(:21), TRIM(:22)  )'
              --             VALUES (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, :14, :15, :16, :17, :18, :19, :20, :21, :22 )'
                        USING
                             v_field_array(1), v_field_array(2), v_field_array(3), v_field_array(4), v_field_array(5),
                             v_field_array(6), v_field_array(7), v_field_array(8), v_field_array(9), v_field_array(10),
                             v_field_array(11), v_field_array(12), v_field_array(13), v_field_array(14), v_field_array(15),
                             v_field_array(16), v_field_array(17), v_field_array(18), v_field_array(19), v_field_array(20),
                             v_field_array(21), v_field_array(22);
             END IF;  --- v_line_num = 1 AND p_header
            END;  --- von Begin im Else-Zweig
          END IF;
          --INSERT INTO DEBUG_TAB(a)
          --VALUES ('P_lines: ' || p_lines(v_line_num));
    --      hilfscounter := v_field_array.COUNT;
          --INSERT INTO DEBUG_TAB(a)
          --VALUES ('v_field_array.count: ' || TO_CHAR(hilfscounter));
              -- neue Zeile   
               v_line_num  := v_line_num + 1;
               v_start_pos := v_end_pos + v_rec_sep_len;
        END LOOP;
        DBMS_LOB.freetemporary(v_text_file);
      EXCEPTION
        WHEN NO_DATA_FOUND THEN
          raise_application_error(-20000,
                                  'Datei existiert nicht in my_wwv_flow_files, ist keine Textdatei (text/plain) oder hat die Groesse 0');
        WHEN OTHERS THEN
              err_code      := SQLCODE;
              err_msg          := SUBSTR(SQLERRM, 1, 400);
          raise_application_error(-20011,
                                  'Datei entspricht nicht erwartetem Format ! '
                                  ||CHR(13) || CHR(10)||'  '||err_msg||CHR (10)|| v_line_num ||CHR (10)|| p_lines(v_line_num));
    END get_mitglieder_csv;If the last column e.g. MG_ZS contains NULL-values the import into UP-MITGLIEDER does not work , stops with error
    Fehler      ORA-20011: Datei entspricht nicht erwartetem Format !Why isn't it possible to import Null values from the last column ?

    Here is now a general example based on scott.emp
    CREATE OR REPLACE PROCEDURE import_emp_csv (p_file_name IN VARCHAR2,
                               p_rec_sep IN VARCHAR2,
                               p_header IN VARCHAR2
                               ) IS
        TYPE line_tab_type IS TABLE OF VARCHAR2 (4000)
           INDEX BY BINARY_INTEGER;
        v_binary_file BLOB;
        v_text_file   CLOB;
        -- Conversion Variables
        v_dest_offset  INTEGER := 1;
        v_src_offset   INTEGER := 1;
        v_lang_context INTEGER := DBMS_LOB.default_lang_ctx;
        v_warning      INTEGER;
        -- Parsing Variables
        v_rec_sep_len PLS_INTEGER;
        v_start_pos   PLS_INTEGER := 1;
        v_end_pos     PLS_INTEGER := 1;
        v_line_num    PLS_INTEGER := 1;
        v_file_length PLS_INTEGER;
        -- Parsing Line Variables
        v_field_array wwv_flow_global.vc_arr2;
        p_lines line_tab_type;
        doszeilen  CONSTANT VARCHAR2(2) := CHR(13) || CHR(10);
        unixzeilen CONSTANT VARCHAR2(1) := CHR(10);
        geloescht BOOLEAN := FALSE;
         err_code      NUMBER;
         err_msg          VARCHAR2(400);
      BEGIN
        IF p_file_name IS NULL THEN
          raise_application_error(-20000, 'Dateiname wird benoetigt');
        END IF;
        IF p_rec_sep IS NULL THEN
          raise_application_error(-20000, 'Feldtrenner wird benoetigt');
        END IF;
        IF (UPPER(p_rec_sep) LIKE '%DOS%') THEN
          v_rec_sep_len := LENGTH(doszeilen);
        ELSE
          v_rec_sep_len := LENGTH(unixzeilen);
        END IF;
        SELECT blob_content
          INTO v_binary_file
          FROM my_wwv_flow_files
         WHERE my_wwv_flow_files.name = p_file_name
              --AND mime_type = 'text/plain'
           AND doc_size > 0;
        DBMS_LOB.createtemporary(v_text_file, TRUE);
        DBMS_LOB.converttoclob(v_text_file,
                               v_binary_file,
                               DBMS_LOB.lobmaxsize,
                               v_dest_offset,
                               v_src_offset,
                               DBMS_LOB.default_csid,
                               v_lang_context,
                               v_warning);
    --INSERT INTO DEBUG_TAB (a) VALUES (v_text_file);
        IF v_warning = DBMS_LOB.warn_inconvertible_char THEN    -- error converting
          raise_application_error(-20000, 'Kann Datei nicht konvertieren');
        END IF;
        v_file_length := DBMS_LOB.getlength(v_text_file);
    --INSERT INTO DEBUG_TAB (a) VALUES (v_file_length);
        LOOP
          EXIT WHEN v_start_pos > v_file_length;
          -- erste Vorkommen von p_rec_sep in v_text_file, starte suche bei v_start_pos
          IF (UPPER(p_rec_sep) LIKE '%DOS%') THEN
            v_end_pos := DBMS_LOB.INSTR(v_text_file, doszeilen, v_start_pos);
          ELSE
            v_end_pos := DBMS_LOB.INSTR(v_text_file, unixzeilen, v_start_pos);
          END IF;
    --INSERT INTO DEBUG_TAB (a,b) VALUES ('p_rec_sep',UPPER(p_rec_sep));
    --INSERT INTO DEBUG_TAB (a,b) VALUES ('v_end_pos',v_end_pos);
          IF v_end_pos = 0 --- nichts gefunden, leeres v_text_file
           THEN
            v_end_pos := v_file_length + 1;
          END IF;
          IF v_end_pos - v_start_pos > 4000 --- mehr als 4000 Zeichen in Zeile
           THEN
            raise_application_error(-20000, 'Zeile hat mehr als 4000 Zeichen, Dateiformat beachten');
          END IF;
          --- DBMS_LOB.SUBSTR(source, amount, position)
          p_lines(v_line_num) := DBMS_LOB.SUBSTR(v_text_file,
                                                 v_end_pos - v_start_pos,
                                                 v_start_pos);
          --- Change the ',' field delimiter to ':' , to use the built-in string_to_table function
              --- optionale Hochkomma " entfernen
           p_lines(v_line_num) := REPLACE(p_lines(v_line_num), '"', '');
           p_lines(v_line_num) := REPLACE(p_lines(v_line_num), ':', ' ');
              --- passende Feldtrenner auswaehlen ,  ;  |
          p_lines(v_line_num) := REPLACE(p_lines(v_line_num), '|', ':');
    --      p_lines(v_line_num) := REPLACE(p_lines(v_line_num), ',', ':');
    --      p_lines(v_line_num) := REPLACE(p_lines(v_line_num), ';', ':');
          v_field_array := wwv_flow_utilities.string_to_table(p_lines(v_line_num));
          IF v_field_array.COUNT <= 1 THEN
            raise_application_error(-20000, 'Benoetige mindestens 2 Spalten');
          ELSE
            BEGIN
            IF geloescht = FALSE THEN
            EXECUTE IMMEDIATE 'TRUNCATE TABLE UP_EMP2';
            geloescht := TRUE;
            END IF;
              IF (  (v_line_num = 1 )   AND  (UPPER(p_header) = 'MITKOPF')  ) THEN
                   NULL;
              ELSE                
                     EXECUTE IMMEDIATE 'INSERT INTO UP_EMP2(
                           EMPNO
                           ,ENAME
                           ,JOB
                           ,MGR
                           ,HIREDATE
                           ,SAL
                           ,DEPTNO
                           ,COMM
                          VALUES ( TRIM(:1), TRIM(:2), TRIM(:3), TRIM(:4), TRIM(:5), TRIM(:6), TRIM(:7), NVL( TRIM(:8), NULL )
                        USING
                             v_field_array(1), v_field_array(2), v_field_array(3), v_field_array(4), v_field_array(5),
                             v_field_array(6), v_field_array(7), v_field_array(8);
             END IF;  --- v_line_num = 1 AND p_header
            END;  --- von Begin im Else-Zweig
          END IF;
              -- neue Zeile   
               v_line_num  := v_line_num + 1;
               v_start_pos := v_end_pos + v_rec_sep_len;
        END LOOP;
        DBMS_LOB.freetemporary(v_text_file);
      EXCEPTION
        WHEN NO_DATA_FOUND THEN
          raise_application_error(-20000,
                                  'Datei existiert nicht in my_wwv_flow_files, ist keine Textdatei (text/plain) oder hat die Groesse 0');
        WHEN OTHERS THEN
              err_code      := SQLCODE;
              err_msg          := SUBSTR(SQLERRM, 1, 400);
          raise_application_error(-20011,
                                  'Datei entspricht nicht erwartetem Format ! '
                                  ||CHR(13) || CHR(10)||'  '||err_msg||CHR (10)|| v_line_num ||CHR (10)|| p_lines(v_line_num));
    END import_emp_csv;Here is my csv test file
    7370|"schmid"|"CLERK"|7902|"17.12.1980"||20|20
    7500|"ALLENT"|"SALESMAN"|7698|"20.02.1981"|1600|30|
    7522|"WART"|"SALESMAN"|7698|"22.02.1981"|1250|30|500The second row is missing the last element (in excel table it is a NULL Value), this causes a NO-DATA-FOUND error.
    Any ideas how to solve this problem ?

  • Missing Standard Dimension Column for data load (MSSQL to Essbase Data)

    This is similar error to one posted by Sravan -- however I'm sure I have all dimensions covered -- going from MS SQL to SunOpsys Staging to Essbase. It is telling me missing standard dimension, however I have all accounted for:
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last): File "<string>", line 23, in ? com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
    at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    I'm using multiple time period inputs -- BegBalance,Jul,Aug,Sep,Oct,Nov,Dec,Jan,Feb,Mar,Apr,May,Jun (target has all of those in place of Time Periods)
    I'm using hard coded input mapping for Metric, Scenario, Version, HSP_Rates and Currencies. -> 'Amount', 'Actual', 'Final', 'HSP_InputValue','Local' respectively.
    The only thing I can think of is that since I'm loading to each of the months in the Time Periods dimension (the reversal was set up to accomodate that)... and now its somehow still looking for that? Time Periods as a dimension does not show up in the reversal -- only the individual months named above.
    Any ideas on this one??

    John -- I extracted the data to a file and created a data load rule in Essbase to load the data. All dimensions present and accounted for (five header items as similar here) and everything loads fine.
    So not sure what else is wrong -- still getting the missing dimension error.
    Any other thoughts?? Here's the entire error message. Thanks for all your help on this.
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 23, in ?
    com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
         at org.python.core.PyMethod.__call__(PyMethod.java)
         at org.python.core.PyObject.__call__(PyObject.java)
         at org.python.core.PyInstance.invoke(PyInstance.java)
         at org.python.pycode._pyx8.f$0(<string>:23)
         at org.python.pycode._pyx8.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java)
         at org.python.core.PyCode.call(PyCode.java)
         at org.python.core.Py.runCode(Py.java)
         at org.python.core.Py.exec(Py.java)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.A(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Caused by: com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at com.hyperion.odi.essbase.ODIEssbaseDataWriter.validateColumns(Unknown Source)
         ... 32 more
    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: Missing standard dimension column for data load
         at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.k(e.java)
         at com.sunopsis.dwg.cmd.g.A(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)

  • How to get the last column info of the given table

    Hi All,
    I want to get the last column information like :
    column name, datatype of the last column in the given
    table use PL statement. Please help.
    Thanks,
    JP

    SCOTT@orcl SQL> desc emp
    Name                                                  Null?    Type
    EMPNO                                                 NOT NULL NUMBER(4)
    ENAME                                                          VARCHAR2(10)
    JOB                                                            VARCHAR2(9)
    MGR                                                            NUMBER(4)
    HIREDATE                                                       DATE
    SAL                                                            NUMBER(7,2)
    COMM                                                           NUMBER(7,2)
    DEPTNO                                                         NUMBER(2)
    SCOTT@orcl SQL> select column_name, data_type from user_tab_columns
      2  where table_name = 'EMP'
      3  and column_id = (select max(column_id) from user_tab_columns
      4  where table_name = 'EMP');
    COLUMN_NAME                    DATA_TYPE
    DEPTNO                         NUMBER
    SCOTT@orcl SQL>                                                                      

  • Error importing text file into SQL Server when last column is null

    Hello all. Happy holidays!
    I'm trying to import a text file into a SQL Server table, and I get the error below when it gets to a row (row 264) that has null in the last column. I'm guessing the null jumbles up the delimiters somehow. The nulls are not errors, and I need to import
    them into the table with the rest of the rows. Any idea how I can do that?
    Thanks!
    [Flat File Source [1]] Error: Data conversion failed. The data conversion for column "XYZ" returned status value 2 and status text "The value could not be converted because of a potential loss of data.".
    [Flat File Source [1]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "output column "XYZ" (178)" failed because error code 0xC0209084 occurred, and the error row disposition on "output column "XYZ"
    (178)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    [Flat File Source [1]] Error: An error occurred while processing file "ABC.txt" on data row 264.
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Flat File Source" (1) returned error code 0xC0202092.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
    WeeLass

    Hi WeeLass,
    The error that” Data conversion failed. The data conversion for column "XYZ" returned status value 2 and status text "The value could not be converted because of a potential loss of data.".” is generally error message, and the error indicates
    that there is data type mismatch issue between the input columns and the output columns.
    Based on your description, the issue is that you trying to convert a column contains empty value from string to integer data type for the output column "XYZ" in Flat File Source [1]. Please note that we cannot type an empty value as integer data
    type column value, so the error occurs.
    To fix this issue, just as you did, we should convert the data type for the output column "XYZ" in Flat File Source [1] back to DT_WSTR or DT_STR, then use a derived column task to replace the current column (UBPKE542). But the expression should
    be like below:
    LEN(TRIM(UBPKE542)) > 0 ? (DT_I8)UBPKE542 : NULL(DT_I8)
    In this way, the data type of the column in SQL table would be int, and the empty value would be replaced with NULL.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Unable to filter the report by clicking the last column's name

    Hi,
    I have interactive report page having lots of column. All columns were not fitting in the screen so I added a code in the region--- header and footer section---
    <div style="overflow: auto; width: 1220px; height: 700px;">
    I got a scroll bar at the bottom. But a new problem arised. When I am trying to filter the report by clicking the column name in the report page , a popup is opening for the first column but the pop up is not opening for the last column. For the middle columns, the popup is opening but not below its name. This pop is for filtering the report based on that columns.
    Please give some idea to fix this bug.
    Thanks,
    Chandra Bhanu

    You could try to display as many columns as fit your screen, and put the rest of your columns as form fields in a detail view, somewhat like this:
    http://apex.oracle.com/pls/apex/f?p=vincentdeelen:report_details_in_iframe_v1
    Please tell the steps how to do it.
    Thanks,
    Chandra Bhanu

  • How do I create a new row on tab out of the last column, last row?

    JDev 11.1.2.1.0.
    I've seen a few topics on this but none that I think were really very good solutions.
    Use Case:
    On tab out of the last column in the last row, a new row should be added to the end of the table. Bonus points for setting the focus to the first <af:inputText> of the newly created row.
    Complications:
    1. I'm having a heck of a time trying to find a function that returns the column's displayed index. Sadly, <column binding>.getDisplayIndex() returns -1 unless the user has manually re-ordered the column.
    2. Value Change Listeners only fire if there is a value change. Guess that means I need to do client/server listeners to check each and every <af:inputText> for a tab press?
    3. I'm not even going to get into setting the focus. With all the templates, regions, etc. going on, it's dang near impossible.
    Any ideas on how to attack this one?
    Will

    Hi,
    You will need to use the Run Engine Installation Wizard found on the Tools menu. In addition you need to create a installation set for the operator interface.
    Look at Chapter 16 Distrubuting TestStand ( chapter 17 for version 2).
    Once you have created your installation, install is on your new system.
    The serial number etc is part of the process model. When you run the entry point 'Test UUTs' the PreUUT callback is executed which asks the user for the serial number.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

  • Finder in column view has no expander divider on the last column

    I deal with a lot of graphics on my computer and I have a lot of subfolders. While in finder in column view there is no expanding divider for the last column when it is showing a graphic. When I first open a photo or graphic in finder the last column shows the graphic smaller than regular size. In SL there was a column divider to expand only that last column so I could make the graphic larger to see it better. Now in Lion there is no divider on the right side of that last column to expand the last column where the grahic is showing. In order for it to finally expand I have to drag the right side of the Finder window all the way across my display until the bottom slider bar disappears and then that last column will expand. This is frustrating having to have my Finder all across my display just to get the graphic larger.
    Is there a way to get an expander divider to show up for the last column when viewing a graphic in column view? I know I can click on the "eye" icon to see it, but the column view will expand the graphic larger than 100% so I can see more details.
    Thanks for any and all help.
    Connie

    Yes, that is how my whole finder window expands across my display until the bottom slider bar disappears....then and only then does the last column expand. I have to have open as many as 8 columns to get to my graphic. Keeping the Finder window to a smaller size and using the bottom slide bar to navigate to the far right column is nice, but all I want is that far right column where my graphic is showing to expand so I can see it better.
    Thanks but what you suggest only resizes the whole Finder window until it can expand no further, then the last column expands the graphic. But then my whole display is a huge Finder window.

  • Issue with the last column stretching in ADF table

    There is an issue wherein when  I try stretching the last column of the ADF table to reduce its width it does stretch. But whenever I try stretching it back to this original position it doesn't despite having columnstretching attribute set to multiple and assign widths in percentages to columns . When I set the columnstretching attribute to none, the last column does stretch back and forth but on page load the table does not stretch to its full width despite having styleClass="AFStretchWidth". Now I dont want to be assigning fixed width in pixels to the columns. I would want the last column to stretch back and forth with columnstretching="multiple" and styleClass="AFStretchWidth". I see the same issue on components demo page as well. Tag Guide

    If you are trying that each column gets equally stretched based on the browser, its not possible as adf doesn't supports that.
    If your table is not stretching use styleClass="AFStretchWidth".
    But if all your columns are not stretching you can only try setting column widths + columnStretching property (where you can specify which column to stretch to fill all the spaces)
    Amit

Maybe you are looking for

  • UNABLE TO PRINT TO TOSHIBA FIERY COPIER AFTER 10.6 UPGRADE

    I have upgraded my OS to 10.6 and in doing so the OS has killed my printer. I am printing to a high end Fiery Toshiba e-studio311c. For those not familiar, a fiery is a rip device, when your Mac prints to it, the desktop printer spools to the Fiery S

  • HTTP Receiver Adapter - HTTP client code 110 reason error when sending

    Hi, I am getting the following error when using the HTTP adapter as a receiver to perform an HTTP Post in a destination system : <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Adapter   --> - <SAP:Error xmlns:SAP="http://sap.co

  • Partial delivery on VA01/02

    hiiii all i am in complete lost, i need to do something in VA01/02 that concern partial delivery.  i have the user exit i need to impletement some code. pstyv     order qty        confirm qty                                         UOM ZO11      100 

  • Form6i cant write arabic charecter in the property pallete

    although i set up the nls_lang to american_america.ar8mswin1256 form builder can't write arabic in the property pallete ot the item but write only in the layout editor preciley with bioler only please help me to resolve this problem

  • The screen is not responding when i try to unlock.

    Hi, is there a way to fix my ipad touch screen? I got it a few days back after upgrading to IOS7 it becomes unresponsive when i try to unlock it, I can't even swipe to unlock. I'm also using a smartcover, but still, it won't work. It will only get me