Skip to content
Advertisement

Gspread batch update traceback

I am having problems trying to prepopulate google sheets filter and then do a batch_update. I get correct execution, the table is imported, filters are created. When the batch update occurs, I get a traceback that I don’t understand. I thought that the traceback may have come from the way I coded the sheetId. If anyone has some wisdom on how to read the traceback so that I can fix the underlying problem, I would appreciate it.

I am using python 3.10, and gspread 5.3.2, and my filter setup comes from my read of the underlying Google Sheets batchUpdate method.

Please advise, Tim

Gspread-batchUpdate Google Sheets batchUpdate

JavaScript

Code snippet follows:

JavaScript

Advertisement

Answer

Hi I believe the right method you are looking for is batch_update but in the spreadsheet object, not in the worksheet object.

It seems you are sending a complete request that you build manually, and the method batch_update in the worksheet object is only for updating values.

You should use:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement