node-google-spreadsheet icon indicating copy to clipboard operation
node-google-spreadsheet copied to clipboard

Row data not loading with getRows() function

Open prasanjit101 opened this issue 2 years ago • 3 comments

image

I have a spreadsheet with data populated as above. I am trying to load the row data. But complete data is not loaded. Only the first columns data are loaded for a row (as shown in below image).

image

prasanjit101 avatar Nov 13 '23 03:11 prasanjit101

Did you make sure to the header row to 4? (so it knows that this is where the important headers are) Also what happens if you unmerge the cells in those top rows?

theoephraim avatar Nov 13 '23 19:11 theoephraim

Yeah, in the SS the headerRow isn't set to 1 but with it even set to 4. The data is not loading. Unmerging the cell might work but I wanted to retain the structure. So the workaround that worked for me is using getCells instead of getRows.

prasanjit101 avatar Nov 13 '23 21:11 prasanjit101

without setting the header row to the row that contains the headers, it assumes you have a table of rows that only have 1 column - with the title "Marketing Activity Log". I suspect if you get that set correctly, it should work!

theoephraim avatar Nov 13 '23 21:11 theoephraim