简体   繁体   中英

Google Spreadsheets .NET API - 409 Conflict

This question is in regards to the .NET API for google spreadsheets. I just started having this problems when I used the =now() function in one of my cells in the spreadsheet.

I am trying to change the contents of the cell to be empty but currently has the function "=now()" whenever I do this I get the following exception:

Unhandled Exception: Google.GData.Client.GDataRequestException: Execution of request failed: https://spreadsheets.google.com/feeds/cells/tCwx4BBDlqy68FkCwQY06Sw/o ... ---> System.Net.WebException: The remote server returned an error: (409) Conflict.

My code is:

curCell.Cell.InputValue = "";
AtomEntry updatedCell = curCell.Update();

Im just trying to clear the contents of the cell. If my cell has a regular string in it, such as "time" it will clear out the contents without any problems. So this error seems to be related to trying to change contents of cell when =now() is currently the value.

Has anyone seen this before?

You don't provide which API version this is about... current version is AFAIK V 3.0 - according to this in the earlier version it was ok to use POST for such an operation BUT this is no longer recommended, instead PUT should be used.

IF you are not sure which version you are using you can find out what's going over the wire by using Fiddler and/or Wireshark...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM