CFSPREADSHEET Read truncating empty columns with excludeHeaderRow = true
Hi,
Is anyone having an issue with ExcludeHeaderRow for CFSPREADSHEET where it is truncating an entire column if the column is empty, even though it has a header column?
Below is my code to read an excel file named Fruits.XLS:
<CFSPREADSHEET ACTION="READ" SRC="c:\Fruits.XLS" QUERY="q_xls" SHEETNAME="Sheet1" headerrow="1" excludeheaderrow="true"></cfspreadsheet>
<cfdump var="#q_xls#">
Fruits.XLS consists of :
| No | Fruit | Description |
|---|---|---|
| 1 | Apple | |
| 2 | Orange |
Coldfusion's returned query 'q_xls' is as below, with the Description column missing:
No Fruit
1 Apple
2 Orange
This is an issue because the returned query is expected to contain column "Description" with empty values, but it does not exist.I know there are workarounds like, not setting ExcludeHeaderRow to true, but I'd rather not go there.
Please help.
Version : CF 9.0.1
Thanks
Lisa
