From 3ac7eda2c756a3e8b83b19b577c17be0cf9ef5c2 Mon Sep 17 00:00:00 2001 From: John Whish Date: Thu, 12 Feb 2026 16:14:07 +0000 Subject: [PATCH] if a data row has blank cells in the trailing columns, POI omits those cells from the row, producing a row array shorter than the header array. When elements are less than expected columns fill with blanks --- helpers/sheet.cfc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/sheet.cfc b/helpers/sheet.cfc index ab1cc3b..9548636 100644 --- a/helpers/sheet.cfc +++ b/helpers/sheet.cfc @@ -204,7 +204,7 @@ component extends="base"{ return ArrayMap( intermediateResult.data, ( row )=>{ var rowAsOrderedStruct = [:]; ArrayEach( intermediateResult.columns, ( column, index )=>{ - rowAsOrderedStruct[ column ] = row[ index ]; + rowAsOrderedStruct[ column ] = ( index <= row.Len() ) ? row[ index ] : ""; }); return rowAsOrderedStruct; })