Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What is going on with this article?
@aoi_erimiya

GASのV8ではFusionTablesの依存設定消しとこう

More than 1 year has passed since last update.

何が起きたか

意気揚々とGASのエンジンを意気揚々とRhinoからV8に変えてみたところ、トリガー設定してる定期ロジックが軒並みコケてやんの!

エラー内容

「サービス(fusiontables v2)が見つかりません」

該当ロジックはスプレッドシートとかGoogleカレンダーから情報引いてくるだけなので、FusionTablesなんて使ってないハズなんだが・・・?
とか思ってると、過去にFusionTablesを導入してたプロジェクトであることを思い出す。

FusionTables自体はとうの昔に廃止されてたけど、コードはそのまま残ってた。

対処

appsscript.jsonにFusionTablesの依存設定(dependencies)が入ってるのでそれを消す。

これを
{
  "timeZone": "Asia/Tokyo",
  "dependencies": {
    "enabledAdvancedServices": [{
      "userSymbol": "Gmail",
      "serviceId": "gmail",
      "version": "v1"
    }, {
      "userSymbol": "FusionTables",
      "serviceId": "fusiontables",
      "version": "v2"
    }],
    "libraries": [{
      "userSymbol": "createHTMLDraftInGmail",
      "libraryId": "1Q2wtH6ZHe-1RSMyExp9zKdzFrwPNPxyXIKMwsfFFZqMdkc0uUNTIvbRv",
      "version": "1"
    }]
  },
  "webapp": {
    "access": "ANYONE_ANONYMOUS",
    "executeAs": "USER_DEPLOYING"
  },
  "exceptionLogging": "STACKDRIVER",
  "runtimeVersion": "V8"
}
こうじゃ
{
  "timeZone": "Asia/Tokyo",
  "dependencies": {
    "enabledAdvancedServices": [{
      "userSymbol": "Gmail",
      "serviceId": "gmail",
      "version": "v1"
    }],
    "libraries": [{
      "userSymbol": "createHTMLDraftInGmail",
      "libraryId": "1Q2wtH6ZHe-1RSMyExp9zKdzFrwPNPxyXIKMwsfFFZqMdkc0uUNTIvbRv",
      "version": "1"
    }]
  },
  "webapp": {
    "access": "ANYONE_ANONYMOUS",
    "executeAs": "USER_DEPLOYING"
  },
  "exceptionLogging": "STACKDRIVER",
  "runtimeVersion": "V8"
}

なお、Rhinoのままだと定義が残ってても大丈夫な模様。

もしかしたら他にもいらん定義残ってるかもナァ

2
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
aoi_erimiya
No problem. Everything's fine.

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
2
Help us understand the problem. What is going on with this article?