Skip to content

NullPointerException when using system.dataset.fromExcel() on dataset with an empty cell #54

Description

@jaysettle

I'm getting a NullPointerException when trying to import excel data via system.dataset.fromExcel() that has empty cells like the following:
image

Excel sheet attached.
data1.xlsx

Script I'm using:

excelFilePath = "C:\Users\jayen\Documents\data1.xlsx"
dataset = system.dataset.fromExcel(input=excelFilePath, headerRow=0, sheetNumber=0)
system.util.getLogger("ExcelImportScript").info("Starting Excel import..." + str(dataset))
system.dataset.print(dataset)

Thanks for the work put into this. We found your module looking for efficiencies in our current work flow working with a customer with a lot of excel sheets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions