Sheets is a convenient place for an invoice list or a pipeline, and the n8n node can read, append and update rows. When something goes wrong the error text is usually specific, so this guide maps each common message to its cause. For the credential steps themselves, see the Gmail credentials guide; the process is the same, with different APIs.
Connecting the credential
- n8n Cloud: create a Google Sheets OAuth2 API credential and click Sign in with Google (managed OAuth2).
- Self-hosted: create a Google Cloud project, enable the Google Sheets API and the Google Drive API (n8n's docs say Sheets needs Drive enabled as well), configure the consent screen, create a Web application OAuth client with n8n's redirect URL, paste the ID and secret into n8n and sign in. If the app's audience is External and in Testing, add yourself as a test user, and remember that tokens expire after seven days in that mode.
- Service account alternative: n8n also offers a Google Service Account credential. It suits unattended server use and avoids the seven-day expiry, but the service account is its own identity: you must share each spreadsheet with the service account's email address (as Editor) or every call will fail with a permission error.
Pointing the node at the right sheet
In the Google Sheets node, choose the document From list (a picker), By URL, or By ID. The ID is the long string between /d/ and /edit in the sheet's URL. Then choose the sheet (tab) by name from the list. If you type a name by hand, it must match the tab exactly, including capitals and spaces; renaming a tab later breaks workflows that referenced the old name.
Errors and fixes
| Message (approximate) | Likely cause | Fix |
|---|---|---|
| The caller does not have permission / 403 | The connected Google account (or service account) cannot open this spreadsheet | Share the sheet with that account; check you connected the right Google account |
| Requested entity was not found / 404 | Wrong document ID, or the sheet is in a different account | Re-copy the ID from the URL; pick from list instead |
| Google Sheets API has not been used in project … or it is disabled | API not enabled in the Cloud project that owns the OAuth client | Enable Google Sheets API (and Drive API) in that project, wait a minute, retry |
| Unable to parse range / Sheet … not found | Tab name changed or typed wrongly | Select the tab from the list again |
| Quota exceeded / 429 | Too many reads or writes per minute | Batch the work, avoid one call per row, add a Wait or use Loop Over Items with smaller batches |
| Access denied / app not verified | Testing mode and your account is not a test user | Add the account under test users |
| Credential worked, then failed after a week | Seven-day expiry for External apps in Testing | Reconnect, or use a service account or Internal app |
| Column not found when updating | Header names do not match the node's mapping | Fix the header row; click refresh in the column mapper |
Reading and writing rows sensibly
- Header row. The node treats the first row (configurable) as headers. Keep them unique, with no blanks or trailing spaces.
- Read once, process in memory. Fetch all rows with Get row(s), do the logic in a Code node, then write results. Calling Sheets inside a loop for every row is the usual way to hit quotas.
- Update, don't duplicate. Use Append or Update Row with a matching column such as
invoice_id. If the key is missing or not unique you will get duplicates or the wrong row updated. - Formulas and formatting. Writing a value over a formula cell replaces the formula. Keep n8n-written columns separate from formula columns.
- Types. Sheets returns numbers as formatted text depending on settings. Parse amounts explicitly and treat non-numeric values as problems to report, not as zero.
- Dates. Prefer ISO text dates (
2027-01-31) in the sheet. Locale-formatted dates differ between machines.
A minimal "invoice tier write-back"
After a workflow drafts a reminder, update the same row so it is not repeated. In the Sheets node set Operation to Append or Update Row, Column to match on to invoice_id, and map only invoice_id and last_reminder_tier. Other columns are left alone. Test on a copy of the sheet first.
Sheets vs a CSV file
A Sheet is easier to edit from a phone and shareable with a bookkeeper; a CSV on the n8n machine needs no credentials, no quotas and no expiring tokens. For small solo-business lists, a CSV with a weekly review is perfectly adequate. The workflows in our Invoice Reminder Kit use CSV by default and offer a Sheets variant. The Sheets variant was validated by import only, not run against a live Google account, as stated in the kit's test report.
Debug checklist
- Run a Sheets node alone with Execute step on a tiny test sheet.
- Confirm the account in the credential matches the account that owns or can edit the sheet.
- Confirm both APIs are enabled in the right project.
- Confirm the tab name and header row.
- Check n8n's Executions view for the full error text and the failing input.
Working with shared sheets
If a bookkeeper or assistant edits the same sheet, protect the columns your workflow writes. Google Sheets lets you restrict editing on a range, so a stray edit does not overwrite last_reminder_tier. Add a header note explaining which columns are automated, and keep a "Log" tab where the workflow appends one row per run (date, rows read, rows written, errors). When something looks wrong, the log answers whether the workflow ran at all.
Reading very large sheets
For a few hundred rows, reading everything in one call is fine. For thousands, read in pages or filter at the source: the Sheets node can filter rows by column value on read, which saves memory and quota. If you find the workflow slowing down, check whether it reads the same sheet several times; read once and pass the items along with a Merge node or by storing them in a Code node variable.
Backups and safe testing
- Make a copy of the sheet ("Invoices TEST") and point your test workflow at it until you trust the mapping.
- Use File > Version history in Google Sheets to restore an earlier state if a workflow overwrote something.
- Download a CSV copy weekly. A CSV is a backup you control and an input for a no-credentials version of the same workflow.
- When changing the header row, update the node's column mapping and re-test; mapping is by header name, so a rename silently breaks it.
Sources
- n8n docs: Google OAuth2 single service (Drive API requirement for Sheets, Testing-mode expiry), Google Sheets node.