Forums

409 Error

My program uses gspread to open and update cells in an existing google docs spreadsheet. It updates every cell correctly until it gets to the last one, then a 409 error is raised.

Traceback (most recent call last):
File "/home/hopkinscj/DRQInput.py", line 548, in <module>
main()
File "/home/hopkinscj/DRQInput.py", line 536, in main
wks.update_cell(rownumber, 8, qdd)
File "/home/hopkinscj/.local/lib/python2.7/site-packages/gspread/models.py", line 408, in update_cell
self.client.put_feed(uri, ElementTree.tostring(feed))
File "/home/hopkinscj/.local/lib/python2.7/site-packages/gspread/client.py", line 243, in put_feed
raise ex urllib2.HTTPError: HTTP Error 409: Conflict

Please help.

I seem to remember getting something like this when I was messing around with API access to GD spreadsheets. If I remember correctly (that's a big if), it was something to do with miscounting rows and columns so I'd accidentally run off the end of the sheet I'd defined.

I defined a larger sheet than necessary, but it still won't update the cell in question. Although, i don't receive a 409 error anymore.