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

addRow with id #107

Closed
dhoeric opened this issue Apr 25, 2016 · 6 comments
Closed

addRow with id #107

dhoeric opened this issue Apr 25, 2016 · 6 comments

Comments

@dhoeric
Copy link

dhoeric commented Apr 25, 2016

Hi all,

I cannot addRow with a column name id, is there any reserved word in column name?

sheet.addRow({
        'id': 333,
        ...
});
@Voronchuk
Copy link

Hey, just in case you plan to do anything with the created row object, this maybe useful for you.

@theoephraim
Copy link
Owner

This has been a known limitation for quite a while. Now that I have a decent test suite, I'll see about tackling this problem!

@dhoeric
Copy link
Author

dhoeric commented May 6, 2016

Thanks for replying, I have just create another column (SELECT *, id AS another_id FROM ...) to workaround.

@odub
Copy link

odub commented Aug 8, 2016

I also just hit this problem. It would be nice to get an error if id is a reserved word.

@mddanishyusuf
Copy link

I also faced this issues but I use 'Id' and it's worked for me.

@theoephraim
Copy link
Owner

I've just a published a new version of this module which is a complete rewrite using Google's V4 Sheets API (v3 is being deprecated on March 3, 2020). YOU MUST MIGRATE IF YOU ARE STILL USING THIS PACKAGE!

Docs available here - https://theoephraim.github.io/node-google-spreadsheet

I do believe this issue should be fixed in the new version.
Please test it out and if you find that there is still a problem, reopen the issue.

Thanks! 😄

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

5 participants