Changeset 666

Show
Ignore:
Timestamp:
19-07-10 19:46:04 (4 years ago)
Author:
tabma
Message:

- unparsable values from Excel will be ignored

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/importer/ImporterService.groovy

    r655 r666  
    330330        for (HSSFCell cell: excelrow) {      
    331331            def mc = mcmap[cell.getColumnIndex()] 
    332             def value = formatValue(df.formatCellValue(cell), mc.templatefieldtype) 
     332            def value 
     333 
     334            try { 
     335                 value = formatValue(df.formatCellValue(cell), mc.templatefieldtype) 
     336            } catch (NumberFormatException nfe) { 
     337                 value = "" 
     338            } 
    333339 
    334340            switch(mc.entity) {