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; })