Error: “You have been creating or deleting too many calendars or calendar events in a short time.”

前端 未结 2 1646
感情败类
感情败类 2021-01-19 08:59

first time asking a question here.

I\'ve built a Google App Script that takes event info from Google Sheets and creates events on Google Calendar, based on @Mogsdad

相关标签:
2条回答
  • 2021-01-19 09:11

    Had a similar problem with a script that creates calendar event blocks on week-days, only using nested while-loops. I inserted Utilities.sleep(3000) so that the script would pause after every 10 iterations. I tested it for a 20 week period creating 20 events per week (400 events) and no error message. I'm going to play around with the timing of this to see whether I can reduce the sleep time. Here's the the Google Developer reference info:

    https://developers.google.com/apps-script/reference/utilities/utilities#sleep(Integer)

    0 讨论(0)
  • 2021-01-19 09:25

    I had the same error, and searching on Google let me here, so I'll leave my solution. In my case, I was added email reminders to events, which caused the "You have been creating or deleting too many calendars or calendar events in a short time. Please try again later." error after created only 10s of events. Removing the call to Event.addEmailReminder() fixed my problem.

    0 讨论(0)
提交回复
热议问题