Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3091

Excel translator issue: FIRST_DATA_ROW_NUMBER option not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 8.7.1
    • Misc. Connectors
    • None

      The FIRST_DATA_ROW_NUMBER option not working, seeing the first row in the results, when using the following dynamic VDB definition:

         <model name="OtherHoldings">
              <property name="importer.headerRowNumber" value="1"/>
              <property name="importer.ExcelFileName" value="otherholdings.xls"/>
              <source name="excelconnector" translator-name="excel"  connection-jndi-name="java:/excel-file"/>
              <metadata type="DDL"><![CDATA[
                   SET NAMESPACE 'http://www.teiid.org/translator/excel/2014' AS teiid_excel;
                  CREATE FOREIGN TABLE Sheet1 (
      	            ROW_ID integer OPTIONS (SEARCHABLE 'All_Except_Like', "teiid_excel:CELL_NUMBER" 'ROW_ID'),
      	            FirstName string OPTIONS (SEARCHABLE 'Unsearchable', "teiid_excel:CELL_NUMBER" '1'),
      	            LastName string OPTIONS (SEARCHABLE 'Unsearchable', "teiid_excel:CELL_NUMBER" '2'),
      	           Age string OPTIONS (SEARCHABLE 'Unsearchable', "teiid_excel:CELL_NUMBER" '3'),
      	           CONSTRAINT PK0 PRIMARY KEY(ROW_ID)
                  ) OPTIONS ("teiid_excel:FILE" 'otherholdings.xls', "teiid_excel:FIRST_DATA_ROW_NUMBER" '2');
               ]]> </metadata>
          </model>
       

        1. excel_row_number_issue.tiff
          120 kB
        2. excel.png
          excel.png
          35 kB
        3. otherholdings.xls
          6 kB
        4. portfolio-vdb.xml
          6 kB

            rhn-engineering-rareddy Ramesh Reddy
            van.halbert Van Halbert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: