diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.ts b/packages/nodes-base/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.ts
index 5c6ecb592f..72441d21a7 100644
--- a/packages/nodes-base/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.ts
+++ b/packages/nodes-base/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.ts
@@ -129,6 +129,7 @@ export function trimLeadingEmptyRows(
 }
 
 export function removeEmptyColumns(data: SheetRangeData) {
+	if (!data || data.length === 0) return [];
 	const returnData: SheetRangeData = [];
 	const longestRow = data.reduce((a, b) => (a.length > b.length ? a : b), []).length;
 	for (let col = 0; col < longestRow; col++) {
@@ -138,7 +139,7 @@ export function removeEmptyColumns(data: SheetRangeData) {
 			returnData.push(column);
 		}
 	}
-	return returnData[0].map((_, i) => returnData.map((row) => row[i] || ''));
+	return (returnData[0] || []).map((_, i) => returnData.map((row) => row[i] || ''));
 }
 
 export function prepareSheetData(