title: Inserting a row in Google spreadsheet: Blank rows cannot be written; use delete instead
body: <p>I am unable to add row to an existing spreadsheet.
  I'm trying the steps from here: <a href="https://developers.google.com/google-apps/spreadsheets/data" rel="nofollow">https://developers.google.com/google-apps/spreadsheets/data</a>
  The following line throws the exception below:</p>
  
  <pre><code>row = service.insert(listFeedUrl, row);
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>Exception in thread "main" com.google.gdata.util.InvalidEntryException: Bad Request
  Blank rows cannot be written; use delete instead.
  
  at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:602)
  at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:564)
  at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560)
  at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)
  at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)
  at com.google.gdata.client.Service.insert(Service.java:1409)
  at com.google.gdata.client.GoogleService.insert(GoogleService.java:613)
  at TestGoogle.main(TestGoogle.java:93)
  </code></pre>
  
  <p>The full story short: The above example is quite similar with the code in the application that I need to fix, and the application worked some times ago.
  I managed to pass the OAuth2 authentication.</p>