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

AddRows randomly adding (or trying to) at row 0. #671

Open
PRossESA opened this issue Dec 22, 2023 · 1 comment
Open

AddRows randomly adding (or trying to) at row 0. #671

PRossESA opened this issue Dec 22, 2023 · 1 comment

Comments

@PRossESA
Copy link

Sometimes sheet.addRow / addRows works most the time it tries to write on my header row which I had to protect from the user the api uses to try and write to the sheet.

Sometimes, rarely it works and then just reverts back to attempting to write on the first row again, where my headers are (which are protected). The sheet has about 60 rows in it other than that. Updating the rows works fine.

If I console sheet.headerValues or write a recordcount before the line before the addRow, they both show what they should, the sheet is aware of data and headers..

I tried using the insert;true arg and that works but inserts ABOVE the headers. I want to append to the bottom of the sheet though.

help? Seems odd that it's very inconsistent.

@theoephraim
Copy link
Owner

That all sounds quite odd and not something I've seen before...
Question for you - are you writing many rows concurrently or is it always just one at a time?
I suspect it is something specific to the doc itself and how things are set up. If you can share it with me (or a clone of it with any sensitive data scrubbed) I can take a look and see if I can recreate the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants