Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Google Sheets Node): Append fails if cells have some default values added by data validation rules #9950

Conversation

michael-radency
Copy link
Contributor

@michael-radency michael-radency commented Jul 5, 2024

Summary

Before updating, we insert an empty row to prevent the update request from failing. In the append operation, we were not sending the lastDataRow parameter, so we check for the last data row after inserting an empty one. Usually, this works fine, but in cases where data validation rules add some default values, the row would not be treated as empty, causing us to attempt to update the next row, which does not exist.

  • fixed issue by sending last data row parameter
  • added hint to lead to "Use Append" option

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1460/google-sheets-exceeds-grid-limits-error-on-insert

@michael-radency michael-radency added n8n team Authored by the n8n team node/issue Issue with a node labels Jul 5, 2024
Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

github-actions bot commented Jul 5, 2024

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jul 5, 2024

1 flaky test on run #5810 ↗︎

0 399 0 0 Flakiness 1

Details:

🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project: n8n Commit: d1821eba92
Status: Passed Duration: 05:01 💡
Started: Jul 6, 2024 3:11 AM Ended: Jul 6, 2024 3:16 AM
Flakiness  e2e/5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video

Review all test suite changes for PR #9950 ↗︎

@michael-radency michael-radency merged commit d1821eb into master Jul 5, 2024
30 checks passed
@michael-radency michael-radency deleted the node-1460-google-sheets-exceeds-grid-limits-error-on-insert branch July 5, 2024 22:05
@janober
Copy link
Member

janober commented Jul 10, 2024

Got released with n8n@1.50.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/issue Issue with a node Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants