一直在努力與此..... Google Apps腳本和大查詢API運行良好,但是當我嘗試使用BigQuery.Tabledata.insertAll我不斷收到錯誤說'沒有這樣的領域'。Google Apps腳本和大查詢 - tabledate.insertAll
當我嘗試通過Google API瀏覽器運行相同的東西時,它工作正常。該文件說,該命令是:
BigQuery.TableData.insertAll(TableDataInsertAllRequest resource, String projectId, String datasetId, String tableId)
我已經構建了TableDataInsertAllRequest資源按文件https://developers.google.com/bigquery/docs/reference/v2/tabledata/insertAll,它看起來像這樣:
{
"kind": "bigquery#tableDataInsertAllRequest",
"rows":
[
{
"json":
{
"domain": "test",
"kind": "another test"
}
}
]
}
這是我的表模式相匹配。
當我運行命令返回的錯誤是:
{
"insertErrors": [
{
"index": 0,
"errors": [
{
"message": "no such field",
"reason": "invalid"
}
]
}
],
"kind": "bigquery#tableDataInsertAllResponse"
}
正如我說的一樣TableDataInsertAllRequest資源的API資源管理器工作正常(點擊嘗試它上面的文檔頁面上),它只是不工作,通過Apps腳本。
任何幫助感激地收到。
請張貼您的架構,並失敗的作業ID。 – Pentium10