LoginSignup
1
1

More than 5 years have passed since last update.

Google Apps Scriptのメモ

Posted at

ローカルのデータ→グーグルドライブ→グーグルスプレッドシートみたいな感じでcsvデータを移そうとしたのでその時のGoogle Apps Script関連のメモになります。

Utilities.parseCsvはデータ数が多すぎるとparseできない?

5000行くらいのデータをパースしようとしたらエラーを吐かれました。だめだめです。

仕方ないので以下のURLの関数を参考にしました。
https://officeforest.org/wp/2018/11/25/google-apps-scriptでcsvファイルを取り扱う/

ここでも
The number of columns in the data does not match the number of columns in the range. The data has 1 but the range has 6.(行 60、ファイル「コード」)
ってエラーが出てきて頭抱えました。

エラーが出ると途中で処理が止まるのでループが止まってしまう‥と困っていたのですがじゃあエラー出てもいいからその関数を複数回実行すればいいじゃんってなったので解決しました(解決はしていない)

時刻について

https://sites.google.com/site/gasgaidobukku/utilities/formatdate
HHだと24時間表示になる。まじかよ。

1
1
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
1