<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>Google Apps Script (GAS)</anon>
    <anon>Spreadsheet</anon>
    <anon>Tips</anon>
  </categories>
  <description>1行目にカラム名を入れてある SpreadSheet で1行目以下を使った GAS を書いていてうまく動作してなかったメモ。 エラー箇所を探す Slack連携で使っているスクリプトだったので、各関数をまずは単独で動くモックのスクリプトに変換しました。 次に怪しい箇所に try - catch を仕込んでいきます。 const mockGetAllData = () =&gt; { try { const sheet = getSheet(); if (!sheet) { return []; } // range: Object const range = sheet.getRange(2, 1, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2020%2F07%2F28%2F160000&quot; title=&quot;GAS SpreadSheet range 「Exception: 範囲の行数には 1 以上を指定してください。」にハマる - かもメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://m.media-amazon.com/images/I/512h5ikpsPL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-28 16:00:00</published>
  <title>GAS SpreadSheet range 「Exception: 範囲の行数には 1 以上を指定してください。」にハマる</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2020/07/28/160000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
