Skip to content

Error when adding new rows  #23

@hats

Description

@hats

Hi!
When I try add rows

(def row ["2016-11-24" "text" "text" "" "text" "2" "1" "100" "1" "2" "4" "1"])
(def rows [row])
(google-apps-clj.google-sheets-v4/write-sheet service spreadsheet-id sheet-id rows)

I get the following error

GoogleJsonResponseException 400 Bad Request
{
  "code" : 400,
  "errors" : [ {
    "domain" : "global",
    "message" : "Invalid requests[4].appendCells: GridCoordinate.rowIndex[1] is after last row in grid[0]",
    "reason" : "badRequest"
  } ],
  "message" : "Invalid requests[4].appendCells: GridCoordinate.rowIndex[1] is after last row in grid[0]",
  "status" : "INVALID_ARGUMENT"
}  com.google.api.client.googleapis.json.GoogleJsonResponseException.from (GoogleJsonResponseException.java:146)

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions