Changeset 666


Ignore:
Timestamp:
Jul 19, 2010, 7:46:04 PM (6 years ago)
Author:
tabma
Message:
  • unparsable values from Excel will be ignored
File:
1 edited

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) {
Note: See TracChangeset for help on using the changeset viewer.