Skip to content

"Invalid sheet number" error when using excelReportPath #14

@JamoCA

Description

@JamoCA

When using the following command to generate an Excel report, an error is thrown.

I'm using CommandBox 5.9.1+00767.

codechecker run excelReportPath=d:\temp
ERROR (5.9.1+00767)

Invalid sheet number [1]

The sheetNumber must a whole number between 1 and the total number of sheets in the workbook [0]
\modules\commandbox-codechecker\modules\codechecker-core\models\SpreadSheet\tools.cfm: line 719
717:    if( !this.sheetExists( workbook=workbook,sheetNumber=sheetNumber ) ){
718:            var sheetCount = workbook.getNumberOfSheets();
719:            throw( type=exceptionType,message="Invalid sheet number [#sheetNumber#]",detail="The sheetNumber must a whole number between 1 and the total number of sheets in the workbook [#sheetCount#]" );
720:    }
721: }
called from \modules\commandbox-codechecker\modules\codechecker-core\models\SpreadSheet\Spreadsheet.cfc: line 872
called from \modules\commandbox-codechecker\modules\codechecker-core\models\SpreadSheet\Spreadsheet.cfc: line 877
called from \modules\commandbox-codechecker\modules\codechecker-core\models\ExportService.cfc: line 63
called from \modules\commandbox-codechecker\commands\codechecker\run.cfc: line 243
called from \system\services\CommandService.cfc: line 443
called from \system\services\CommandService.cfc: line 225
called from \system\Shell.cfc: line 865
called from \system\Shell.cfc: line 680
called from \system\Bootstrap.cfm: line 165

Please let me know if you need anything additional information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions