Previously, I was using Google Apps Script to populate the choices for a dropdown list question in Google Forms on a weekly basis. One question had as many as 3600 choices at one time. This week, when running the same script with a reduced number of choices (approx. 2000), I receive the following error via script.google.com: "Failed to set choices. You exceeded the maximum number of choices." Is there a new limit to number of choices that can be added? I cannot find one listed anywhere on the web.
Code snippet to reproduce the issue:
var sheetUrl = 'https://docs.google.com/spreadsheets/d/xxxxxxxxxxxxxxxxxxxxx/edit';
var sheet = SpreadsheetApp.openByUrl(sheetUrl).getSheetByName("Form Responses 1");
var data = sheet.getDataRange().getValues();
var formExample = FormApp.openById('xxxxxxxxxxxxxxxxxxxxxxxxxx');
var listOfCustomers= formExample.getItemById(1234567890);
var customerChoices = [];
for (var i = 0; i < data.length; i+=1){
customerChoices.push(listOfCustomers.asListItem().createChoice(data[i][0]));
}
listOfCustomers.asListItem().setChoices(customerChoices);