diff --git a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/append.operation.ts b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/append.operation.ts index 907a70b0fc..70d6c29efa 100644 --- a/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/append.operation.ts +++ b/packages/nodes-base/nodes/Google/Sheet/v2/actions/sheet/append.operation.ts @@ -226,7 +226,9 @@ export async function execute( keyRowIndex = locationDefine.headerRow as number; } - const sheetData = await sheet.getData(range, 'FORMATTED_VALUE'); + const [sheetNameForKeyRow] = range.split('!'); + const sheetNameWithRangeForKeyRow = `${sheetNameForKeyRow}!1:${keyRowIndex}`; + const sheetData = await sheet.getData(sheetNameWithRangeForKeyRow, 'FORMATTED_VALUE'); if (sheetData === undefined || !sheetData.length) { dataMode = 'autoMapInputData';