LoginSignup
1
0

More than 3 years have passed since last update.

Google Apps Scriptで「Exception: Service Spreadsheets failed while accessing document with id」というエラーが発生

Posted at

Google Apps Scriptを使ってGoogleスプレッドシートで作成したグラフ画像を自動でSlackに定期配信するbotを作っていたのですが

Exception: Service Spreadsheets failed while accessing document with id "〇〇〇〇"

というエラーが出て動かなくなってしまいました。

ネットで調べてみるとスプレッドシートの情報量が多すぎる場合やGoogle側のサーバーのエラーで起こるとのこと。

とはいえスプレッドシートの情報量は最小限に抑えてあるし、他のグラフ画像だと上手く実行されるのでGoogleのサーバーの問題とも考えにくい。

別に新しくファイルを作って同じコードを試しても変化なし。

とはいえプログラムファイルによってこのエラーが出たり出なかったりしていたので原因を調べていると

"1つのグラフに2つ以上の軸がある時"

このエラーが発生することが判明。

グラフの軸を1つにしたらすぐに直りました。

同じエラーでお困りの方は是非参考にしてみてください。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0